wonder-ruby-style 0.0.5 → 0.0.6

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