cavendish 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +103 -0
  3. data/.circleci/setup-rubygems.sh +3 -0
  4. data/.editorconfig +24 -0
  5. data/.gitignore +12 -0
  6. data/.rspec +3 -0
  7. data/.rubocop.yml +496 -0
  8. data/.ruby-version +1 -0
  9. data/CHANGELOG.md +11 -0
  10. data/Gemfile +7 -0
  11. data/Gemfile.lock +143 -0
  12. data/Guardfile +5 -0
  13. data/LICENSE.txt +21 -0
  14. data/README.md +82 -0
  15. data/Rakefile +1 -0
  16. data/bin/console +14 -0
  17. data/bin/setup +8 -0
  18. data/cavendish.gemspec +33 -0
  19. data/exe/cavendish +8 -0
  20. data/lib/cavendish.rb +13 -0
  21. data/lib/cavendish/assets/.circleci/config.yml +93 -0
  22. data/lib/cavendish/assets/.eslintrc.json +43 -0
  23. data/lib/cavendish/assets/.node-version +1 -0
  24. data/lib/cavendish/assets/App.jsx +12 -0
  25. data/lib/cavendish/assets/README.md.erb +59 -0
  26. data/lib/cavendish/assets/src/navigators/HomeNavigator.jsx +17 -0
  27. data/lib/cavendish/assets/src/screens/HomeScreen.jsx.erb +16 -0
  28. data/lib/cavendish/assets/src/screens/__specs__/HomeScreen.spec.js.erb +22 -0
  29. data/lib/cavendish/assets/src/utils/tailwindRn.js +7 -0
  30. data/lib/cavendish/assets/tailwind.config.js +8 -0
  31. data/lib/cavendish/cli.rb +53 -0
  32. data/lib/cavendish/commands/add_ci_config.rb +16 -0
  33. data/lib/cavendish/commands/add_eslint.rb +33 -0
  34. data/lib/cavendish/commands/add_react_navigation.rb +45 -0
  35. data/lib/cavendish/commands/add_readme.rb +15 -0
  36. data/lib/cavendish/commands/add_tailwind.rb +31 -0
  37. data/lib/cavendish/commands/add_testing.rb +81 -0
  38. data/lib/cavendish/commands/base.rb +9 -0
  39. data/lib/cavendish/commands/configure_git.rb +22 -0
  40. data/lib/cavendish/commands/create_expo_project.rb +20 -0
  41. data/lib/cavendish/config.rb +18 -0
  42. data/lib/cavendish/utils.rb +74 -0
  43. data/lib/cavendish/version.rb +5 -0
  44. metadata +260 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b4b3f40943bbcaf5e881600de85f7cf5f8e284bb29113b9c37b165032b3c781c
