wonder-ruby-style 0.0.1

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