gemaker 0.6.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +1 -1
  3. data/.rubocop.yml +61 -603
  4. data/CHANGELOG.md +9 -0
  5. data/README.md +10 -0
  6. data/gemaker.gemspec +5 -6
  7. data/lib/gemaker.rb +2 -2
  8. data/lib/gemaker/cli.rb +2 -3
  9. data/lib/gemaker/commands/add_cli_structure.rb +1 -0
  10. data/lib/gemaker/commands/add_install_generator.rb +30 -6
  11. data/lib/gemaker/commands/configure_continuous_integration.rb +23 -0
  12. data/lib/gemaker/commands/configure_editor_config.rb +10 -0
  13. data/lib/gemaker/commands/configure_test_env.rb +9 -8
  14. data/lib/gemaker/commands/create_gem.rb +3 -6
  15. data/lib/gemaker/commands/customize_engine.rb +31 -4
  16. data/lib/gemaker/config.rb +1 -9
  17. data/lib/gemaker/templates/circle_config.yml.erb +103 -0
  18. data/lib/gemaker/templates/circleci-setup-script.sh +3 -0
  19. data/lib/gemaker/templates/editorconfig +24 -0
  20. data/lib/gemaker/templates/engine/Guardfile +6 -9
  21. data/lib/gemaker/templates/engine/README.md.erb +45 -2
  22. data/lib/gemaker/templates/engine/development.rb.erb +81 -0
  23. data/lib/gemaker/templates/engine/gemspec.erb +8 -5
  24. data/lib/gemaker/templates/engine/gitignore +1 -0
  25. data/lib/gemaker/templates/engine/install_generator.rb.erb +0 -2
  26. data/lib/gemaker/templates/engine/rails_helper.rb.erb +2 -7
  27. data/lib/gemaker/templates/engine/rubocop.yml.erb +503 -0
  28. data/lib/gemaker/templates/normal/README.md.erb +14 -0
  29. data/lib/gemaker/templates/normal/gemspec.erb +9 -6
  30. data/lib/gemaker/templates/normal/rubocop.yml.erb +496 -0
  31. data/lib/gemaker/templates/ruby-version.erb +1 -1
  32. data/lib/gemaker/util.rb +3 -2
  33. data/lib/gemaker/version.rb +7 -2
  34. metadata +51 -50
  35. data/.coveralls.yml +0 -1
  36. data/.hound.yml +0 -4
  37. data/lib/gemaker/commands/add_hound_rules.rb +0 -12
  38. data/lib/gemaker/commands/configure_travis.rb +0 -15
  39. data/lib/gemaker/templates/coveralls.yml +0 -1
  40. data/lib/gemaker/templates/engine/travis.yml.erb +0 -15
  41. data/lib/gemaker/templates/normal/travis.yml.erb +0 -13
@@ -1,5 +1,8 @@
1
1
  # <%= config.human_gem_name %>
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/<%= config.gem_name %>.svg)](https://badge.fury.io/rb/<%= config.gem_name %>)
4
+ [![CircleCI](https://circleci.com/gh/platanus/<%= config.gem_name %>.svg?style=shield)](https://app.circleci.com/pipelines/github/platanus/<%= config.gem_name %>)
5
+
3
6
  <%= config.description.blank? ? "TODO" : config.description %>
4
7
 
5
8
  ## Installation
@@ -32,6 +35,17 @@ bundle exec guard
32
35
 
33
36
  You need to put **all your tests** in the `/my_gem/spec/` directory.
34
37
 
38
+ ## Publishing
39
+
40
+ On master/main branch...
41
+
42
+ 1. Change `VERSION` in `lib/<%= @config.gem_name %>/version.rb`.
43
+ 2. Change `Unreleased` title to current version in `CHANGELOG.md`.
44
+ 3. Run `bundle install`.
45
+ 4. Commit new release. For example: `Releasing v0.1.0`.
46
+ 5. Create tag. For example: `git tag v0.1.0`.
47
+ 6. Push tag. For example: `git push origin v0.1.0`.
48
+
35
49
  ## Contributing
36
50
 
37
51
  1. Fork it
@@ -21,10 +21,13 @@ Gem::Specification.new do |spec|
21
21
  <% if config.cli? -%>
22
22
  <%= "spec.add_dependency \"commander\", \"~> 4.4\", \">= 4.4.0\"" %>
23
23
  <% end -%>
24
- spec.add_development_dependency "bundler", "~> 1.12"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "rspec", "~> 3.4"
27
- spec.add_development_dependency "guard-rspec", "~> 4.7"
28
- spec.add_development_dependency "pry"
24
+ spec.add_development_dependency "bundler", "~> <%= Gemaker::BUNDLER_VERSION %>"
29
25
  spec.add_development_dependency "coveralls"
30
- end
26
+ spec.add_development_dependency "guard-rspec"
27
+ spec.add_development_dependency "rake"
28
+ spec.add_development_dependency "rspec"
29
+ spec.add_development_dependency "rspec_junit_formatter"
30
+ spec.add_development_dependency "rubocop", "~> <%= Gemaker::RUBOCOP_VERSION %>"
31
+ spec.add_development_dependency "rubocop-rails"
32
+ spec.add_development_dependency "pry"
33
+ end
@@ -0,0 +1,496 @@
1
+ AllCops:
2
+ Exclude:
3
+ - "vendor/**/*"
4
+ - "db/**/*"
5
+ - "bin/**/*"
6
+ TargetRubyVersion: <%= Gemaker::RUBY_VERSION %>
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