bibliothecary 8.3.4 → 8.3.7

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