wonder-ruby-style 0.56.0 → 1.65.1

Sign up to get free protection for your applications and to get access to all the features.
data/presets/latest.yml CHANGED
@@ -1,1182 +1,420 @@
1
- require: rubocop-rspec
1
+ inherit_from: ./pure/latest.yml
2
2
 
3
- AllCops:
4
- Include:
5
- - Rakefile
6
- - lib/**/*.rake
7
- DisabledByDefault: true
8
- TargetRubyVersion: 2.5
9
- Exclude:
10
- - '*.gemspec'
11
- - 'coverage/**/*'
12
- - 'log/**/*'
13
- - 'spec/fixtures/**/*'
14
- - 'tmp/**/*'
15
- - 'vendor/**/*'
16
- - 'lib/**/*.rb'
17
-
18
- #################### Lint ################################
19
-
20
- Lint/AmbiguousOperator:
21
- Description: >-
22
- Checks for ambiguous operators in the first argument of a
23
- method invocation without parentheses.
24
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
25
- Enabled: true
26
-
27
- Lint/AmbiguousRegexpLiteral:
28
- Description: >-
29
- Checks for ambiguous regexp literals in the first argument of
30
- a method invocation without parenthesis.
31
- Enabled: true
32
-
33
- Lint/AssignmentInCondition:
34
- Description: "Don't use assignment in conditions."
35
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
36
- Enabled: true
37
-
38
- Layout/BlockAlignment:
39
- Description: 'Align block ends correctly.'
40
- Enabled: true
41
-
42
- Lint/CircularArgumentReference:
43
- Description: "Don't refer to the keyword argument in the default value."
44
- Enabled: true
45
-
46
- Layout/ConditionPosition:
47
- Description: >-
48
- Checks for condition placed in a confusing position relative to
49
- the keyword.
50
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
51
- Enabled: true
52
-
53
- Lint/Debugger:
54
- Description: 'Check for debugger calls.'
55
- Enabled: true
56
-
57
- Layout/DefEndAlignment:
58
- Description: 'Align ends corresponding to defs correctly.'
59
- Enabled: true
60
-
61
- Lint/DeprecatedClassMethods:
62
- Description: 'Check for deprecated class method calls.'
63
- Enabled: true
64
-
65
- Lint/DuplicateMethods:
66
- Description: 'Check for duplicate methods calls.'
67
- Enabled: true
68
-
69
- Lint/EachWithObjectArgument:
70
- Description: 'Check for immutable argument given to each_with_object.'
71
- Enabled: true
72
-
73
- Lint/ElseLayout:
74
- Description: 'Check for odd code arrangement in an else block.'
75
- Enabled: true
76
-
77
- Lint/EmptyEnsure:
78
- Description: 'Checks for empty ensure block.'
79
- Enabled: true
80
-
81
- Lint/EmptyInterpolation:
82
- Description: 'Checks for empty string interpolation.'
83
- Enabled: true
84
-
85
- Layout/EndAlignment:
86
- Description: 'Align ends correctly.'
87
- Enabled: true
88
-
89
- Lint/EndInMethod:
90
- Description: 'END blocks should not be placed inside method definitions.'
91
- Enabled: true
92
-
93
- Lint/EnsureReturn:
94
- Description: 'Do not use return in an ensure block.'
95
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
96
- Enabled: true
97
-
98
- Security/Eval:
99
- Description: 'The use of eval represents a serious security risk.'
100
- Enabled: true
101
-
102
- Lint/FormatParameterMismatch:
103
- Description: 'The number of parameters to format/sprint must match the fields.'
104
- Enabled: true
105
-
106
- Lint/HandleExceptions:
107
- Description: "Don't suppress exception."
108
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
109
- Enabled: true
110
-
111
- Lint/LiteralAsCondition:
112
- Description: 'Checks of literals used in conditions.'
113
- Enabled: true
114
-
115
- Lint/LiteralInInterpolation:
116
- Description: 'Checks for literals used in interpolation.'
117
- Enabled: true
118
-
119
- Lint/Loop:
120
- Description: >-
121
- Use Kernel#loop with break rather than begin/end/until or
122
- begin/end/while for post-loop tests.
123
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
124
- Enabled: true
125
-
126
- Lint/NestedMethodDefinition:
127
- Description: 'Do not use nested method definitions.'
128
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
129
- Enabled: true
130
-
131
- Lint/NonLocalExitFromIterator:
132
- Description: 'Do not use return in iterator to cause non-local exit.'
133
- Enabled: true
134
-
135
- Lint/ParenthesesAsGroupedExpression:
136
- Description: >-
137
- Checks for method calls with a space before the opening
138
- parenthesis.
139
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
140
- Enabled: true
141
-
142
- Lint/RequireParentheses:
143
- Description: >-
144
- Use parentheses in the method call to avoid confusion
145
- about precedence.
146
- Enabled: true
147
-
148
- Lint/RescueException:
149
- Description: 'Avoid rescuing the Exception class.'
150
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
151
- Enabled: true
3
+ require:
4
+ - rubocop-performance
5
+ - rubocop-rails
6
+ - rubocop-rspec
152
7
 
153
- Lint/ShadowingOuterLocalVariable:
154
- Description: >-
155
- Do not use the same name as outer local variable
156
- for block arguments or block local variables.
157
- Enabled: true
158
-
159
- Lint/StringConversionInInterpolation:
160
- Description: 'Checks for Object#to_s usage in string interpolation.'
161
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-to-s'
162
- Enabled: true
163
-
164
- Lint/UnderscorePrefixedVariableName:
165
- Description: 'Do not use prefix `_` for a variable that is used.'
166
- Enabled: true
167
-
168
- Lint/UnusedBlockArgument:
169
- Description: 'Checks for unused block arguments.'
170
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
171
- Enabled: true
172
-
173
- Lint/UnusedMethodArgument:
174
- Description: 'Checks for unused method arguments.'
175
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
176
- Enabled: true
177
-
178
- Lint/UnreachableCode:
179
- Description: 'Unreachable code.'
180
- Enabled: true
181
-
182
- Lint/UselessAccessModifier:
183
- Description: 'Checks for useless access modifiers.'
184
- Enabled: true
185
-
186
- Lint/UselessAssignment:
187
- Description: 'Checks for useless assignment to a local variable.'
188
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
189
- Enabled: true
190
-
191
- Lint/UselessComparison:
192
- Description: 'Checks for comparison of something with itself.'
193
- Enabled: true
194
-
195
- Lint/UselessElseWithoutRescue:
196
- Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
197
- Enabled: true
198
-
199
- Lint/UselessSetterCall:
200
- Description: 'Checks for useless setter call to a local variable.'
201
- Enabled: true
202
-
203
- Lint/Void:
204
- Description: 'Possible use of operator/literal/variable in void context.'
205
- Enabled: true
206
-
207
- ###################### Metrics ####################################
208
-
209
- Metrics/BlockNesting:
210
- Description: 'Avoid excessive block nesting'
211
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
212
- Enabled: true
213
- Max: 4
214
- Exclude:
215
- - 'Rakefile'
216
- - '**/*.rake'
217
- - 'spec/**/*.rb'
218
-
219
- Metrics/ClassLength:
220
- Description: 'Avoid classes longer than 250 lines of code.'
221
- Enabled: true
222
- Max: 250
223
-
224
- Metrics/CyclomaticComplexity:
225
- Description: >-
226
- A complexity metric that is strongly correlated to the number
227
- of test cases needed to validate a method.
228
- Enabled: true
229
-
230
- Metrics/LineLength:
231
- Description: 'Limit lines to 80 characters.'
232
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
233
- Enabled: false
234
-
235
- Metrics/MethodLength:
236
- Description: 'Avoid methods longer than 30 lines of code.'
237
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
238
- Enabled: true
239
- Max: 30
240
-
241
- Metrics/ModuleLength:
242
- Description: 'Avoid modules longer than 250 lines of code.'
243
- Enabled: true
244
- Max: 250
8
+ AllCops:
245
9
  Exclude:
