satchel-ruby-styleguides 0.1.0

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