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