framgia-rails-init 0.1.0

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