246
- - 'spec/**/*.rb'
247
-
248
- Metrics/ParameterLists:
249
- Description: 'Avoid parameter lists longer than three or four parameters.'
250
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
251
- Enabled: true
252
-
253
- Metrics/PerceivedComplexity:
254
- Description: >-
255
- A complexity metric geared towards measuring complexity for a
256
- human reader.
257
- Enabled: false
258
-
259
- ##################### Performance #############################
260
-
261
- Performance/Count:
262
- Description: >-
263
- Use `count` instead of `select...size`, `reject...size`,
264
- `select...count`, `reject...count`, `select...length`,
265
- and `reject...length`.
266
- Enabled: true
267
-
268
- Performance/Detect:
269
- Description: >-
270
- Use `detect` instead of `select.first`, `find_all.first`,
271
- `select.last`, and `find_all.last`.
272
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
273
- Enabled: true
274
-
275
- Performance/FlatMap:
276
- Description: >-
277
- Use `Enumerable#flat_map`
278
- instead of `Enumerable#map...Array#flatten(1)`
279
- or `Enumberable#collect..Array#flatten(1)`
280
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
281
- Enabled: true
282
- EnabledForFlattenWithoutParams: true
283
- # If enabled, this cop will warn about usages of
284
- # `flatten` being called without any parameters.
285
- # This can be dangerous since `flat_map` will only flatten 1 level, and
286
- # `flatten` without any parameters can flatten multiple levels.
287
-
288
- Performance/ReverseEach:
289
- Description: 'Use `reverse_each` instead of `reverse.each`.'
290
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
291
- Enabled: true
292
-
293
- Performance/Sample:
294
- Description: >-
295
- Use `sample` instead of `shuffle.first`,
296
- `shuffle.last`, and `shuffle[Fixnum]`.
297
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
298
- Enabled: true
299
-
300
- Performance/Size:
301
- Description: >-
302
- Use `size` instead of `count` for counting
303
- the number of elements in `Array` and `Hash`.
304
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
305
- Enabled: true
306
-
307
- Performance/StringReplacement:
308
- Description: >-
309
- Use `tr` instead of `gsub` when you are replacing the same
310
- number of characters. Use `delete` instead of `gsub` when
311
- you are deleting characters.
312
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
313
- Enabled: true
314
-
315
- ##################### Rails ##################################
316
-
317
- Rails/ActionFilter:
318
- Description: 'Enforces consistent use of action filter methods.'
319
- Enabled: true
320
-
321
- Rails/Date:
322
- Description: >-
323
- Checks the correct usage of date aware methods,
324
- such as Date.today, Date.current etc.
325
- Enabled: true
326
-
327
- Rails/Delegate:
328
- Description: 'Prefer delegate method for delegations.'
329
- Enabled: true
330
-
331
- Rails/FindBy:
332
- Description: 'Prefer find_by over where.first.'
333
- Enabled: true
334
-
10
+ - "node_modules/**/*"
11
+ - "vendor/**/*"
12
+ - ".git/**/*"
13
+ - "coverage/**/*"
14
+ - "log/**/*"
15
+ - "tmp/**/*"
16
+ - "vendor/**/*"
17
+ - "reports/**/*"
18
+ Style/RescueStandardError:
19
+ Enabled: false
20
+ Style/Documentation:
21
+ Enabled: false
22
+ Style/DoubleNegation:
23
+ Enabled: false
24
+ Layout/LineLength:
25
+ Enabled: true
26
+ AutoCorrect: true
27
+ Max: 150
28
+ AllowHeredoc: true
29
+ AllowURI: true
30
+ URISchemes:
31
+ - http
32
+ - https
33
+ IgnoreCopDirectives: false
34
+ AllowedPatterns: []
35
+ Rails/EnumHash:
36
+ Enabled: false
37
+ Style/RedundantParentheses:
38
+ Enabled: false
335
39
  Rails/FindEach:
336
- Description: 'Prefer all.find_each over all.find.'
337
- Enabled: true
338
-
339
- Rails/HasAndBelongsToMany:
340
- Description: 'Prefer has_many :through to has_and_belongs_to_many.'
341
- Enabled: true
342
-
40
+ Enabled: false
41
+ Naming/MethodParameterName:
42
+ Enabled: false
43
+ Layout/HashAlignment:
44
+ Enabled: false
45
+ Metrics/AbcSize:
46
+ Enabled: false
47
+ Rails/UniqueValidationWithoutIndex:
48
+ Enabled: false
343
49
  Rails/Output:
344
- Description: 'Checks for calls to puts, print, etc.'
345
- Enabled: true
346
-
347
- Rails/ReadWriteAttribute:
348
- Description: >-
349
- Checks for read_attribute(:attr) and
350
- write_attribute(:attr, val).
351
- Enabled: true
352
-
353
- Rails/ScopeArgs:
354
- Description: 'Checks the arguments of ActiveRecord scopes.'
355
- Enabled: true
356
-
357
- Rails/TimeZone:
358
- Description: 'Checks the correct usage of time zone aware methods.'
359
- StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
360
- Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
361
- Enabled: true
362
-
363
- Rails/Validation:
364
- Description: 'Use validates :attribute, hash of validations.'
365
- Enabled: true
366
-
367
- ################## Style #################################
368
-
369
- Layout/AccessModifierIndentation:
370
- Description: Check indentation of private/protected visibility modifiers.
371
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
372
- Enabled: true
373
-
374
- Naming/AccessorMethodName:
375
- Description: Check the naming of accessor methods for get_/set_.
376
- Enabled: true
377
-
378
- Style/Alias:
379
- Description: 'Use alias_method instead of alias.'
380
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
381
- Enabled: true
382
-
383
- Layout/AlignArray:
384
- Description: >-
385
- Align the elements of an array literal if they span more than
386
- one line.
387
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
388
- Enabled: true
389
-
390
- Layout/AlignHash:
391
- Description: >-
392
- Align the elements of a hash literal if they span more than
393
- one line.
394
- Enabled: true
395
-
396
- Layout/AlignParameters:
397
- Description: >-
398
- Align the parameters of a method call if they span more
399
- than one line.
400
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
401
- Enabled: true
402
-
403
- Style/AndOr:
404
- Description: 'Use &&/|| instead of and/or.'
405
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
406
- Enabled: true
407
-
408
- Style/ArrayJoin:
409
- Description: 'Use Array#join instead of Array#*.'
410
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
411
- Enabled: true
412
-
413
- Style/AsciiComments:
414
- Description: 'Use only ascii symbols in comments.'
415
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
416
- Enabled: false
417
-
418
- Naming/AsciiIdentifiers:
419
- Description: 'Use only ascii symbols in identifiers.'
420
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
421
- Enabled: true
422
-
423
- Style/Attr:
424
- Description: 'Checks for uses of Module#attr.'
425
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
426
- Enabled: true
427
-
428
- Style/BeginBlock:
429
- Description: 'Avoid the use of BEGIN blocks.'
430
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
431
- Enabled: true
432
-
433
- Style/BarePercentLiterals:
434
- Description: 'Checks if usage of %() or %Q() matches configuration.'
435
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
436
- Enabled: true
437
-
438
- Style/BlockComments:
439
- Description: 'Do not use block comments.'
440
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
441
- Enabled: true
442
-
443
- Layout/BlockEndNewline:
444
- Description: 'Put end statement of multiline block on its own line.'
445
- Enabled: true
446
-
447
- Style/BlockDelimiters:
448
- Description: >-
449
- Avoid using {...} for multi-line blocks (multiline chaining is
450
- always ugly).
451
- Prefer {...} over do...end for single-line blocks.
452
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
453
- Enabled: true
454
-
455
- Style/BracesAroundHashParameters:
456
- Description: 'Enforce braces style around hash parameters.'
457
- Enabled: true
458
-
459
- Style/CaseEquality:
460
- Description: 'Avoid explicit use of the case equality operator(===).'
461
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
462
- Enabled: true
463
-
464
- Layout/CaseIndentation:
465
- Description: 'Indentation of when in a case/when/[else/]end.'
466
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
467
- Enabled: true
468
-
469
- Style/CharacterLiteral:
470
- Description: 'Checks for uses of character literals.'
471
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
472
- Enabled: true
473
-
474
- Naming/ClassAndModuleCamelCase:
475
- Description: 'Use CamelCase for classes and modules.'
476
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
477
- Enabled: true
478
-
50
+ Enabled: false
51
+ Rails/HasManyOrHasOneDependent:
52
+ Enabled: false
53
+ Lint/MissingSuper:
54
+ Enabled: false
479
55
  Style/ClassAndModuleChildren:
480
- Description: 'Checks style of children classes and modules.'
481
- Enabled: false
482
-
483
- Style/ClassCheck:
484
- Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
485
- Enabled: true
486
-
487
- Style/ClassMethods:
488
- Description: 'Use self when defining module/class methods.'
489
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
490
- Enabled: true
491
-
492
- Style/ClassVars:
493
- Description: 'Avoid the use of class variables.'
494
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
495
- Enabled: false
496
-
497
- Layout/ClosingParenthesisIndentation:
498
- Description: 'Checks the indentation of hanging closing parentheses.'
499
- Enabled: true
500
-
501
- Style/ColonMethodCall:
502
- Description: 'Do not use :: for method call.'
503
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
504
- Enabled: true
505
-
506
- Style/CommandLiteral:
507
- Description: 'Use `` or %x around command literals.'
508
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
509
- Enabled: true
510
-
511
- Style/CommentAnnotation:
512
- Description: 'Checks formatting of annotation comments.'
513
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
514
- Enabled: true
515
-
516
- Layout/CommentIndentation:
517
- Description: 'Indentation of comments.'
518
- Enabled: true
519
-
520
- Naming/ConstantName:
521
- Description: 'Constants should use SCREAMING_SNAKE_CASE.'
522
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
523
- Enabled: true
524
-
525
- Style/DefWithParentheses:
526
- Description: 'Use def with parentheses when there are arguments.'
527
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
528
- Enabled: true
529
-
530
- Style/PreferredHashMethods:
531
- Description: 'Checks for use of deprecated Hash methods.'
532
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
533
- Enabled: true
534
-
535
- Style/Documentation:
536
- Description: 'Document classes and non-namespace modules.'
537
- Enabled: false
538
-
539
- Layout/DotPosition:
540
- Description: 'Checks the position of the dot in multi-line method calls.'
541
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
542
- Enabled: true
543
-
544
- Style/DoubleNegation:
545
- Description: 'Checks for uses of double negation (!!).'
546
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
547
- Enabled: true
548
-
549
- Style/EachWithObject:
550
- Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
551
- Enabled: true
552
-
553
- Layout/ElseAlignment:
554
- Description: 'Align elses and elsifs correctly.'
555
- Enabled: true
556
-
557
- Style/EmptyElse:
558
- Description: 'Avoid empty else-clauses.'
559
- Enabled: true
560
-
561
- Layout/EmptyLineBetweenDefs:
562
- Description: 'Use empty lines between defs.'
563
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
564
- Enabled: true
565
-
566
- Layout/EmptyLines:
567
- Description: "Don't use several empty lines in a row."
568
- Enabled: true
569
-
570
- Layout/EmptyLinesAroundAccessModifier:
571
- Description: "Keep blank lines around access modifiers."
572
- Enabled: true
573
-
574
- Layout/EmptyLinesAroundBlockBody:
575
- Description: "Keeps track of empty lines around block bodies."
576
- Enabled: true
577
-
578
- Layout/EmptyLinesAroundClassBody:
579
- Description: "Keeps track of empty lines around class bodies."
580
- Enabled: true
581
-
582
- Layout/EmptyLinesAroundModuleBody:
583
- Description: "Keeps track of empty lines around module bodies."
584
- Enabled: true
585
-
586
- Layout/EmptyLinesAroundMethodBody:
587
- Description: "Keeps track of empty lines around method bodies."
588
- Enabled: true
589
-
590
- Style/EmptyLiteral:
591
- Description: 'Prefer literals to Array.new/Hash.new/String.new.'
592
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
593
- Enabled: true
594
-
595
- Style/EndBlock:
596
- Description: 'Avoid the use of END blocks.'
597
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
598
- Enabled: true
599
-
600
- Layout/EndOfLine:
601
- Description: 'Use Unix-style line endings.'
602
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
603
- Enabled: true
604
-
605
- Style/EvenOdd:
606
- Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
607
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
608
- Enabled: true
609
-
610
- Layout/ExtraSpacing:
611
- Description: 'Do not use unnecessary spacing.'
612
- Enabled: true
613
-
614
- Naming/FileName:
615
- Description: 'Use snake_case for source file names.'
616
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
617
- Enabled: true
618
-
619
- Layout/InitialIndentation:
620
- Description: >-
621
- Checks the indentation of the first non-blank non-comment line in a file.
622
- Enabled: true
623
-
624
- Layout/FirstParameterIndentation:
625
- Description: 'Checks the indentation of the first parameter in a method call.'
626
- Enabled: true
627
-
628
- Style/FlipFlop:
629
- Description: 'Checks for flip flops'
630
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
631
- Enabled: true
632
-
633
- Style/For:
634
- Description: 'Checks use of for or each in multiline loops.'
635
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
636
- Enabled: true
637
-
638
- Style/FormatString:
639
- Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
640
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
641
- Enabled: true
642
-
643
- Style/GlobalVars:
644
- Description: 'Do not introduce global variables.'
645
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
646
- Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
647
- Enabled: true
648
-
649
- Style/HashSyntax:
650
- Description: >-
651
- Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
652
- { :a => 1, :b => 2 }.
653
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
654
- Enabled: true
655
-
56
+ Enabled: false
57
+ Style/StringConcatenation:
58
+ Enabled: false
656
59
  Style/IfUnlessModifier:
657
- Description: >-
658
- Favor modifier if/unless usage when you have a
659
- single-line body.
660
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
661
- Enabled: true
662
-
663
- Style/IfWithSemicolon:
664
- Description: 'Do not use if x; .... Use the ternary operator instead.'
665
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
666
- Enabled: true
667
-
668
- Layout/IndentationConsistency:
669
- Description: 'Keep indentation straight.'
670
- Enabled: true
671
-
672
- Layout/IndentationWidth:
673
- Description: 'Use 2 spaces for indentation.'
674
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
675
- Enabled: true
676
-
677
- Layout/IndentArray:
678
- Description: >-
679
- Checks the indentation of the first element in an array
680
- literal.
681
- Enabled: true
682
-
683
- Layout/IndentHash:
684
- Description: 'Checks the indentation of the first key in a hash literal.'
685
- Enabled: true
686
-
687
- Style/InfiniteLoop:
688
- Description: 'Use Kernel#loop for infinite loops.'
689
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#infinite-loop'
690
- Enabled: true
691
-
692
- Style/Lambda:
693
- Description: 'Use the new lambda literal syntax for single-line blocks.'
694
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
695
- Enabled: false
696
-
697
- Style/LambdaCall:
698
- Description: 'Use lambda.call(...) instead of lambda.(...).'
699
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
700
- Enabled: true
701
-
702
- Layout/LeadingCommentSpace:
703
- Description: 'Comments should start with a space.'
704
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-space'
705
- Enabled: true
706
-
707
- Style/LineEndConcatenation:
708
- Description: >-
709
- Use \ instead of + or << to concatenate two string literals at
710
- line end.
711
- Enabled: true
712
-
713
- Style/MethodCallWithoutArgsParentheses:
714
- Description: 'Do not use parentheses for method calls with no arguments.'
715
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-args-no-parens'
716
- Enabled: true
717
-
718
- Style/MethodDefParentheses:
719
- Description: >-
720
- Checks if the method definitions have or don't have
721
- parentheses.
722
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
723
- Enabled: true
724
-
725
- Naming/MethodName:
726
- Description: 'Use the configured style when naming methods.'
727
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
728
- Enabled: true
729
-
730
- Style/ModuleFunction:
731
- Description: 'Checks for usage of `extend self` in modules.'
732
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
733
- Enabled: true
734
-
735
- Style/MultilineBlockChain:
736
- Description: 'Avoid multi-line chains of blocks.'
737
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
738
- Enabled: true
739
-
740
- Layout/MultilineBlockLayout:
741
- Description: 'Ensures newlines after multiline block do statements.'
742
- Enabled: true
743
-
744
- Style/MultilineIfThen:
745
- Description: 'Do not use then for multi-line if/unless.'
746
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-then'
747
- Enabled: true
748
-
749
- Layout/MultilineOperationIndentation:
750
- Description: >-
751
- Checks indentation of binary operations that span more than
752
- one line.
753
- Enabled: true
754
-
755
- Style/NegatedIf:
756
- Description: >-
757
- Favor unless over if for negative conditions
758
- (or control flow or).
759
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
760
- Enabled: true
761
-
762
- Style/NegatedWhile:
763
- Description: 'Favor until over while for negative conditions.'
764
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
765
- Enabled: true
766
-
767
- Style/NestedTernaryOperator:
768
- Description: 'Use one expression per branch in a ternary operator.'
769
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
770
- Enabled: false
771
-
772
- Style/Next:
773
- Description: 'Use `next` to skip iteration instead of a condition at the end.'
774
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
775
- Enabled: true
776
-
777
- Style/NilComparison:
778
- Description: 'Prefer x.nil? to x == nil.'
779
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
780
- Enabled: true
781
-
782
- Style/NonNilCheck:
783
- Description: 'Checks for redundant nil checks.'
784
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks'
785
- Enabled: true
786
-
787
- Style/Not:
788
- Description: 'Use ! instead of not.'
789
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
790
- Enabled: true
791
-
792
- Style/NumericLiterals:
793
- Description: >-
794
- Add underscores to large numeric literals to improve their
795
- readability.
796
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
797
- Enabled: true
798
-
799
- Style/OneLineConditional:
800
- Description: >-
801
- Favor the ternary operator(?:) over
802
- if/then/else/end constructs.
803
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
804
- Enabled: true
805
-
806
- Naming/BinaryOperatorParameterName:
807
- Description: 'When defining binary operators, name the argument other.'
808
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
809
- Enabled: false
810
-
811
- Style/OptionalArguments:
812
- Description: >-
813
- Checks for optional arguments that do not appear at the end
814
- of the argument list
815
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#optional-arguments'
816
- Enabled: true
817
-
818
- Style/ParallelAssignment:
819
- Description: >-
820
- Check for simple usages of parallel assignment.
821
- It will only warn when the number of variables
822
- matches on both sides of the assignment.
823
- This also provides performance benefits
824
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parallel-assignment'
825
- Enabled: true
826
-
827
- Style/ParenthesesAroundCondition:
828
- Description: >-
829
- Don't use parentheses around the condition of an
830
- if/unless/while.
831
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-parens-if'
832
- Enabled: true
833
-
834
- Style/PercentLiteralDelimiters:
835
- Description: 'Use `%`-literal delimiters consistently'
836
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
837
- Enabled: true
838
-
839
- Style/PercentQLiterals:
840
- Description: 'Checks if uses of %Q/%q match the configured preference.'
841
- Enabled: true
842
-
843
- Style/PerlBackrefs:
844
- Description: 'Avoid Perl-style regex back references.'
845
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
846
- Enabled: true
847
-
848
- Naming/PredicateName:
849
- Description: 'Check the names of predicate methods.'
850
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
851
- Enabled: true
852
-
853
- Style/Proc:
854
- Description: 'Use proc instead of Proc.new.'
855
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
856
- Enabled: true
857
-
858
- Style/RaiseArgs:
859
- Description: 'Checks the arguments passed to raise/fail.'
860
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
861
- Enabled: true
862
-
863
- Style/RedundantBegin:
864
- Description: "Don't use begin blocks when they are not needed."
865
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#begin-implicit'
866
- Enabled: true
867
-
868
- Style/RedundantException:
869
- Description: "Checks for an obsolete RuntimeException argument in raise/fail."
870
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror'
871
- Enabled: true
872
-
873
- Style/RedundantReturn:
874
- Description: "Don't use return where it's not required."
875
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-explicit-return'
876
- Enabled: true
877
-
878
- Style/RedundantSelf:
879
- Description: "Don't use self where it's not needed."
880
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-self-unless-required'
881
- Enabled: true
882
-
883
- Style/RegexpLiteral:
884
- Description: 'Use / or %r around regular expressions.'
885
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
886
- Enabled: true
887
-
888
- Layout/RescueEnsureAlignment:
889
- Description: 'Align rescues and ensures correctly.'
890
- Enabled: true
891
-
892
- Style/RescueModifier:
893
- Description: 'Avoid using rescue in its modifier form.'
894
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
895
- Enabled: true
896
-
897
- Style/SelfAssignment:
898
- Description: >-
899
- Checks for places where self-assignment shorthand should have
900
- been used.
901
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
902
- Enabled: true
903
-
904
- Style/Semicolon:
905
- Description: "Don't use semicolons to terminate expressions."
906
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon'
907
- Enabled: true
908
-
909
- Style/SignalException:
910
- Description: 'Checks for proper usage of fail and raise.'
911
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
912
- Enabled: true
913
-
914
- Style/SingleLineBlockParams:
915
- Description: 'Enforces the names of some block params.'
916
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
917
- Enabled: true
918
-
919
- Style/SingleLineMethods:
920
- Description: 'Avoid single-line methods.'
921
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
922
- Enabled: true
923
-
924
- Layout/SpaceBeforeFirstArg:
925
- Description: >-
926
- Checks that exactly one space is used between a method name
927
- and the first argument for method calls without parentheses.
928
- Enabled: true
929
-
930
- Layout/SpaceAfterColon:
931
- Description: 'Use spaces after colons.'
932
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
933
- Enabled: true
934
-
935
- Layout/SpaceAfterComma:
936
- Description: 'Use spaces after commas.'
937
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
938
- Enabled: true
939
-
940
- Layout/SpaceAroundKeyword:
941
- Description: 'Use spaces around keywords.'
942
- Enabled: true
943
-
944
- Layout/SpaceAfterMethodName:
945
- Description: >-
946
- Do not put a space between a method name and the opening
947
- parenthesis in a method definition.
948
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
949
- Enabled: true
950
-
951
- Layout/SpaceAfterNot:
952
- Description: Tracks redundant space after the ! operator.
953
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-bang'
954
- Enabled: true
955
-
956
- Layout/SpaceAfterSemicolon:
957
- Description: 'Use spaces after semicolons.'
958
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
959
- Enabled: true
960
-
961
- Layout/SpaceBeforeBlockBraces:
962
- Description: >-
963
- Checks that the left block brace has or doesn't have space
964
- before it.
965
- Enabled: true
966
-
967
- Layout/SpaceBeforeComma:
968
- Description: 'No spaces before commas.'
969
- Enabled: true
970
-
971
- Layout/SpaceBeforeComment:
972
- Description: >-
973
- Checks for missing space between code and a comment on the
974
- same line.
975
- Enabled: true
976
-
977
- Layout/SpaceBeforeSemicolon:
978
- Description: 'No spaces before semicolons.'
979
- Enabled: true
980
-
981
- Layout/SpaceInsideBlockBraces:
982
- Description: >-
983
- Checks that block braces have or don't have surrounding space.
984
- For blocks taking parameters, checks that the left brace has
985
- or doesn't have trailing space.
986
- Enabled: true
987
-
988
- Layout/SpaceAroundBlockParameters:
989
- Description: 'Checks the spacing inside and after block parameters pipes.'
990
- Enabled: true
991
-
992
- Layout/SpaceAroundEqualsInParameterDefault:
993
- Description: >-
994
- Checks that the equals signs in parameter default assignments
995
- have or don't have surrounding space depending on
996
- configuration.
997
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-around-equals'
998
- Enabled: true
999
-
1000
- Layout/SpaceAroundOperators:
1001
- Description: 'Use a single space around operators.'
1002
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1003
- Enabled: true
1004
-
1005
- Layout/SpaceInsideReferenceBrackets:
1006
- Description: 'No spaces after array [ or before ].'
1007
- Enabled: true
1008
-
1009
- Layout/SpaceInsideArrayLiteralBrackets:
1010
- Description: No spaces after array = [ or before ].
1011
- Enabled: true
1012
-
1013
- Layout/SpaceInsideHashLiteralBraces:
1014
- Description: "Use spaces inside hash literal braces - or don't."
1015
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-operators'
1016
- Enabled: true
1017
-
1018
- Layout/SpaceInsideParens:
1019
- Description: 'No spaces after ( or before ).'
1020
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
1021
- Enabled: true
1022
-
1023
- Layout/SpaceInsideRangeLiteral:
1024
- Description: 'No spaces inside range literals.'
1025
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
1026
- Enabled: true
1027
-
1028
- Layout/SpaceInsideStringInterpolation:
1029
- Description: 'Checks for padding/surrounding spaces inside string interpolation.'
1030
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
1031
- Enabled: true
1032
-
1033
- Style/SpecialGlobalVars:
1034
- Description: 'Avoid Perl-style global variables.'
1035
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
1036
- Enabled: true
1037
-
1038
- Style/StringLiterals:
1039
- Description: 'Checks if uses of quotes match the configured preference.'
1040
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
1041
- Enabled: true
1042
-
1043
- Style/StringLiteralsInInterpolation:
1044
- Description: >-
1045
- Checks if uses of quotes inside expressions in interpolated
1046
- strings match the configured preference.
1047
- Enabled: true
1048
-
1049
- Style/StructInheritance:
1050
- Description: 'Checks for inheritance from Struct.new.'
1051
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
1052
- Enabled: true
1053
-
1054
- Style/SymbolLiteral:
1055
- Description: 'Use plain symbols instead of string symbols when possible.'
1056
- Enabled: true
1057
-
1058
- Style/SymbolProc:
1059
- Description: 'Use symbols as procs instead of blocks when possible.'
1060
- Enabled: true
1061
-
1062
- Layout/Tab:
1063
- Description: 'No hard tabs.'
1064
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
1065
- Enabled: true
1066
-
1067
- Layout/TrailingBlankLines:
1068
- Description: 'Checks trailing blank lines and final newline.'
1069
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
1070
- Enabled: true
1071
-
1072
- Style/TrailingCommaInArguments:
1073
- Description: 'Checks for trailing comma in parameter lists.'
1074
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1075
- Enabled: true
1076
-
1077
- Style/TrailingCommaInArrayLiteral:
1078
- Description: 'Checks for trailing comma in array literals.'
1079
- Enabled: true
1080
-
1081
- Style/TrailingCommaInHashLiteral:
1082
- Description: 'Checks for trailing comma in hash literals.'
1083
- Enabled: true
1084
-
1085
- Layout/TrailingWhitespace:
1086
- Description: 'Avoid trailing whitespace.'
1087
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
1088
- Enabled: true
1089
-
1090
- Style/TrivialAccessors:
1091
- Description: 'Prefer attr_* methods to trivial readers/writers.'
1092
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
1093
- Enabled: true
1094
-
1095
- Style/UnlessElse:
1096
- Description: >-
1097
- Do not use unless with else. Rewrite these with the positive
1098
- case first.
1099
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
1100
- Enabled: true
1101
-
1102
- Style/UnneededCapitalW:
1103
- Description: 'Checks for %W when interpolation is not needed.'
1104
- Enabled: true
1105
-
1106
- Style/UnneededPercentQ:
1107
- Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
1108
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
1109
- Enabled: true
1110
-
1111
- Style/TrailingUnderscoreVariable:
1112
- Description: >-
1113
- Checks for the usage of unneeded trailing underscores at the
1114
- end of parallel variable assignment.
1115
- Enabled: true
1116
-
1117
- Style/VariableInterpolation:
1118
- Description: >-
1119
- Don't interpolate global, instance and class variables
1120
- directly in strings.
1121
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
1122
- Enabled: false
1123
-
1124
- Naming/VariableName:
1125
- Description: 'Use the configured style when naming variables.'
1126
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
1127
- Enabled: true
1128
-
1129
- Style/WhenThen:
1130
- Description: 'Use when x then ... for one-line cases.'
1131
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
1132
- Enabled: true
1133
-
1134
- Style/WhileUntilDo:
1135
- Description: 'Checks for redundant do after while or until.'
1136
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
1137
- Enabled: true
1138
-
1139
- Style/WhileUntilModifier:
1140
- Description: >-
1141
- Favor modifier while/until usage when you have a
1142
- single-line body.
1143
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
1144
- Enabled: true
1145
-
1146
- Style/WordArray:
1147
- Description: 'Use %w or %W for arrays of words.'
1148
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
1149
- Enabled: true
1150
-
1151
- Bundler/OrderedGems:
1152
- Enabled: true
1153
-
1154
- RSpec/AnyInstance:
1155
- Enabled: false
1156
-
1157
- RSpec/DescribedClass:
1158
- EnforcedStyle: explicit
1159
-
1160
- RSpec/ExampleLength:
1161
- Enabled: false
1162
-
1163
- RSpec/HookArgument:
1164
- EnforcedStyle: each
1165
-
1166
- RSpec/MultipleExpectations:
1167
- Enabled: false
1168
-
1169
- RSpec/ImplicitExpect:
1170
- EnforcedStyle: should
1171
-
1172
- RSpec/MessageSpies:
1173
- EnforcedStyle: receive
1174
-
1175
- RSpec/NestedGroups:
1176
- Enabled: false
1177
-
1178
- RSpec/NotToNot:
1179
- EnforcedStyle: to_not
1180
-
1181
- RSpec/VerifiedDoubles:
1182
- Enabled: false
60
+ Enabled: false
61
+ Metrics/MethodLength:
62
+ Max: 20
63
+ Gemspec/AddRuntimeDependency: # new in 1.65
64
+ Enabled: true
65
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
66
+ Enabled: true
67
+ Gemspec/DevelopmentDependencies: # new in 1.44
68
+ Enabled: true
69
+ Gemspec/RequireMFA: # new in 1.23
70
+ Enabled: true
71
+ Layout/LineContinuationLeadingSpace: # new in 1.31
72
+ Enabled: true
73
+ Layout/LineContinuationSpacing: # new in 1.31
74
+ Enabled: true
75
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
76
+ Enabled: true
77
+ Layout/SpaceBeforeBrackets: # new in 1.7
78
+ Enabled: true
79
+ Lint/AmbiguousAssignment: # new in 1.7
80
+ Enabled: true
81
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
82
+ Enabled: true
83
+ Lint/AmbiguousRange: # new in 1.19
84
+ Enabled: true
85
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
86
+ Enabled: true
87
+ Lint/DeprecatedConstants: # new in 1.8
88
+ Enabled: true
89
+ Lint/DuplicateBranch: # new in 1.3
90
+ Enabled: true
91
+ Lint/DuplicateMagicComment: # new in 1.37
92
+ Enabled: true
93
+ Lint/DuplicateMatchPattern: # new in 1.50
94
+ Enabled: true
95
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
96
+ Enabled: true
97
+ Lint/EmptyBlock: # new in 1.1
98
+ Enabled: true
99
+ Lint/EmptyClass: # new in 1.3
100
+ Enabled: true
101
+ Lint/EmptyInPattern: # new in 1.16
102
+ Enabled: true
103
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
104
+ Enabled: true
105
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
106
+ Enabled: true
107
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
108
+ Enabled: true
109
+ Lint/LiteralAssignmentInCondition: # new in 1.58
110
+ Enabled: true
111
+ Lint/MixedCaseRange: # new in 1.53
112
+ Enabled: true
113
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
114
+ Enabled: true
115
+ Lint/NonAtomicFileOperation: # new in 1.31
116
+ Enabled: true
117
+ Lint/NumberedParameterAssignment: # new in 1.9
118
+ Enabled: true
119
+ Lint/OrAssignmentToConstant: # new in 1.9
120
+ Enabled: true
121
+ Lint/RedundantDirGlobSort: # new in 1.8
122
+ Enabled: true
123
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
124
+ Enabled: true
125
+ Lint/RefinementImportMethods: # new in 1.27
126
+ Enabled: true
127
+ Lint/RequireRangeParentheses: # new in 1.32
128
+ Enabled: true
129
+ Lint/RequireRelativeSelfPath: # new in 1.22
130
+ Enabled: true
131
+ Lint/SymbolConversion: # new in 1.9
132
+ Enabled: true
133
+ Lint/ToEnumArguments: # new in 1.1
134
+ Enabled: true
135
+ Lint/TripleQuotes: # new in 1.9
136
+ Enabled: true
137
+ Lint/UnexpectedBlockArity: # new in 1.5
138
+ Enabled: true
139
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
140
+ Enabled: true
141
+ Lint/UselessRescue: # new in 1.43
142
+ Enabled: true
143
+ Lint/UselessRuby2Keywords: # new in 1.23
144
+ Enabled: true
145
+ Metrics/CollectionLiteralLength: # new in 1.47
146
+ Enabled: true
147
+ Naming/BlockForwarding: # new in 1.24
148
+ Enabled: true
149
+ Security/CompoundHash: # new in 1.28
150
+ Enabled: true
151
+ Security/IoMethods: # new in 1.22
152
+ Enabled: true
153
+ Style/ArgumentsForwarding: # new in 1.1
154
+ Enabled: false
155
+ Style/ArrayIntersect: # new in 1.40
156
+ Enabled: true
157
+ Style/CollectionCompact: # new in 1.2
158
+ Enabled: true
159
+ Style/ComparableClamp: # new in 1.44
160
+ Enabled: true
161
+ Style/ConcatArrayLiterals: # new in 1.41
162
+ Enabled: true
163
+ Style/DataInheritance: # new in 1.49
164
+ Enabled: true
165
+ Style/DirEmpty: # new in 1.48
166
+ Enabled: true
167
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
168
+ Enabled: true
169
+ Style/EmptyHeredoc: # new in 1.32
170
+ Enabled: true
171
+ Style/EndlessMethod: # new in 1.8
172
+ Enabled: true
173
+ Style/EnvHome: # new in 1.29
174
+ Enabled: true
175
+ Style/ExactRegexpMatch: # new in 1.51
176
+ Enabled: true
177
+ Style/FetchEnvVar: # new in 1.28
178
+ Enabled: true
179
+ Style/FileEmpty: # new in 1.48
180
+ Enabled: true
181
+ Style/FileRead: # new in 1.24
182
+ Enabled: true
183
+ Style/FileWrite: # new in 1.24
184
+ Enabled: true
185
+ Style/HashConversion: # new in 1.10
186
+ Enabled: true
187
+ Style/HashExcept: # new in 1.7
188
+ Enabled: true
189
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
190
+ Enabled: true
191
+ Style/InPatternThen: # new in 1.16
192
+ Enabled: true
193
+ Style/MagicCommentFormat: # new in 1.35
194
+ Enabled: true
195
+ Style/MapCompactWithConditionalBlock: # new in 1.30
196
+ Enabled: true
197
+ Style/MapIntoArray: # new in 1.63
198
+ Enabled: true
199
+ Style/MapToHash: # new in 1.24
200
+ Enabled: false
201
+ Style/MapToSet: # new in 1.42
202
+ Enabled: true
203
+ Style/MinMaxComparison: # new in 1.42
204
+ Enabled: true
205
+ Style/MultilineInPatternThen: # new in 1.16
206
+ Enabled: true
207
+ Style/NegatedIfElseCondition: # new in 1.2
208
+ Enabled: true
209
+ Style/NestedFileDirname: # new in 1.26
210
+ Enabled: true
211
+ Style/NilLambda: # new in 1.3
212
+ Enabled: true
213
+ Style/NumberedParameters: # new in 1.22
214
+ Enabled: true
215
+ Style/NumberedParametersLimit: # new in 1.22
216
+ Enabled: true
217
+ Style/ObjectThen: # new in 1.28
218
+ Enabled: true
219
+ Style/OpenStructUse: # new in 1.23
220
+ Enabled: true
221
+ Style/OperatorMethodCall: # new in 1.37
222
+ Enabled: true
223
+ Style/QuotedSymbols: # new in 1.16
224
+ Enabled: true
225
+ Style/RedundantArgument: # new in 1.4
226
+ Enabled: true
227
+ Style/RedundantArrayConstructor: # new in 1.52
228
+ Enabled: true
229
+ Style/RedundantConstantBase: # new in 1.40
230
+ Enabled: true
231
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
232
+ Enabled: true
233
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
234
+ Enabled: true
235
+ Style/RedundantEach: # new in 1.38
236
+ Enabled: true
237
+ Style/RedundantFilterChain: # new in 1.52
238
+ Enabled: true
239
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
240
+ Enabled: true
241
+ Style/RedundantInitialize: # new in 1.27
242
+ Enabled: true
243
+ Style/RedundantLineContinuation: # new in 1.49
244
+ Enabled: true
245
+ Style/RedundantRegexpArgument: # new in 1.53
246
+ Enabled: true
247
+ Style/RedundantRegexpConstructor: # new in 1.52
248
+ Enabled: true
249
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
250
+ Enabled: true
251
+ Style/RedundantStringEscape: # new in 1.37
252
+ Enabled: true
253
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
254
+ Enabled: true
255
+ Style/SelectByRegexp: # new in 1.22
256
+ Enabled: true
257
+ Style/SendWithLiteralMethodName: # new in 1.64
258
+ Enabled: false
259
+ Style/SingleLineDoEndBlock: # new in 1.57
260
+ Enabled: true
261
+ Style/StringChars: # new in 1.12
262
+ Enabled: true
263
+ Style/SuperArguments: # new in 1.64
264
+ Enabled: true
265
+ Style/SuperWithArgsParentheses: # new in 1.58
266
+ Enabled: true
267
+ Style/SwapValues: # new in 1.1
268
+ Enabled: true
269
+ Style/YAMLFileRead: # new in 1.53
270
+ Enabled: true
271
+ Performance/AncestorsInclude: # new in 1.7
272
+ Enabled: true
273
+ Performance/BigDecimalWithNumericArgument: # new in 1.7
274
+ Enabled: true
275
+ Performance/BlockGivenWithExplicitBlock: # new in 1.9
276
+ Enabled: true
277
+ Performance/CollectionLiteralInLoop: # new in 1.8
278
+ Enabled: true
279
+ Performance/ConcurrentMonotonicTime: # new in 1.12
280
+ Enabled: true
281
+ Performance/ConstantRegexp: # new in 1.9
282
+ Enabled: true
283
+ Performance/MapCompact: # new in 1.11
284
+ Enabled: true
285
+ Performance/MapMethodChain: # new in 1.19
286
+ Enabled: true
287
+ Performance/MethodObjectAsBlock: # new in 1.9
288
+ Enabled: true
289
+ Performance/RedundantEqualityComparisonBlock: # new in 1.10
290
+ Enabled: true
291
+ Performance/RedundantSortBlock: # new in 1.7
292
+ Enabled: true
293
+ Performance/RedundantSplitRegexpArgument: # new in 1.10
294
+ Enabled: true
295
+ Performance/RedundantStringChars: # new in 1.7
296
+ Enabled: true
297
+ Performance/ReverseFirst: # new in 1.7
298
+ Enabled: true
299
+ Performance/SortReverse: # new in 1.7
300
+ Enabled: true
301
+ Performance/Squeeze: # new in 1.7
302
+ Enabled: true
303
+ Performance/StringIdentifierArgument: # new in 1.13
304
+ Enabled: true
305
+ Performance/StringInclude: # new in 1.7
306
+ Enabled: true
307
+ Performance/Sum: # new in 1.8
308
+ Enabled: true
309
+ Rails/ActionControllerFlashBeforeRender: # new in 2.16
310
+ Enabled: true
311
+ Rails/ActionControllerTestCase: # new in 2.14
312
+ Enabled: true
313
+ Rails/ActionOrder: # new in 2.17
314
+ Enabled: true
315
+ Rails/ActiveRecordCallbacksOrder: # new in 2.7
316
+ Enabled: true
317
+ Rails/ActiveSupportOnLoad: # new in 2.16
318
+ Enabled: true
319
+ Rails/AddColumnIndex: # new in 2.11
320
+ Enabled: true
321
+ Rails/AfterCommitOverride: # new in 2.8
322
+ Enabled: true
323
+ Rails/AttributeDefaultBlockValue: # new in 2.9
324
+ Enabled: true
325
+ Rails/CompactBlank: # new in 2.13
326
+ Enabled: true
327
+ Rails/DangerousColumnNames: # new in 2.21
328
+ Enabled: true
329
+ Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
330
+ Enabled: true
331
+ Rails/DotSeparatedKeys: # new in 2.15
332
+ Enabled: true
333
+ Rails/DuplicateAssociation: # new in 2.14
334
+ Enabled: true
335
+ Rails/DuplicateScope: # new in 2.14
336
+ Enabled: true
337
+ Rails/DurationArithmetic: # new in 2.13
338
+ Enabled: true
339
+ Rails/EagerEvaluationLogMessage: # new in 2.11
340
+ Enabled: true
341
+ Rails/EnvLocal: # new in 2.22
342
+ Enabled: true
343
+ Rails/ExpandedDateRange: # new in 2.11
344
+ Enabled: true
345
+ Rails/FindById: # new in 2.7
346
+ Enabled: true
347
+ Rails/FreezeTime: # new in 2.16
348
+ Enabled: true
349
+ Rails/I18nLazyLookup: # new in 2.14
350
+ Enabled: true
351
+ Rails/I18nLocaleAssignment: # new in 2.11
352
+ Enabled: true
353
+ Rails/I18nLocaleTexts: # new in 2.14
354
+ Enabled: true
355
+ Rails/IgnoredColumnsAssignment: # new in 2.17
356
+ Enabled: true
357
+ Rails/Inquiry: # new in 2.7
358
+ Enabled: true
359
+ Rails/MailerName: # new in 2.7
360
+ Enabled: true
361
+ Rails/MatchRoute: # new in 2.7
362
+ Enabled: true
363
+ Rails/MigrationClassName: # new in 2.14
364
+ Enabled: true
365
+ Rails/NegateInclude: # new in 2.7
366
+ Enabled: true
367
+ Rails/Pluck: # new in 2.7
368
+ Enabled: true
369
+ Rails/PluckInWhere: # new in 2.7
370
+ Enabled: true
371
+ Rails/RedundantActiveRecordAllMethod: # new in 2.21
372
+ Enabled: true
373
+ Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
374
+ Enabled: true
375
+ Rails/RedundantTravelBack: # new in 2.12
376
+ Enabled: true
377
+ Rails/RenderInline: # new in 2.7
378
+ Enabled: true
379
+ Rails/RenderPlainText: # new in 2.7
380
+ Enabled: true
381
+ Rails/ResponseParsedBody: # new in 2.18
382
+ Enabled: true
383
+ Rails/RootJoinChain: # new in 2.13
384
+ Enabled: true
385
+ Rails/RootPathnameMethods: # new in 2.16
386
+ Enabled: true
387
+ Rails/RootPublicPath: # new in 2.15
388
+ Enabled: true
389
+ Rails/ShortI18n: # new in 2.7
390
+ Enabled: true
391
+ Rails/SquishedSQLHeredocs: # new in 2.8
392
+ Enabled: true
393
+ Rails/StripHeredoc: # new in 2.15
394
+ Enabled: true
395
+ Rails/ThreeStateBooleanColumn: # new in 2.19
396
+ Enabled: true
397
+ Rails/TimeZoneAssignment: # new in 2.10
398
+ Enabled: true
399
+ Rails/ToFormattedS: # new in 2.15
400
+ Enabled: true
401
+ Rails/ToSWithArgument: # new in 2.16
402
+ Enabled: true
403
+ Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
404
+ Enabled: true
405
+ Rails/TransactionExitStatement: # new in 2.14
406
+ Enabled: true
407
+ Rails/UnusedRenderContent: # new in 2.21
408
+ Enabled: true
409
+ Rails/WhereEquals: # new in 2.9
410
+ Enabled: true
411
+ Rails/WhereExists: # new in 2.7
412
+ Enabled: true
413
+ Rails/WhereMissing: # new in 2.16
414
+ Enabled: true
415
+ Rails/WhereNot: # new in 2.8
416
+ Enabled: true
417
+ Rails/WhereNotWithMultipleConditions: # new in 2.17
418
+ Enabled: true
419
+ Rails/WhereRange: # new in 2.25
420
+ Enabled: true