4
+ data.tar.gz: 6899da3e3cbf36169ceef45a5ebe377add7fa75be761802a4f5f6431fde014c1
5
+ SHA512:
6
+ metadata.gz: 6d3386b1a8b1c9995446a0e012d2ab2875160368d604976d452b5a282db5ff8572cae270bed6ad51bac985385ab5901e72e4ffab0047b35cc93663d5439e93fe
7
+ data.tar.gz: 24d94db492e140cd986af54cc64b12987cbdcad3152dc4c1a65e3f6310a8af5d3795d69d316e5022637b7667fa646de59b436801a730b9ca3690d75db2c54b53
@@ -0,0 +1,103 @@
1
+ version: 2.1
2
+
3
+ env-vars: &env-vars
4
+ RAILS_ENV: test
5
+ NODE_ENV: test
6
+ BUNDLE_PATH: vendor/bundle
7
+
8
+ orbs:
9
+ ruby: circleci/ruby@0.1.2
10
+
11
+ executors:
12
+ main-executor:
13
+ parameters:
14
+ ruby-version:
15
+ description: "Ruby version"
16
+ default: "2.7"
17
+ type: string
18
+ docker:
19
+ - image: circleci/ruby:<<parameters.ruby-version>>-node
20
+ environment: *env-vars
21
+
22
+ commands:
23
+ setup:
24
+ description: checkout code and install dependencies
25
+ steps:
26
+ - checkout
27
+ - run:
28
+ name: Install bundle dependencies
29
+ command: |
30
+ BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")
31
+ gem install bundler:$BUNDLER_VERSION
32
+ bundle _$(echo $BUNDLER_VERSION)_ install
33
+
34
+ jobs:
35
+ lint:
36
+ executor: main-executor
37
+ steps:
38
+ - setup
39
+ - run:
40
+ name: Install reviewdog
41
+ command: |
42
+ curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ./bin
43
+ - run:
44
+ name: Get files to lint
45
+ command: |
46
+ mkdir tmp
47
+ git diff origin/master --name-only --diff-filter=d > tmp/files_to_lint
48
+ - run:
49
+ name: Run rubocop
50
+ shell: /bin/bash
51
+ command: |
52
+ cat tmp/files_to_lint | grep -E '.+\.(rb)$' | xargs bundle exec rubocop --force-exclusion \
53
+ | ./bin/reviewdog -reporter=github-pr-review -f=rubocop
54
+ test:
55
+ parameters:
56
+ ruby-version:
57
+ description: "Ruby version"
58
+ default: "2.7"
59
+ type: string
60
+ executor:
61
+ name: main-executor
62
+ ruby-version: <<parameters.ruby-version>>
63
+ steps:
64
+ - setup
65
+ - run:
66
+ name: Run Tests
67
+ command: |
68
+ RSPEC_JUNIT_ARGS="-r rspec_junit_formatter -f RspecJunitFormatter -o test_results/rspec.xml"
69
+ RSPEC_FORMAT_ARGS="-f progress --no-color -p 10"
70
+ bundle exec rspec ./spec $RSPEC_FORMAT_ARGS $RSPEC_JUNIT_ARGS
71
+ - store_test_results:
72
+ path: test_results
73
+ deploy:
74
+ executor: main-executor
75
+ steps:
76
+ - setup
77
+ - run:
78
+ name: Setup rubygems
79
+ command: bash .circleci/setup-rubygems.sh
80
+ - run:
81
+ name: Publish to rubygems
82
+ command: |
83
+ gem build cavendish.gemspec
84
+ version_tag=$(git describe --tags)
85
+ gem push cavendish-${version_tag#v}.gem
86
+
87
+ workflows:
88
+ version: 2
89
+ main:
90
+ jobs:
91
+ - lint:
92
+ context: org-global
93
+ - test:
94
+ matrix:
95
+ parameters:
96
+ ruby-version: ["2.5", "2.6", "2.7"]
97
+ - deploy:
98
+ context: org-global
99
+ filters:
100
+ tags:
101
+ only: /.*/
102
+ branches:
103
+ ignore: /.*/
@@ -0,0 +1,3 @@
1
+ mkdir ~/.gem
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
+ chmod 0600 /home/circleci/.gem/credentials
data/.editorconfig ADDED
@@ -0,0 +1,24 @@
1
+ # EditorConfig helps developers define and maintain consistent
2
+ # coding styles between different editors and IDEs
3
+ # editorconfig.org
4
+
5
+ root = true
6
+
7
+ [*]
8
+
9
+ # Change these settings to your own preference
10
+ indent_style = space
11
+ indent_size = 2
12
+
13
+ # We recommend you to keep these unchanged
14
+ end_of_line = lf
15
+ charset = utf-8
16
+ trim_trailing_whitespace = true
17
+ insert_final_newline = true
18
+
19
+ [*.js]
20
+ indent_style = space
21
+ indent_size = 2
22
+
23
+ [*.md]
24
+ trim_trailing_whitespace = false
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ .vscode
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,496 @@
1
+ AllCops:
2
+ Exclude:
3
+ - "vendor/**/*"
4
+ - "db/**/*"
5
+ - "bin/**/*"
6
+ TargetRubyVersion: 2.7
7
+ Layout/ParameterAlignment:
8
+ Description: Align the parameters of a method call if they span more than one line.
9
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
10
+ Enabled: true
11
+ EnforcedStyle: with_fixed_indentation
12
+ SupportedStyles:
13
+ - with_first_parameter
14
+ - with_fixed_indentation
15
+ Metrics/BlockLength:
16
+ Enabled: false
17
+ Style/ClassAndModuleChildren:
18
+ Description: Checks style of children classes and modules.
19
+ Enabled: false
20
+ EnforcedStyle: nested
21
+ SupportedStyles:
22
+ - nested
23
+ - compact
24
+ Style/CommentAnnotation:
25
+ Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK,
26
+ REVIEW).
27
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
28
+ Enabled: false
29
+ Keywords:
30
+ - TODO
31
+ - FIXME
32
+ - OPTIMIZE
33
+ - HACK
34
+ - REVIEW
35
+ Naming/FileName:
36
+ Description: Use snake_case for source file names.
37
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
38
+ Enabled: false
39
+ Exclude: []
40
+ Style/FormatString:
41
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
42
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
43
+ Enabled: false
44
+ EnforcedStyle: format
45
+ SupportedStyles:
46
+ - format
47
+ - sprintf
48
+ - percent
49
+ Style/FrozenStringLiteralComment:
50
+ Enabled: false
51
+ Style/GlobalVars:
52
+ Description: Do not introduce global variables.
53
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
54
+ Enabled: false
55
+ AllowedVariables: []
56
+ Style/GuardClause:
57
+ Description: Check for conditionals that can be replaced with guard clauses
58
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
59
+ Enabled: false
60
+ MinBodyLength: 1
61
+ Style/IfUnlessModifier:
62
+ Description: Favor modifier if/unless usage when you have a single-line body.
63
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
64
+ Enabled: false
65
+ Style/LambdaCall:
66
+ Description: Use lambda.call(...) instead of lambda.(...).
67
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
68
+ Enabled: false
69
+ EnforcedStyle: call
70
+ SupportedStyles:
71
+ - call
72
+ - braces
73
+ Style/Next:
74
+ Description: Use `next` to skip iteration instead of a condition at the end.
75
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
76
+ Enabled: false
77
+ EnforcedStyle: skip_modifier_ifs
78
+ MinBodyLength: 3
79
+ SupportedStyles:
80
+ - skip_modifier_ifs
81
+ - always
82
+ Layout/MultilineOperationIndentation:
83
+ Description: Checks indentation of binary operations that span more than one line.
84
+ Enabled: true
85
+ EnforcedStyle: indented
86
+ SupportedStyles:
87
+ - aligned
88
+ - indented
89
+ Style/MutableConstant:
90
+ Description: Do not assign mutable objects to constants.
91
+ Enabled: false
92
+ Style/NumericLiterals:
93
+ Description: Add underscores to large numeric literals to improve their readability.
94
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
95
+ Enabled: false
96
+ MinDigits: 5
97
+ Style/PercentLiteralDelimiters:
98
+ Description: Use `%`-literal delimiters consistently
99
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
100
+ Enabled: false
101
+ PreferredDelimiters:
102
+ "%": "()"
103
+ "%i": "()"
104
+ "%q": "()"
105
+ "%Q": "()"
106
+ "%r": "{}"
107
+ "%s": "()"
108
+ "%w": "()"
109
+ "%W": "()"
110
+ "%x": "()"
111
+ Naming/PredicateName:
112
+ Description: Check the names of predicate methods.
113
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
114
+ Enabled: true
115
+ NamePrefix:
116
+ - is_
117
+ - has_
118
+ - have_
119
+ ForbiddenPrefixes:
120
+ - is_
121
+ Style/RaiseArgs:
122
+ Description: Checks the arguments passed to raise/fail.
123
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
124
+ Enabled: false
125
+ EnforcedStyle: exploded
126
+ SupportedStyles:
127
+ - compact
128
+ - exploded
129
+ Style/SignalException:
130
+ Description: Checks for proper usage of fail and raise.
131
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
132
+ Enabled: false
133
+ EnforcedStyle: semantic
134
+ SupportedStyles:
135
+ - only_raise
136
+ - only_fail
137
+ - semantic
138
+ Style/SingleLineMethods:
139
+ Description: Avoid single-line methods.
140
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
141
+ Enabled: false
142
+ AllowIfMethodIsEmpty: true
143
+ Style/StringLiterals:
144
+ Description: Checks if uses of quotes match the configured preference.
145
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
146
+ Enabled: false
147
+ EnforcedStyle: double_quotes
148
+ SupportedStyles:
149
+ - single_quotes
150
+ - double_quotes
151
+ Style/TrailingCommaInArguments:
152
+ Description: Checks for trailing comma in argument lists.
153
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
154
+ Enabled: true
155
+ Style/TrailingCommaInArrayLiteral:
156
+ Description: Checks for trailing comma in array and hash literals.
157
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-trailing-array-commas
158
+ Enabled: true
159
+ Style/TrailingCommaInHashLiteral:
160
+ Description: Checks for trailing comma in array and hash literals.
161
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-trailing-array-commas
162
+ Enabled: true
163
+ Style/TrivialAccessors:
164
+ Description: Prefer attr_* methods to trivial readers/writers.
165
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
166
+ Enabled: false
167
+ ExactNameMatch: false
168
+ AllowPredicates: false
169
+ AllowDSLWriters: false
170
+ AllowedMethods:
171
+ - to_ary
172
+ - to_a
173
+ - to_c
174
+ - to_enum
175
+ - to_h
176
+ - to_hash
177
+ - to_i
178
+ - to_int
179
+ - to_io
180
+ - to_open
181
+ - to_path
182
+ - to_proc
183
+ - to_r
184
+ - to_regexp
185
+ - to_str
186
+ - to_s
187
+ - to_sym
188
+ Style/WhileUntilModifier:
189
+ Description: Favor modifier while/until usage when you have a single-line body.
190
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
191
+ Enabled: false
192
+ Style/ExponentialNotation:
193
+ Enabled: true
194
+ Style/HashEachMethods:
195
+ Description: Use Hash#each_key and Hash#each_value.
196
+ Enabled: true
197
+ Style/HashTransformKeys:
198
+ Description: Prefer `transform_keys` over `each_with_object` and `map`.
199
+ Enabled: true
200
+ Style/HashTransformValues:
201
+ Description: Prefer `transform_values` over `each_with_object` and `map`.
202
+ Enabled: true
203
+ Metrics/AbcSize:
204
+ Description: A calculated magnitude based on number of assignments, branches, and
205
+ conditions.
206
+ Enabled: true
207
+ Max: 25
208
+ Metrics/BlockNesting:
209
+ Description: Avoid excessive block nesting
210
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
211
+ Enabled: true
212
+ Max: 3
213
+ Metrics/ClassLength:
214
+ Description: Avoid classes longer than 100 lines of code.
215
+ Enabled: false
216
+ CountComments: false
217
+ Max: 100
218
+ Metrics/MethodLength:
219
+ Description: Avoid methods longer than 15 lines of code.
220
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
221
+ Enabled: true
222
+ CountComments: true
223
+ Max: 15
224
+ Exclude:
225
+ - "spec/**/*"
226
+ Metrics/ParameterLists:
227
+ Description: Avoid long parameter lists.
228
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
229
+ Enabled: false
230
+ Max: 5
231
+ CountKeywordArgs: true
232
+ Lint/AssignmentInCondition:
233
+ Description: Don't use assignment in conditions.
234
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
235
+ Enabled: false
236
+ AllowSafeAssignment: true
237
+ Layout/LineLength:
238
+ Description: Limit lines to 100 characters.
239
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#100-character-limits
240
+ Enabled: true
241
+ Max: 100
242
+ AllowURI: true
243
+ URISchemes:
244
+ - http
245
+ - https
246
+ Layout/EndAlignment:
247
+ Description: Align ends correctly.
248
+ Enabled: true
249
+ EnforcedStyleAlignWith: keyword
250
+ SupportedStylesAlignWith:
251
+ - keyword
252
+ - variable
253
+ Layout/DefEndAlignment:
254
+ Description: Align ends corresponding to defs correctly.
255
+ Enabled: true
256
+ EnforcedStyleAlignWith: start_of_line
257
+ SupportedStylesAlignWith:
258
+ - start_of_line
259
+ - def
260
+ Layout/SpaceAroundMethodCallOperator:
261
+ Description: Checks method call operators to not have spaces around them.
262
+ Enabled: true
263
+ Style/SymbolArray:
264
+ Description: Use %i or %I for arrays of symbols.
265
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
266
+ Enabled: false
267
+ Layout/ExtraSpacing:
268
+ Description: Do not use unnecessary spacing.
269
+ Enabled: false
270
+ Naming/AccessorMethodName:
271
+ Description: Check the naming of accessor methods for get_/set_.
272
+ Enabled: false
273
+ Style/Alias:
274
+ Description: Use alias_method instead of alias.
275
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
276
+ Enabled: false
277
+ Style/ArrayJoin:
278
+ Description: Use Array#join instead of Array#*.
279
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
280
+ Enabled: false
281
+ Style/AsciiComments:
282
+ Description: Use only ascii symbols in comments.
283
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
284
+ Enabled: false
285
+ Naming/AsciiIdentifiers:
286
+ Description: Use only ascii symbols in identifiers.
287
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
288
+ Enabled: false
289
+ Style/Attr:
290
+ Description: Checks for uses of Module#attr.
291
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
292
+ Enabled: false
293
+ Style/BlockComments:
294
+ Description: Do not use block comments.
295
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
296
+ Enabled: false
297
+ Style/CaseEquality:
298
+ Description: Avoid explicit use of the case equality operator(===).
299
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
300
+ Enabled: false
301
+ Style/CharacterLiteral:
302
+ Description: Checks for uses of character literals.
303
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
304
+ Enabled: false
305
+ Style/ClassVars:
306
+ Description: Avoid the use of class variables.
307
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
308
+ Enabled: false
309
+ Style/ColonMethodCall:
310
+ Description: 'Do not use :: for method call.'
311
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
312
+ Enabled: false
313
+ Style/PreferredHashMethods:
314
+ Description: Checks for use of deprecated Hash methods.
315
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
316
+ Enabled: false
317
+ Style/Documentation:
318
+ Description: Document classes and non-namespace modules.
319
+ Enabled: false
320
+ Style/DoubleNegation:
321
+ Description: Checks for uses of double negation (!!).
322
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
323
+ Enabled: false
324
+ Style/EachWithObject:
325
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
326
+ Enabled: false
327
+ Style/EmptyElse:
328
+ Description: Avoid empty else-clauses.
329
+ Enabled: true
330
+ Style/EmptyLiteral:
331
+ Description: Prefer literals to Array.new/Hash.new/String.new.
332
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
333
+ Enabled: false
334
+ Layout/EndOfLine:
335
+ Description: Use Unix-style line endings.
336
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
337
+ Enabled: true
338
+ Style/EvenOdd:
339
+ Description: Favor the use of Fixnum#even? && Fixnum#odd?
340
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
341
+ Enabled: false
342
+ Lint/FlipFlop:
343
+ Description: Checks for flip flops
344
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
345
+ Enabled: false
346
+ Style/IfWithSemicolon:
347
+ Description: Do not use if x; .... Use the ternary operator instead.
348
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
349
+ Enabled: false
350
+ Style/Lambda:
351
+ Description: Use the new lambda literal syntax for single-line blocks.
352
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
353
+ Enabled: false
354
+ Style/LineEndConcatenation:
355
+ Description: Use \ instead of + or << to concatenate two string literals at line
356
+ end.
357
+ Enabled: false
358
+ Style/ModuleFunction:
359
+ Description: Checks for usage of `extend self` in modules.
360
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
361
+ Enabled: false
362
+ Style/MultilineBlockChain:
363
+ Description: Avoid multi-line chains of blocks.
364
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
365
+ Enabled: false
366
+ Layout/MultilineBlockLayout:
367
+ Description: Ensures newlines after multiline block do statements.
368
+ Enabled: false
369
+ Style/NegatedIf:
370
+ Description: Favor unless over if for negative conditions (or control flow or).
371
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
372
+ Enabled: false
373
+ Style/NegatedWhile:
374
+ Description: Favor until over while for negative conditions.
375
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
376
+ Enabled: false
377
+ Style/NilComparison:
378
+ Description: Prefer x.nil? to x == nil.
379
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
380
+ Enabled: false
381
+ Style/OneLineConditional:
382
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
383
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
384
+ Enabled: false
385
+ Naming/BinaryOperatorParameterName:
386
+ Description: When defining binary operators, name the argument other.
387
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
388
+ Enabled: false
389
+ Style/PerlBackrefs:
390
+ Description: Avoid Perl-style regex back references.
391
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
392
+ Enabled: false
393
+ Style/Proc:
394
+ Description: Use proc instead of Proc.new.
395
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
396
+ Enabled: false
397
+ Style/SelfAssignment:
398
+ Description: Checks for places where self-assignment shorthand should have been
399
+ used.
400
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
401
+ Enabled: false
402
+ Layout/SpaceBeforeFirstArg:
403
+ Description: Put a space between a method name and the first argument in a method
404
+ call without parentheses.
405
+ Enabled: true
406
+ Layout/SpaceAroundOperators:
407
+ Description: Use spaces around operators.
408
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
409
+ Enabled: true
410
+ Layout/SpaceInsideParens:
411
+ Description: No spaces after ( or before ).
412
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
413
+ Enabled: true
414
+ Style/SpecialGlobalVars:
415
+ Description: Avoid Perl-style global variables.
416
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
417
+ Enabled: false
418
+ Style/VariableInterpolation:
419
+ Description: Don't interpolate global, instance and class variables directly in
420
+ strings.
421
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
422
+ Enabled: false
423
+ Style/WhenThen:
424
+ Description: Use when x then ... for one-line cases.
425
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
426
+ Enabled: false
427
+ Lint/AmbiguousOperator:
428
+ Description: Checks for ambiguous operators in the first argument of a method invocation
429
+ without parentheses.
430
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-as-args
431
+ Enabled: false
432
+ Lint/AmbiguousRegexpLiteral:
433
+ Description: Checks for ambiguous regexp literals in the first argument of a method
434
+ invocation without parenthesis.
435
+ Enabled: false
436
+ Layout/BlockAlignment:
437
+ Description: Align block ends correctly.
438
+ Enabled: true
439
+ Layout/ConditionPosition:
440
+ Description: Checks for condition placed in a confusing position relative to the
441
+ keyword.
442
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
443
+ Enabled: false
444
+ Lint/DeprecatedClassMethods:
445
+ Description: Check for deprecated class method calls.
446
+ Enabled: false
447
+ Lint/ElseLayout:
448
+ Description: Check for odd code arrangement in an else block.
449
+ Enabled: false
450
+ Lint/SuppressedException:
451
+ Description: Don't suppress exception.
452
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
453
+ Enabled: false
454
+ Lint/LiteralAsCondition:
455
+ Description: Checks of literals used in conditions.
456
+ Enabled: false
457
+ Lint/LiteralInInterpolation:
458
+ Description: Checks for literals used in interpolation.
459
+ Enabled: false
460
+ Lint/Loop:
461
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
462
+ for post-loop tests.
463
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
464
+ Enabled: false
465
+ Lint/ParenthesesAsGroupedExpression:
466
+ Description: Checks for method calls with a space before the opening parenthesis.
467
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
468
+ Enabled: false
469
+ Lint/RequireParentheses:
470
+ Description: Use parentheses in the method call to avoid confusion about precedence.
471
+ Enabled: false
472
+ Lint/UnderscorePrefixedVariableName:
473
+ Description: Do not use prefix `_` for a variable that is used.
474
+ Enabled: false
475
+ Lint/Void:
476
+ Description: Possible use of operator/literal/variable in void context.
477
+ Enabled: false
478
+ Lint/RaiseException:
479
+ Description: Checks for `raise` or `fail` statements which are raising `Exception` class.
480
+ Enabled: true
481
+ Lint/StructNewOverride:
482
+ Description: Disallow overriding the `Struct` built-in methods via `Struct.new`.
483
+ Enabled: true
484
+ Style/OptionalBooleanParameter:
485
+ Description: 'Use keyword arguments when defining method with boolean argument.'
486
+ Enabled: false
487
+ Lint/MissingSuper:
488
+ Description: >-
489
+ This cop checks for the presence of constructors and lifecycle callbacks
490
+ without calls to `super`'.
491
+ Enabled: false
492
+ Style/RedundantFileExtensionInRequire:
493
+ Description: >-
494
+ Checks for the presence of superfluous `.rb` extension in
495
+ the filename provided to `require` and `require_relative`.
496
+ Enabled: false