sevenwire-rubocop 1.0.0

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