grape_on_rails 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,153 @@
1
+ # These are all the cops that are disabled in the default configuration.
2
+
3
+ Style/Lambda:
4
+ Description: "Use the new lambda literal syntax for single-line blocks."
5
+ Enabled: false
6
+
7
+ Style/StabbyLambdaParentheses:
8
+ Enabled: false
9
+
10
+ Style/InlineComment:
11
+ Description: "Avoid inline comments."
12
+ Enabled: false
13
+
14
+ Style/MethodCalledOnDoEndBlock:
15
+ Description: "Avoid chaining a method call on a do...end block."
16
+ Enabled: false
17
+
18
+ Style/SymbolArray:
19
+ Description: "Use %i or %I for arrays of symbols."
20
+ Enabled: false
21
+
22
+ Style/Documentation:
23
+ Description: "Document classes and non-namespace modules."
24
+ Enabled: false
25
+
26
+ Layout/EmptyLinesAroundAccessModifier:
27
+ Description: "Keep blank lines around access modifiers."
28
+ Enabled: false
29
+
30
+ Style/EmptyLiteral:
31
+ Description: "Prefer literals to Array.new/Hash.new/String.new."
32
+ Enabled: false
33
+
34
+ Style/ClassAndModuleChildren:
35
+ Description: "Checks style of children classes and modules."
36
+ Enabled: false
37
+
38
+ Metrics/ClassLength:
39
+ Description: "Avoid classes longer than 100 lines of code."
40
+ Enabled: false
41
+
42
+ Metrics/MethodLength:
43
+ Description: "Avoid methods longer than 10 lines of code."
44
+ Enabled: false
45
+
46
+ Metrics/ParameterLists:
47
+ Description: "Avoid parameter lists longer than three or four parameters."
48
+ Enabled: false
49
+
50
+ Metrics/CyclomaticComplexity:
51
+ Description: "Avoid complex methods."
52
+ Enabled: false
53
+
54
+ Layout/AlignArray:
55
+ Description: >-
56
+ Align the elements of an array literal if they span more than
57
+ one line.
58
+ Enabled: false
59
+
60
+ Style/UnneededPercentQ:
61
+ Description: "Checks for %q/%Q when single quotes or double quotes would do."
62
+ Enabled: false
63
+
64
+ Style/AccessorMethodName:
65
+ Description: Check the naming of accessor methods for get_/set_.
66
+ Enabled: false
67
+
68
+ Style/MutableConstant:
69
+ Enabled: false
70
+
71
+ Style/FrozenStringLiteralComment:
72
+ Enabled: false
73
+
74
+ Style/RedundantParentheses:
75
+ Enabled: false
76
+
77
+ Style/EmptyCaseCondition:
78
+ Enabled: false
79
+
80
+ Style/EmptyMethod:
81
+ Enabled: false
82
+
83
+ Style/FormatStringToken:
84
+ Enabled: false
85
+
86
+ Layout/MultilineMethodCallIndentation:
87
+ Enabled: false
88
+
89
+ Layout/MultilineArrayBraceLayout:
90
+ Enabled: false
91
+
92
+ Layout/IndentArray:
93
+ Enabled: false
94
+
95
+ Layout/MultilineHashBraceLayout:
96
+ Enabled: false
97
+
98
+ Style/NestedParenthesizedCalls:
99
+ Enabled: false
100
+
101
+ Style/Alias:
102
+ Enabled: false
103
+
104
+ Style/MultilineIfModifier:
105
+ Enabled: false
106
+
107
+ Lint/AmbiguousBlockAssociation:
108
+ Enabled: false
109
+
110
+ Performance/StringReplacement:
111
+ Enabled: false
112
+
113
+ Metrics/BlockLength:
114
+ Enabled: false
115
+
116
+ Style/NumericPredicate:
117
+ Enabled: false
118
+
119
+ Layout/SpaceInLambdaLiteral:
120
+ Enabled: false
121
+
122
+ Layout/SpaceInsideBlockBraces:
123
+ Enabled: false
124
+
125
+ Lint/UselessAccessModifier:
126
+ Enabled: false
127
+
128
+ Performance/RedundantBlockCall:
129
+ Enabled: false
130
+
131
+ Style/NumericLiteralPrefix:
132
+ Enabled: false
133
+
134
+ Style/Encoding:
135
+ Enabled: false
136
+
137
+ Rails/SkipsModelValidations:
138
+ Enabled: false
139
+
140
+ Rails/Blank:
141
+ Enabled: false
142
+
143
+ Rails/Delegate:
144
+ Enabled: false
145
+
146
+ Rails/OutputSafety:
147
+ Enabled: false
148
+
149
+ #################### Lint ################################
150
+ ### Warnings
151
+ Lint/AssignmentInCondition:
152
+ Description: "Don't use assignment in conditions."
153
+ Enabled: false
@@ -0,0 +1,756 @@
1
+ # These are all the cops that are enabled in the default configuration.
2
+ Layout/MultilineOperationIndentation:
3
+ EnforcedStyle: indented
4
+ Enabled: true
5
+
6
+ Layout/AccessModifierIndentation:
7
+ Description: Check indentation of private/protected visibility modifiers.
8
+ Enabled: true
9
+
10
+ Style/Alias:
11
+ Description: "Use alias_method instead of alias."
12
+ Enabled: true
13
+
14
+ Layout/AlignHash:
15
+ Description: >-
16
+ Align the elements of a hash literal if they span more than
17
+ one line.
18
+ Enabled: true
19
+
20
+ Layout/AlignParameters:
21
+ Description: >-
22
+ Align the parameters of a method call if they span more
23
+ than one line.
24
+ Enabled: true
25
+
26
+ Style/AndOr:
27
+ Description: "Use &&/|| instead of and/or."
28
+ Enabled: true
29
+
30
+ Style/ArrayJoin:
31
+ Description: "Use Array#join instead of Array#*."
32
+ Enabled: true
33
+
34
+ Style/AsciiComments:
35
+ Description: "Use only ascii symbols in comments."
36
+ Enabled: true
37
+
38
+ Style/AsciiIdentifiers:
39
+ Description: "Use only ascii symbols in identifiers."
40
+ Enabled: true
41
+
42
+ Style/Attr:
43
+ Description: "Checks for uses of Module#attr."
44
+ Enabled: true
45
+
46
+ Style/BeginBlock:
47
+ Description: "Avoid the use of BEGIN blocks."
48
+ Enabled: true
49
+
50
+ Style/BlockComments:
51
+ Description: "Do not use block comments."
52
+ Enabled: true
53
+
54
+ Metrics/BlockNesting:
55
+ Description: "Avoid excessive block nesting"
56
+ Enabled: true
57
+
58
+ Style/BlockDelimiters:
59
+ Description: >-
60
+ Avoid using {...} for multi-line blocks (multiline chaining is
61
+ always ugly).
62
+ Prefer {...} over do...end for single-line blocks.
63
+ Enabled: true
64
+
65
+ Style/BracesAroundHashParameters:
66
+ Description: "Enforce braces style inside hash parameters."
67
+ Enabled: true
68
+
69
+ Style/CaseEquality:
70
+ Description: "Avoid explicit use of the case equality operator(===)."
71
+ Enabled: true
72
+
73
+ Layout/CaseIndentation:
74
+ Description: "Indentation of when in a case/when/[else/]end."
75
+ Enabled: true
76
+
77
+ Style/CharacterLiteral:
78
+ Description: "Checks for uses of character literals."
79
+ Enabled: true
80
+
81
+ Style/ClassAndModuleCamelCase:
82
+ Description: "Use CamelCase for classes and modules."
83
+ Enabled: true
84
+
85
+ Style/ClassAndModuleChildren:
86
+ Description: "Checks style of children classes and modules."
87
+ Enabled: true
88
+
89
+ Style/ClassCheck:
90
+ Description: "Enforces consistent use of `Object#is_a?` or `Object#kind_of?`."
91
+ Enabled: true
92
+
93
+ Style/ClassMethods:
94
+ Description: "Use self when defining module/class methods."
95
+ Enabled: true
96
+
97
+ Style/ClassVars:
98
+ Description: "Avoid the use of class variables."
99
+ Enabled: true
100
+
101
+ Style/CollectionMethods:
102
+ Description: "Preferred collection methods."
103
+ Enabled: true
104
+
105
+ Style/ColonMethodCall:
106
+ Description: "Do not use :: for method call."
107
+ Enabled: true
108
+
109
+ Style/CommentAnnotation:
110
+ Description: >-
111
+ Checks formatting of special comments
112
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
113
+ Enabled: true
114
+
115
+ Layout/CommentIndentation:
116
+ Description: "Indentation of comments."
117
+ Enabled: true
118
+
119
+ Style/ConstantName:
120
+ Description: "Constants should use SCREAMING_SNAKE_CASE."
121
+ Enabled: true
122
+
123
+ Style/DefWithParentheses:
124
+ Description: "Use def with parentheses when there are arguments."
125
+ Enabled: true
126
+
127
+ Style/PreferredHashMethods:
128
+ Description: "Checks for use of deprecated Hash methods."
129
+ Enabled: true
130
+
131
+ Style/Documentation:
132
+ Description: "Document classes and non-namespace modules."
133
+ Enabled: true
134
+
135
+ Layout/DotPosition:
136
+ Description: "Checks the position of the dot in multi-line method calls."
137
+ Enabled: true
138
+
139
+ Style/DoubleNegation:
140
+ Description: "Checks for uses of double negation (!!)."
141
+ Enabled: true
142
+
143
+ Style/EachWithObject:
144
+ Description: "Prefer `each_with_object` over `inject` or `reduce`."
145
+ Enabled: true
146
+
147
+ Layout/EmptyLineBetweenDefs:
148
+ Description: "Use empty lines between defs."
149
+ Enabled: true
150
+
151
+ Layout/EmptyLines:
152
+ Description: "Don't use several empty lines in a row."
153
+ Enabled: true
154
+
155
+ Layout/EmptyLinesAroundAccessModifier:
156
+ Description: "Keep blank lines around access modifiers."
157
+ Enabled: true
158
+
159
+ Layout/EmptyLinesAroundBlockBody:
160
+ Description: "Keeps track of empty lines around expression bodies."
161
+ Enabled: true
162
+
163
+ Layout/EmptyLinesAroundClassBody:
164
+ Description: "Keeps track of empty lines around expression classes."
165
+ Enabled: true
166
+
167
+ Layout/EmptyLinesAroundModuleBody:
168
+ Description: "Keeps track of empty lines around expression modules."
169
+ Enabled: true
170
+
171
+ Style/EmptyLiteral:
172
+ Description: "Prefer literals to Array.new/Hash.new/String.new."
173
+ Enabled: true
174
+
175
+ Style/Encoding:
176
+ Description: "Use UTF-8 as the source file encoding."
177
+ Enabled: true
178
+
179
+ Style/EndBlock:
180
+ Description: "Avoid the use of END blocks."
181
+ Enabled: true
182
+
183
+ Layout/EndOfLine:
184
+ Description: "Use Unix-style line endings."
185
+ Enabled: true
186
+
187
+ Style/EvenOdd:
188
+ Description: "Favor the use of Fixnum#even? && Fixnum#odd?"
189
+ Enabled: true
190
+
191
+ Style/FileName:
192
+ Description: "Use snake_case for source file names."
193
+ Enabled: true
194
+
195
+ Style/FlipFlop:
196
+ Description: "Checks for flip flops"
197
+ Enabled: true
198
+
199
+ Style/For:
200
+ Description: "Checks use of for or each in multiline loops."
201
+ Enabled: true
202
+
203
+ Style/FormatString:
204
+ Description: "Enforce the use of Kernel#sprintf, Kernel#format or String#%."
205
+ Enabled: true
206
+
207
+ Style/GlobalVars:
208
+ Description: "Do not introduce global variables."
209
+ Enabled: true
210
+
211
+ Style/GuardClause:
212
+ Description: "Check for conditionals that can be replaced with guard clauses"
213
+ Enabled: true
214
+
215
+ Style/HashSyntax:
216
+ Description: >-
217
+ Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
218
+ { :a => 1, :b => 2 }.
219
+ Enabled: true
220
+
221
+ Style/IfUnlessModifier:
222
+ Description: >-
223
+ Favor modifier if/unless usage when you have a
224
+ single-line body.
225
+ Enabled: true
226
+
227
+ Style/IfWithSemicolon:
228
+ Description: "Never use if x; .... Use the ternary operator instead."
229
+ Enabled: true
230
+
231
+ Layout/IndentationConsistency:
232
+ Description: "Keep indentation straight."
233
+ Enabled: true
234
+
235
+ Layout/IndentationWidth:
236
+ Description: "Use 2 spaces for indentation."
237
+ Enabled: true
238
+
239
+ Layout/IndentArray:
240
+ Description: >-
241
+ Checks the indentation of the first element in an array
242
+ literal.
243
+ Enabled: true
244
+
245
+ Layout/IndentHash:
246
+ Description: "Checks the indentation of the first key in a hash literal."
247
+ Enabled: true
248
+
249
+ Style/LambdaCall:
250
+ Description: "Use lambda.call(...) instead of lambda.(...)."
251
+ Enabled: true
252
+
253
+ Layout/LeadingCommentSpace:
254
+ Description: "Comments should start with a space."
255
+ Enabled: true
256
+
257
+ Style/LineEndConcatenation:
258
+ Description: >-
259
+ Use \ instead of + or << to concatenate two string literals at
260
+ line end.
261
+ Enabled: true
262
+
263
+ Metrics/LineLength:
264
+ Description: "Limit lines to 80 characters."
265
+ Enabled: true
266
+
267
+ Style/MethodCallWithoutArgsParentheses:
268
+ Description: "Do not use parentheses for method calls with no arguments."
269
+ Enabled: true
270
+
271
+ Style/MethodDefParentheses:
272
+ Description: >-
273
+ Checks if the method definitions have or don"t have
274
+ parentheses.
275
+ Enabled: true
276
+
277
+ Style/MethodName:
278
+ Description: "Use the configured style when naming methods."
279
+ Enabled: true
280
+
281
+ Style/ModuleFunction:
282
+ Description: "Checks for usage of `extend self` in modules."
283
+ Enabled: true
284
+
285
+ Style/MultilineBlockChain:
286
+ Description: "Avoid multi-line chains of blocks."
287
+ Enabled: true
288
+
289
+ Style/MultilineIfThen:
290
+ Description: "Never use then for multi-line if/unless."
291
+ Enabled: true
292
+
293
+ Style/MultilineTernaryOperator:
294
+ Description: >-
295
+ Avoid multi-line ?: (the ternary operator);
296
+ use if/unless instead.
297
+ Enabled: true
298
+
299
+ Style/NegatedIf:
300
+ Description: >-
301
+ Favor unless over if for negative conditions
302
+ (or control flow or).
303
+ Enabled: true
304
+
305
+ Style/NegatedWhile:
306
+ Description: "Favor until over while for negative conditions."
307
+ Enabled: true
308
+
309
+ Style/NestedTernaryOperator:
310
+ Description: "Use one expression per branch in a ternary operator."
311
+ Enabled: true
312
+
313
+ Style/Next:
314
+ Description: "Use `next` to skip iteration instead of a condition at the end."
315
+ Enabled: true
316
+
317
+ Style/NilComparison:
318
+ Description: "Prefer x.nil? to x == nil."
319
+ Enabled: true
320
+
321
+ Style/NonNilCheck:
322
+ Description: "Checks for redundant nil checks."
323
+ Enabled: true
324
+
325
+ Style/Not:
326
+ Description: "Use ! instead of not."
327
+ Enabled: true
328
+
329
+ Style/NumericLiterals:
330
+ Description: >-
331
+ Add underscores to large numeric literals to improve their
332
+ readability.
333
+ Enabled: true
334
+
335
+ Style/OneLineConditional:
336
+ Description: >-
337
+ Favor the ternary operator(?:) over
338
+ if/then/else/end constructs.
339
+ Enabled: true
340
+
341
+ Style/ParenthesesAroundCondition:
342
+ Description: >-
343
+ Don't use parentheses around the condition of an
344
+ if/unless/while.
345
+ Enabled: true
346
+
347
+ Style/PercentLiteralDelimiters:
348
+ Description: "Use `%`-literal delimiters consistently"
349
+ Enabled: true
350
+
351
+ Style/PerlBackrefs:
352
+ Description: "Avoid Perl-style regex back references."
353
+ Enabled: true
354
+
355
+ Style/PredicateName:
356
+ Description: "Check the names of predicate methods."
357
+ Enabled: true
358
+
359
+ Style/Proc:
360
+ Description: "Use proc instead of Proc.new."
361
+ Enabled: true
362
+
363
+ Style/RaiseArgs:
364
+ Description: "Checks the arguments passed to raise/fail."
365
+ Enabled: true
366
+
367
+ Style/RedundantBegin:
368
+ Description: "Don't use begin blocks when they are not needed."
369
+ Enabled: true
370
+
371
+ Style/RedundantException:
372
+ Description: "Checks for an obsolete RuntimeException argument in raise/fail."
373
+ Enabled: true
374
+
375
+ Style/RedundantReturn:
376
+ Description: "Don't use return where it's not required."
377
+ Enabled: true
378
+
379
+ Style/RedundantSelf:
380
+ Description: "Don't use self where it's not needed."
381
+ Enabled: true
382
+
383
+ Style/RegexpLiteral:
384
+ Description: >-
385
+ Use %r for regular expressions matching more than
386
+ `MaxSlashes` '/' characters.
387
+ Use %r only for regular expressions matching more than
388
+ `MaxSlashes` '/' character.
389
+ Enabled: true
390
+
391
+ Style/RescueModifier:
392
+ Description: "Avoid using rescue in its modifier form."
393
+ Enabled: true
394
+
395
+ Style/SelfAssignment:
396
+ Description: "Checks for places where self-assignment shorthand should have been used."
397
+ Enabled: true
398
+
399
+ Style/Semicolon:
400
+ Description: "Don't use semicolons to terminate expressions."
401
+ Enabled: true
402
+
403
+ Style/SignalException:
404
+ Description: "Checks for proper usage of fail and raise."
405
+ Enabled: true
406
+
407
+ Style/SingleLineBlockParams:
408
+ Description: "Enforces the names of some block params."
409
+ Enabled: true
410
+
411
+ Style/SingleLineMethods:
412
+ Description: "Avoid single-line methods."
413
+ Enabled: true
414
+
415
+ Layout/SpaceBeforeFirstArg:
416
+ Description: >-
417
+ Checks that exactly one space is used between a method name
418
+ and the first argument for method calls without parentheses.
419
+ Enabled: true
420
+
421
+ Layout/SpaceAfterColon:
422
+ Description: "Use spaces after colons."
423
+ Enabled: true
424
+
425
+ Layout/SpaceAfterComma:
426
+ Description: "Use spaces after commas."
427
+ Enabled: true
428
+
429
+ Layout/SpaceAroundKeyword:
430
+ Description: "Use spaces after if/elsif/unless/while/until/case/when."
431
+ Enabled: true
432
+
433
+ Layout/SpaceAfterMethodName:
434
+ Description: >-
435
+ Never put a space between a method name and the opening
436
+ parenthesis in a method definition.
437
+ Enabled: true
438
+
439
+ Layout/SpaceAfterNot:
440
+ Description: Tracks redundant space after the ! operator.
441
+ Enabled: true
442
+
443
+ Layout/SpaceAfterSemicolon:
444
+ Description: "Use spaces after semicolons."
445
+ Enabled: true
446
+
447
+ Layout/SpaceBeforeBlockBraces:
448
+ Description: >-
449
+ Checks that the left block brace has or doesn't have space
450
+ before it.
451
+ Enabled: true
452
+
453
+ Layout/SpaceBeforeComma:
454
+ Description: "No spaces before commas."
455
+ Enabled: true
456
+
457
+ Layout/SpaceBeforeComment:
458
+ Description: >-
459
+ Checks for missing space between code and a comment on the
460
+ same line.
461
+ Enabled: true
462
+
463
+ Layout/SpaceBeforeSemicolon:
464
+ Description: "No spaces before semicolons."
465
+ Enabled: true
466
+
467
+ Layout/SpaceInsideBlockBraces:
468
+ Description: >-
469
+ Checks that block braces have or don't have surrounding space.
470
+ For blocks taking parameters, checks that the left brace has
471
+ or doesn"t have trailing space.
472
+ Enabled: true
473
+
474
+ Layout/SpaceAroundEqualsInParameterDefault:
475
+ Description: >-
476
+ Checks that the equals signs in parameter default assignments
477
+ have or don't have surrounding space depending on
478
+ configuration.
479
+ Enabled: true
480
+
481
+ Layout/SpaceAroundOperators:
482
+ Description: "Use spaces around operators."
483
+ Enabled: true
484
+
485
+ Layout/SpaceAroundKeyword:
486
+ Description: "Put a space before the modifier keyword."
487
+ Enabled: true
488
+
489
+ Layout/SpaceInsideBrackets:
490
+ Description: "No spaces after [ or before ]."
491
+ Enabled: true
492
+
493
+ Layout/SpaceInsideHashLiteralBraces:
494
+ Description: "Use spaces inside hash literal braces - or don't."
495
+ Enabled: true
496
+
497
+ Layout/SpaceInsideParens:
498
+ Description: "No spaces after ( or before )."
499
+ Enabled: true
500
+
501
+ Style/SpecialGlobalVars:
502
+ Description: "Avoid Perl-style global variables."
503
+ Enabled: true
504
+
505
+ Style/StringLiterals:
506
+ Description: "Checks if uses of quotes match the configured preference."
507
+ Enabled: true
508
+
509
+ Layout/Tab:
510
+ Description: "No hard tabs."
511
+ Enabled: true
512
+
513
+ Layout/TrailingBlankLines:
514
+ Description: "Checks trailing blank lines and final newline."
515
+ Enabled: true
516
+
517
+ Style/TrailingCommaInLiteral:
518
+ Description: "Checks for trailing comma in literals."
519
+ Enabled: true
520
+
521
+ Style/TrailingCommaInArguments:
522
+ Description: "Checks for trailing comma in parameter lists."
523
+ Enabled: true
524
+
525
+ Layout/TrailingWhitespace:
526
+ Description: "Avoid trailing whitespace."
527
+ Enabled: true
528
+
529
+ Style/TrivialAccessors:
530
+ Description: "Prefer attr_* methods to trivial readers/writers."
531
+ Enabled: true
532
+
533
+ Style/UnlessElse:
534
+ Description: >-
535
+ Never use unless with else. Rewrite these with the positive
536
+ case first.
537
+ Enabled: true
538
+
539
+ Style/UnneededCapitalW:
540
+ Description: "Checks for %W when interpolation is not needed."
541
+ Enabled: true
542
+
543
+ Style/CommandLiteral:
544
+ Description: "Checks for %x when `` would do."
545
+ Enabled: true
546
+
547
+ Style/VariableInterpolation:
548
+ Description: >-
549
+ Don't interpolate global, instance and class variables
550
+ directly in strings.
551
+ Enabled: true
552
+
553
+ Style/VariableName:
554
+ Description: "Use the configured style when naming variables."
555
+ Enabled: true
556
+
557
+ Style/WhenThen:
558
+ Description: "Use when x then ... for one-line cases."
559
+ Enabled: true
560
+
561
+ Style/WhileUntilDo:
562
+ Description: "Checks for redundant do after while or until."
563
+ Enabled: true
564
+
565
+ Style/WhileUntilModifier:
566
+ Description: >-
567
+ Favor modifier while/until usage when you have a
568
+ single-line body.
569
+ Enabled: true
570
+
571
+ Style/WordArray:
572
+ Description: "Use %w or %W for arrays of words."
573
+ Enabled: true
574
+
575
+ #################### Lint ################################
576
+ ### Warnings
577
+
578
+ Lint/AmbiguousOperator:
579
+ Description: >-
580
+ Checks for ambiguous operators in the first argument of a
581
+ method invocation without parentheses.
582
+ Enabled: true
583
+
584
+ Lint/AmbiguousRegexpLiteral:
585
+ Description: >-
586
+ Checks for ambiguous regexp literals in the first argument of
587
+ a method invocation without parenthesis.
588
+ Enabled: true
589
+
590
+ Lint/BlockAlignment:
591
+ Description: "Align block ends correctly."
592
+ Enabled: true
593
+
594
+ Lint/ConditionPosition:
595
+ Description: "Checks for condition placed in a confusing position relative to the keyword."
596
+ Enabled: true
597
+
598
+ Lint/Debugger:
599
+ Description: "Check for debugger calls."
600
+ Enabled: true
601
+
602
+ Lint/DefEndAlignment:
603
+ Description: "Align ends corresponding to defs correctly."
604
+ Enabled: true
605
+
606
+ Lint/DeprecatedClassMethods:
607
+ Description: "Check for deprecated class method calls."
608
+ Enabled: true
609
+
610
+ Lint/ElseLayout:
611
+ Description: "Check for odd code arrangement in an else block."
612
+ Enabled: true
613
+
614
+ Lint/EmptyEnsure:
615
+ Description: "Checks for empty ensure block."
616
+ Enabled: true
617
+
618
+ Lint/EmptyInterpolation:
619
+ Description: "Checks for empty string interpolation."
620
+ Enabled: true
621
+
622
+ Lint/EndAlignment:
623
+ Description: "Align ends correctly."
624
+ Enabled: true
625
+
626
+ Lint/EndInMethod:
627
+ Description: "END blocks should not be placed inside method definitions."
628
+ Enabled: true
629
+
630
+ Lint/EnsureReturn:
631
+ Description: "Never use return in an ensure block."
632
+ Enabled: true
633
+
634
+ Security/Eval:
635
+ Description: "The use of eval represents a serious security risk."
636
+ Enabled: true
637
+
638
+ Lint/HandleExceptions:
639
+ Description: "Don't suppress exception."
640
+ Enabled: true
641
+
642
+ Lint/LiteralInCondition:
643
+ Description: "Checks of literals used in conditions."
644
+ Enabled: true
645
+
646
+ Lint/LiteralInInterpolation:
647
+ Description: "Checks for literals used in interpolation."
648
+ Enabled: true
649
+
650
+ Lint/Loop:
651
+ Description: >-
652
+ Use Kernel#loop with break rather than begin/end/until or
653
+ begin/end/while for post-loop tests.
654
+ Enabled: true
655
+
656
+ Lint/ParenthesesAsGroupedExpression:
657
+ Description: >-
658
+ Checks for method calls with a space before the opening
659
+ parenthesis.
660
+ Enabled: true
661
+
662
+ Lint/RequireParentheses:
663
+ Description: >-
664
+ Use parentheses in the method call to avoid confusion
665
+ about precedence.
666
+ Enabled: true
667
+
668
+ Lint/RescueException:
669
+ Description: "Avoid rescuing the Exception class."
670
+ Enabled: true
671
+
672
+ Lint/ShadowingOuterLocalVariable:
673
+ Description: >-
674
+ Do not use the same name as outer local variable
675
+ for block arguments or block local variables.
676
+ Enabled: true
677
+
678
+ Layout/SpaceBeforeFirstArg:
679
+ Description: >-
680
+ Put a space between a method name and the first argument
681
+ in a method call without parentheses.
682
+ Enabled: true
683
+
684
+ Lint/StringConversionInInterpolation:
685
+ Description: "Checks for Object#to_s usage in string interpolation."
686
+ Enabled: true
687
+
688
+ Lint/UnderscorePrefixedVariableName:
689
+ Description: "Do not use prefix `_` for a variable that is used."
690
+ Enabled: true
691
+
692
+ Lint/UnusedBlockArgument:
693
+ Description: "Checks for unused block arguments."
694
+ Enabled: true
695
+
696
+ Lint/UnusedMethodArgument:
697
+ Description: "Checks for unused method arguments."
698
+ Enabled: true
699
+
700
+ Lint/UnreachableCode:
701
+ Description: "Unreachable code."
702
+ Enabled: true
703
+
704
+ Lint/UselessAccessModifier:
705
+ Description: "Checks for useless access modifiers."
706
+ Enabled: true
707
+
708
+ Lint/UselessAssignment:
709
+ Description: "Checks for useless assignment to a local variable."
710
+ Enabled: true
711
+
712
+ Lint/UselessComparison:
713
+ Description: "Checks for comparison of something with itself."
714
+ Enabled: true
715
+
716
+ Lint/UselessElseWithoutRescue:
717
+ Description: "Checks for useless `else` in `begin..end` without `rescue`."
718
+ Enabled: true
719
+
720
+ Lint/UselessSetterCall:
721
+ Description: "Checks for useless setter call to a local variable."
722
+ Enabled: true
723
+
724
+ Lint/Void:
725
+ Description: "Possible use of operator/literal/variable in void context."
726
+ Enabled: true
727
+
728
+ ##################### Rails ##################################
729
+
730
+ Rails/ActionFilter:
731
+ Description: "Enforces consistent use of action filter methods."
732
+ Enabled: true
733
+
734
+ Rails/Delegate:
735
+ Description: "Prefer delegate method for delegations."
736
+ Enabled: true
737
+
738
+ Rails/HasAndBelongsToMany:
739
+ Description: "Prefer has_many :through to has_and_belongs_to_many."
740
+ Enabled: true
741
+
742
+ Rails/Output:
743
+ Description: "Checks for calls to puts, print, etc."
744
+ Enabled: true
745
+
746
+ Rails/ReadWriteAttribute:
747
+ Description: "Checks for read_attribute(:attr) and write_attribute(:attr, val)."
748
+ Enabled: true
749
+
750
+ Rails/ScopeArgs:
751
+ Description: "Checks the arguments of ActiveRecord scopes."
752
+ Enabled: true
753
+
754
+ Rails/Validation:
755
+ Description: "Use sexy validations."
756
+ Enabled: true