wonder-ruby-style 0.56.0 → 1.65.1
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 +4 -4
- data/.rubocop.yml +4348 -1
- data/README.md +4 -20
- data/lib/wonder/ruby/style/version.rb +1 -1
- data/presets/1.65.1.yml +420 -0
- data/presets/latest.yml +413 -1175
- data/presets/pure/0.71.0.yml +4337 -0
- data/presets/pure/1.65.1.yml +5748 -0
- data/presets/pure/latest.yml +5748 -0
- data/wonder-ruby-style.gemspec +11 -9
- metadata +42 -12
- data/default.yml +0 -1
data/presets/latest.yml
CHANGED
@@ -1,1182 +1,420 @@
|
|
1
|
-
|
1
|
+
inherit_from: ./pure/latest.yml
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
DisabledByDefault: true
|
8
|
-
TargetRubyVersion: 2.5
|
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
|
-
Layout/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
|
-
Layout/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
|
-
Layout/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
|
-
Layout/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
|
3
|
+
require:
|
4
|
+
- rubocop-performance
|
5
|
+
- rubocop-rails
|
6
|
+
- rubocop-rspec
|
152
7
|
|
153
|
-
|
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/UnusedBlockArgument:
|
169
|
-
Description: 'Checks for unused block arguments.'
|
170
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
171
|
-
Enabled: true
|
172
|
-
|
173
|
-
Lint/UnusedMethodArgument:
|
174
|
-
Description: 'Checks for unused method arguments.'
|
175
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
176
|
-
Enabled: true
|
177
|
-
|
178
|
-
Lint/UnreachableCode:
|
179
|
-
Description: 'Unreachable code.'
|
180
|
-
Enabled: true
|
181
|
-
|
182
|
-
Lint/UselessAccessModifier:
|
183
|
-
Description: 'Checks for useless access modifiers.'
|
184
|
-
Enabled: true
|
185
|
-
|
186
|
-
Lint/UselessAssignment:
|
187
|
-
Description: 'Checks for useless assignment to a local variable.'
|
188
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
|
189
|
-
Enabled: true
|
190
|
-
|
191
|
-
Lint/UselessComparison:
|
192
|
-
Description: 'Checks for comparison of something with itself.'
|
193
|
-
Enabled: true
|
194
|
-
|
195
|
-
Lint/UselessElseWithoutRescue:
|
196
|
-
Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
|
197
|
-
Enabled: true
|
198
|
-
|
199
|
-
Lint/UselessSetterCall:
|
200
|
-
Description: 'Checks for useless setter call to a local variable.'
|
201
|
-
Enabled: true
|
202
|
-
|
203
|
-
Lint/Void:
|
204
|
-
Description: 'Possible use of operator/literal/variable in void context.'
|
205
|
-
Enabled: true
|
206
|
-
|
207
|
-
###################### Metrics ####################################
|
208
|
-
|
209
|
-
Metrics/BlockNesting:
|
210
|
-
Description: 'Avoid excessive block nesting'
|
211
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
|
212
|
-
Enabled: true
|
213
|
-
Max: 4
|
214
|
-
Exclude:
|
215
|
-
- 'Rakefile'
|
216
|
-
- '**/*.rake'
|
217
|
-
- 'spec/**/*.rb'
|
218
|
-
|
219
|
-
Metrics/ClassLength:
|
220
|
-
Description: 'Avoid classes longer than 250 lines of code.'
|
221
|
-
Enabled: true
|
222
|
-
Max: 250
|
223
|
-
|
224
|
-
Metrics/CyclomaticComplexity:
|
225
|
-
Description: >-
|
226
|
-
A complexity metric that is strongly correlated to the number
|
227
|
-
of test cases needed to validate a method.
|
228
|
-
Enabled: true
|
229
|
-
|
230
|
-
Metrics/LineLength:
|
231
|
-
Description: 'Limit lines to 80 characters.'
|
232
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
233
|
-
Enabled: false
|
234
|
-
|
235
|
-
Metrics/MethodLength:
|
236
|
-
Description: 'Avoid methods longer than 30 lines of code.'
|
237
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
|
238
|
-
Enabled: true
|
239
|
-
Max: 30
|
240
|
-
|
241
|
-
Metrics/ModuleLength:
|
242
|
-
Description: 'Avoid modules longer than 250 lines of code.'
|
243
|
-
Enabled: true
|
244
|
-
Max: 250
|
8
|
+
AllCops:
|
245
9
|
Exclude:
|
246
|
-
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
Enabled:
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
Performance/FlatMap:
|
276
|
-
Description: >-
|
277
|
-
Use `Enumerable#flat_map`
|
278
|
-
instead of `Enumerable#map...Array#flatten(1)`
|
279
|
-
or `Enumberable#collect..Array#flatten(1)`
|
280
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
|
281
|
-
Enabled: true
|
282
|
-
EnabledForFlattenWithoutParams: true
|
283
|
-
# If enabled, this cop will warn about usages of
|
284
|
-
# `flatten` being called without any parameters.
|
285
|
-
# This can be dangerous since `flat_map` will only flatten 1 level, and
|
286
|
-
# `flatten` without any parameters can flatten multiple levels.
|
287
|
-
|
288
|
-
Performance/ReverseEach:
|
289
|
-
Description: 'Use `reverse_each` instead of `reverse.each`.'
|
290
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
|
291
|
-
Enabled: true
|
292
|
-
|
293
|
-
Performance/Sample:
|
294
|
-
Description: >-
|
295
|
-
Use `sample` instead of `shuffle.first`,
|
296
|
-
`shuffle.last`, and `shuffle[Fixnum]`.
|
297
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
|
298
|
-
Enabled: true
|
299
|
-
|
300
|
-
Performance/Size:
|
301
|
-
Description: >-
|
302
|
-
Use `size` instead of `count` for counting
|
303
|
-
the number of elements in `Array` and `Hash`.
|
304
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
|
305
|
-
Enabled: true
|
306
|
-
|
307
|
-
Performance/StringReplacement:
|
308
|
-
Description: >-
|
309
|
-
Use `tr` instead of `gsub` when you are replacing the same
|
310
|
-
number of characters. Use `delete` instead of `gsub` when
|
311
|
-
you are deleting characters.
|
312
|
-
Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
|
313
|
-
Enabled: true
|
314
|
-
|
315
|
-
##################### Rails ##################################
|
316
|
-
|
317
|
-
Rails/ActionFilter:
|
318
|
-
Description: 'Enforces consistent use of action filter methods.'
|
319
|
-
Enabled: true
|
320
|
-
|
321
|
-
Rails/Date:
|
322
|
-
Description: >-
|
323
|
-
Checks the correct usage of date aware methods,
|
324
|
-
such as Date.today, Date.current etc.
|
325
|
-
Enabled: true
|
326
|
-
|
327
|
-
Rails/Delegate:
|
328
|
-
Description: 'Prefer delegate method for delegations.'
|
329
|
-
Enabled: true
|
330
|
-
|
331
|
-
Rails/FindBy:
|
332
|
-
Description: 'Prefer find_by over where.first.'
|
333
|
-
Enabled: true
|
334
|
-
|
10
|
+
- "node_modules/**/*"
|
11
|
+
- "vendor/**/*"
|
12
|
+
- ".git/**/*"
|
13
|
+
- "coverage/**/*"
|
14
|
+
- "log/**/*"
|
15
|
+
- "tmp/**/*"
|
16
|
+
- "vendor/**/*"
|
17
|
+
- "reports/**/*"
|
18
|
+
Style/RescueStandardError:
|
19
|
+
Enabled: false
|
20
|
+
Style/Documentation:
|
21
|
+
Enabled: false
|
22
|
+
Style/DoubleNegation:
|
23
|
+
Enabled: false
|
24
|
+
Layout/LineLength:
|
25
|
+
Enabled: true
|
26
|
+
AutoCorrect: true
|
27
|
+
Max: 150
|
28
|
+
AllowHeredoc: true
|
29
|
+
AllowURI: true
|
30
|
+
URISchemes:
|
31
|
+
- http
|
32
|
+
- https
|
33
|
+
IgnoreCopDirectives: false
|
34
|
+
AllowedPatterns: []
|
35
|
+
Rails/EnumHash:
|
36
|
+
Enabled: false
|
37
|
+
Style/RedundantParentheses:
|
38
|
+
Enabled: false
|
335
39
|
Rails/FindEach:
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
40
|
+
Enabled: false
|
41
|
+
Naming/MethodParameterName:
|
42
|
+
Enabled: false
|
43
|
+
Layout/HashAlignment:
|
44
|
+
Enabled: false
|
45
|
+
Metrics/AbcSize:
|
46
|
+
Enabled: false
|
47
|
+
Rails/UniqueValidationWithoutIndex:
|
48
|
+
Enabled: false
|
343
49
|
Rails/Output:
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
Checks for read_attribute(:attr) and
|
350
|
-
write_attribute(:attr, val).
|
351
|
-
Enabled: true
|
352
|
-
|
353
|
-
Rails/ScopeArgs:
|
354
|
-
Description: 'Checks the arguments of ActiveRecord scopes.'
|
355
|
-
Enabled: true
|
356
|
-
|
357
|
-
Rails/TimeZone:
|
358
|
-
Description: 'Checks the correct usage of time zone aware methods.'
|
359
|
-
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
|
360
|
-
Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
|
361
|
-
Enabled: true
|
362
|
-
|
363
|
-
Rails/Validation:
|
364
|
-
Description: 'Use validates :attribute, hash of validations.'
|
365
|
-
Enabled: true
|
366
|
-
|
367
|
-
################## Style #################################
|
368
|
-
|
369
|
-
Layout/AccessModifierIndentation:
|
370
|
-
Description: Check indentation of private/protected visibility modifiers.
|
371
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected'
|
372
|
-
Enabled: true
|
373
|
-
|
374
|
-
Naming/AccessorMethodName:
|
375
|
-
Description: Check the naming of accessor methods for get_/set_.
|
376
|
-
Enabled: true
|
377
|
-
|
378
|
-
Style/Alias:
|
379
|
-
Description: 'Use alias_method instead of alias.'
|
380
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
|
381
|
-
Enabled: true
|
382
|
-
|
383
|
-
Layout/AlignArray:
|
384
|
-
Description: >-
|
385
|
-
Align the elements of an array literal if they span more than
|
386
|
-
one line.
|
387
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays'
|
388
|
-
Enabled: true
|
389
|
-
|
390
|
-
Layout/AlignHash:
|
391
|
-
Description: >-
|
392
|
-
Align the elements of a hash literal if they span more than
|
393
|
-
one line.
|
394
|
-
Enabled: true
|
395
|
-
|
396
|
-
Layout/AlignParameters:
|
397
|
-
Description: >-
|
398
|
-
Align the parameters of a method call if they span more
|
399
|
-
than one line.
|
400
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
|
401
|
-
Enabled: true
|
402
|
-
|
403
|
-
Style/AndOr:
|
404
|
-
Description: 'Use &&/|| instead of and/or.'
|
405
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-and-or-or'
|
406
|
-
Enabled: true
|
407
|
-
|
408
|
-
Style/ArrayJoin:
|
409
|
-
Description: 'Use Array#join instead of Array#*.'
|
410
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
|
411
|
-
Enabled: true
|
412
|
-
|
413
|
-
Style/AsciiComments:
|
414
|
-
Description: 'Use only ascii symbols in comments.'
|
415
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
|
416
|
-
Enabled: false
|
417
|
-
|
418
|
-
Naming/AsciiIdentifiers:
|
419
|
-
Description: 'Use only ascii symbols in identifiers.'
|
420
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
|
421
|
-
Enabled: true
|
422
|
-
|
423
|
-
Style/Attr:
|
424
|
-
Description: 'Checks for uses of Module#attr.'
|
425
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
|
426
|
-
Enabled: true
|
427
|
-
|
428
|
-
Style/BeginBlock:
|
429
|
-
Description: 'Avoid the use of BEGIN blocks.'
|
430
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks'
|
431
|
-
Enabled: true
|
432
|
-
|
433
|
-
Style/BarePercentLiterals:
|
434
|
-
Description: 'Checks if usage of %() or %Q() matches configuration.'
|
435
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand'
|
436
|
-
Enabled: true
|
437
|
-
|
438
|
-
Style/BlockComments:
|
439
|
-
Description: 'Do not use block comments.'
|
440
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-block-comments'
|
441
|
-
Enabled: true
|
442
|
-
|
443
|
-
Layout/BlockEndNewline:
|
444
|
-
Description: 'Put end statement of multiline block on its own line.'
|
445
|
-
Enabled: true
|
446
|
-
|
447
|
-
Style/BlockDelimiters:
|
448
|
-
Description: >-
|
449
|
-
Avoid using {...} for multi-line blocks (multiline chaining is
|
450
|
-
always ugly).
|
451
|
-
Prefer {...} over do...end for single-line blocks.
|
452
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
|
453
|
-
Enabled: true
|
454
|
-
|
455
|
-
Style/BracesAroundHashParameters:
|
456
|
-
Description: 'Enforce braces style around hash parameters.'
|
457
|
-
Enabled: true
|
458
|
-
|
459
|
-
Style/CaseEquality:
|
460
|
-
Description: 'Avoid explicit use of the case equality operator(===).'
|
461
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
|
462
|
-
Enabled: true
|
463
|
-
|
464
|
-
Layout/CaseIndentation:
|
465
|
-
Description: 'Indentation of when in a case/when/[else/]end.'
|
466
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#indent-when-to-case'
|
467
|
-
Enabled: true
|
468
|
-
|
469
|
-
Style/CharacterLiteral:
|
470
|
-
Description: 'Checks for uses of character literals.'
|
471
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
|
472
|
-
Enabled: true
|
473
|
-
|
474
|
-
Naming/ClassAndModuleCamelCase:
|
475
|
-
Description: 'Use CamelCase for classes and modules.'
|
476
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#camelcase-classes'
|
477
|
-
Enabled: true
|
478
|
-
|
50
|
+
Enabled: false
|
51
|
+
Rails/HasManyOrHasOneDependent:
|
52
|
+
Enabled: false
|
53
|
+
Lint/MissingSuper:
|
54
|
+
Enabled: false
|
479
55
|
Style/ClassAndModuleChildren:
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
Style/ClassCheck:
|
484
|
-
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
|
485
|
-
Enabled: true
|
486
|
-
|
487
|
-
Style/ClassMethods:
|
488
|
-
Description: 'Use self when defining module/class methods.'
|
489
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#def-self-class-methods'
|
490
|
-
Enabled: true
|
491
|
-
|
492
|
-
Style/ClassVars:
|
493
|
-
Description: 'Avoid the use of class variables.'
|
494
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
|
495
|
-
Enabled: false
|
496
|
-
|
497
|
-
Layout/ClosingParenthesisIndentation:
|
498
|
-
Description: 'Checks the indentation of hanging closing parentheses.'
|
499
|
-
Enabled: true
|
500
|
-
|
501
|
-
Style/ColonMethodCall:
|
502
|
-
Description: 'Do not use :: for method call.'
|
503
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
|
504
|
-
Enabled: true
|
505
|
-
|
506
|
-
Style/CommandLiteral:
|
507
|
-
Description: 'Use `` or %x around command literals.'
|
508
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-x'
|
509
|
-
Enabled: true
|
510
|
-
|
511
|
-
Style/CommentAnnotation:
|
512
|
-
Description: 'Checks formatting of annotation comments.'
|
513
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
|
514
|
-
Enabled: true
|
515
|
-
|
516
|
-
Layout/CommentIndentation:
|
517
|
-
Description: 'Indentation of comments.'
|
518
|
-
Enabled: true
|
519
|
-
|
520
|
-
Naming/ConstantName:
|
521
|
-
Description: 'Constants should use SCREAMING_SNAKE_CASE.'
|
522
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#screaming-snake-case'
|
523
|
-
Enabled: true
|
524
|
-
|
525
|
-
Style/DefWithParentheses:
|
526
|
-
Description: 'Use def with parentheses when there are arguments.'
|
527
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
528
|
-
Enabled: true
|
529
|
-
|
530
|
-
Style/PreferredHashMethods:
|
531
|
-
Description: 'Checks for use of deprecated Hash methods.'
|
532
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
|
533
|
-
Enabled: true
|
534
|
-
|
535
|
-
Style/Documentation:
|
536
|
-
Description: 'Document classes and non-namespace modules.'
|
537
|
-
Enabled: false
|
538
|
-
|
539
|
-
Layout/DotPosition:
|
540
|
-
Description: 'Checks the position of the dot in multi-line method calls.'
|
541
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
|
542
|
-
Enabled: true
|
543
|
-
|
544
|
-
Style/DoubleNegation:
|
545
|
-
Description: 'Checks for uses of double negation (!!).'
|
546
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
|
547
|
-
Enabled: true
|
548
|
-
|
549
|
-
Style/EachWithObject:
|
550
|
-
Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
|
551
|
-
Enabled: true
|
552
|
-
|
553
|
-
Layout/ElseAlignment:
|
554
|
-
Description: 'Align elses and elsifs correctly.'
|
555
|
-
Enabled: true
|
556
|
-
|
557
|
-
Style/EmptyElse:
|
558
|
-
Description: 'Avoid empty else-clauses.'
|
559
|
-
Enabled: true
|
560
|
-
|
561
|
-
Layout/EmptyLineBetweenDefs:
|
562
|
-
Description: 'Use empty lines between defs.'
|
563
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods'
|
564
|
-
Enabled: true
|
565
|
-
|
566
|
-
Layout/EmptyLines:
|
567
|
-
Description: "Don't use several empty lines in a row."
|
568
|
-
Enabled: true
|
569
|
-
|
570
|
-
Layout/EmptyLinesAroundAccessModifier:
|
571
|
-
Description: "Keep blank lines around access modifiers."
|
572
|
-
Enabled: true
|
573
|
-
|
574
|
-
Layout/EmptyLinesAroundBlockBody:
|
575
|
-
Description: "Keeps track of empty lines around block bodies."
|
576
|
-
Enabled: true
|
577
|
-
|
578
|
-
Layout/EmptyLinesAroundClassBody:
|
579
|
-
Description: "Keeps track of empty lines around class bodies."
|
580
|
-
Enabled: true
|
581
|
-
|
582
|
-
Layout/EmptyLinesAroundModuleBody:
|
583
|
-
Description: "Keeps track of empty lines around module bodies."
|
584
|
-
Enabled: true
|
585
|
-
|
586
|
-
Layout/EmptyLinesAroundMethodBody:
|
587
|
-
Description: "Keeps track of empty lines around method bodies."
|
588
|
-
Enabled: true
|
589
|
-
|
590
|
-
Style/EmptyLiteral:
|
591
|
-
Description: 'Prefer literals to Array.new/Hash.new/String.new.'
|
592
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
|
593
|
-
Enabled: true
|
594
|
-
|
595
|
-
Style/EndBlock:
|
596
|
-
Description: 'Avoid the use of END blocks.'
|
597
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-END-blocks'
|
598
|
-
Enabled: true
|
599
|
-
|
600
|
-
Layout/EndOfLine:
|
601
|
-
Description: 'Use Unix-style line endings.'
|
602
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#crlf'
|
603
|
-
Enabled: true
|
604
|
-
|
605
|
-
Style/EvenOdd:
|
606
|
-
Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
|
607
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
|
608
|
-
Enabled: true
|
609
|
-
|
610
|
-
Layout/ExtraSpacing:
|
611
|
-
Description: 'Do not use unnecessary spacing.'
|
612
|
-
Enabled: true
|
613
|
-
|
614
|
-
Naming/FileName:
|
615
|
-
Description: 'Use snake_case for source file names.'
|
616
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
|
617
|
-
Enabled: true
|
618
|
-
|
619
|
-
Layout/InitialIndentation:
|
620
|
-
Description: >-
|
621
|
-
Checks the indentation of the first non-blank non-comment line in a file.
|
622
|
-
Enabled: true
|
623
|
-
|
624
|
-
Layout/FirstParameterIndentation:
|
625
|
-
Description: 'Checks the indentation of the first parameter in a method call.'
|
626
|
-
Enabled: true
|
627
|
-
|
628
|
-
Style/FlipFlop:
|
629
|
-
Description: 'Checks for flip flops'
|
630
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
|
631
|
-
Enabled: true
|
632
|
-
|
633
|
-
Style/For:
|
634
|
-
Description: 'Checks use of for or each in multiline loops.'
|
635
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-for-loops'
|
636
|
-
Enabled: true
|
637
|
-
|
638
|
-
Style/FormatString:
|
639
|
-
Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
|
640
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
|
641
|
-
Enabled: true
|
642
|
-
|
643
|
-
Style/GlobalVars:
|
644
|
-
Description: 'Do not introduce global variables.'
|
645
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
|
646
|
-
Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
|
647
|
-
Enabled: true
|
648
|
-
|
649
|
-
Style/HashSyntax:
|
650
|
-
Description: >-
|
651
|
-
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
|
652
|
-
{ :a => 1, :b => 2 }.
|
653
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
|
654
|
-
Enabled: true
|
655
|
-
|
56
|
+
Enabled: false
|
57
|
+
Style/StringConcatenation:
|
58
|
+
Enabled: false
|
656
59
|
Style/IfUnlessModifier:
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
Enabled:
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
Layout/
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
Layout/
|
673
|
-
|
674
|
-
|
675
|
-
Enabled:
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
Enabled:
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
Enabled:
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
Enabled:
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
Enabled:
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
Enabled:
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
Enabled:
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
Enabled:
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
Enabled:
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
Enabled:
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
Style/
|
763
|
-
|
764
|
-
|
765
|
-
Enabled:
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
Style/
|
773
|
-
|
774
|
-
|
775
|
-
Enabled:
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
Style/
|
783
|
-
|
784
|
-
|
785
|
-
Enabled:
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
Style/
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
Enabled:
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
Enabled:
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
Style/
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
Enabled:
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
Style/
|
835
|
-
|
836
|
-
|
837
|
-
Enabled:
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
Enabled:
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
Enabled:
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
Style/
|
859
|
-
|
860
|
-
|
861
|
-
Enabled:
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
Enabled:
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
Enabled:
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
Enabled:
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
Enabled:
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
Enabled:
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
Enabled:
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
Enabled:
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
Enabled:
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
Enabled:
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
Enabled:
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
Enabled:
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
Enabled:
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
Enabled:
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
Enabled:
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
Enabled:
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
Layout/SpaceInsideParens:
|
1019
|
-
Description: 'No spaces after ( or before ).'
|
1020
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
1021
|
-
Enabled: true
|
1022
|
-
|
1023
|
-
Layout/SpaceInsideRangeLiteral:
|
1024
|
-
Description: 'No spaces inside range literals.'
|
1025
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals'
|
1026
|
-
Enabled: true
|
1027
|
-
|
1028
|
-
Layout/SpaceInsideStringInterpolation:
|
1029
|
-
Description: 'Checks for padding/surrounding spaces inside string interpolation.'
|
1030
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#string-interpolation'
|
1031
|
-
Enabled: true
|
1032
|
-
|
1033
|
-
Style/SpecialGlobalVars:
|
1034
|
-
Description: 'Avoid Perl-style global variables.'
|
1035
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
|
1036
|
-
Enabled: true
|
1037
|
-
|
1038
|
-
Style/StringLiterals:
|
1039
|
-
Description: 'Checks if uses of quotes match the configured preference.'
|
1040
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
|
1041
|
-
Enabled: true
|
1042
|
-
|
1043
|
-
Style/StringLiteralsInInterpolation:
|
1044
|
-
Description: >-
|
1045
|
-
Checks if uses of quotes inside expressions in interpolated
|
1046
|
-
strings match the configured preference.
|
1047
|
-
Enabled: true
|
1048
|
-
|
1049
|
-
Style/StructInheritance:
|
1050
|
-
Description: 'Checks for inheritance from Struct.new.'
|
1051
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new'
|
1052
|
-
Enabled: true
|
1053
|
-
|
1054
|
-
Style/SymbolLiteral:
|
1055
|
-
Description: 'Use plain symbols instead of string symbols when possible.'
|
1056
|
-
Enabled: true
|
1057
|
-
|
1058
|
-
Style/SymbolProc:
|
1059
|
-
Description: 'Use symbols as procs instead of blocks when possible.'
|
1060
|
-
Enabled: true
|
1061
|
-
|
1062
|
-
Layout/Tab:
|
1063
|
-
Description: 'No hard tabs.'
|
1064
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
|
1065
|
-
Enabled: true
|
1066
|
-
|
1067
|
-
Layout/TrailingBlankLines:
|
1068
|
-
Description: 'Checks trailing blank lines and final newline.'
|
1069
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
|
1070
|
-
Enabled: true
|
1071
|
-
|
1072
|
-
Style/TrailingCommaInArguments:
|
1073
|
-
Description: 'Checks for trailing comma in parameter lists.'
|
1074
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
|
1075
|
-
Enabled: true
|
1076
|
-
|
1077
|
-
Style/TrailingCommaInArrayLiteral:
|
1078
|
-
Description: 'Checks for trailing comma in array literals.'
|
1079
|
-
Enabled: true
|
1080
|
-
|
1081
|
-
Style/TrailingCommaInHashLiteral:
|
1082
|
-
Description: 'Checks for trailing comma in hash literals.'
|
1083
|
-
Enabled: true
|
1084
|
-
|
1085
|
-
Layout/TrailingWhitespace:
|
1086
|
-
Description: 'Avoid trailing whitespace.'
|
1087
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace'
|
1088
|
-
Enabled: true
|
1089
|
-
|
1090
|
-
Style/TrivialAccessors:
|
1091
|
-
Description: 'Prefer attr_* methods to trivial readers/writers.'
|
1092
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
|
1093
|
-
Enabled: true
|
1094
|
-
|
1095
|
-
Style/UnlessElse:
|
1096
|
-
Description: >-
|
1097
|
-
Do not use unless with else. Rewrite these with the positive
|
1098
|
-
case first.
|
1099
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-else-with-unless'
|
1100
|
-
Enabled: true
|
1101
|
-
|
1102
|
-
Style/UnneededCapitalW:
|
1103
|
-
Description: 'Checks for %W when interpolation is not needed.'
|
1104
|
-
Enabled: true
|
1105
|
-
|
1106
|
-
Style/UnneededPercentQ:
|
1107
|
-
Description: 'Checks for %q/%Q when single quotes or double quotes would do.'
|
1108
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-q'
|
1109
|
-
Enabled: true
|
1110
|
-
|
1111
|
-
Style/TrailingUnderscoreVariable:
|
1112
|
-
Description: >-
|
1113
|
-
Checks for the usage of unneeded trailing underscores at the
|
1114
|
-
end of parallel variable assignment.
|
1115
|
-
Enabled: true
|
1116
|
-
|
1117
|
-
Style/VariableInterpolation:
|
1118
|
-
Description: >-
|
1119
|
-
Don't interpolate global, instance and class variables
|
1120
|
-
directly in strings.
|
1121
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
|
1122
|
-
Enabled: false
|
1123
|
-
|
1124
|
-
Naming/VariableName:
|
1125
|
-
Description: 'Use the configured style when naming variables.'
|
1126
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
|
1127
|
-
Enabled: true
|
1128
|
-
|
1129
|
-
Style/WhenThen:
|
1130
|
-
Description: 'Use when x then ... for one-line cases.'
|
1131
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
|
1132
|
-
Enabled: true
|
1133
|
-
|
1134
|
-
Style/WhileUntilDo:
|
1135
|
-
Description: 'Checks for redundant do after while or until.'
|
1136
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do'
|
1137
|
-
Enabled: true
|
1138
|
-
|
1139
|
-
Style/WhileUntilModifier:
|
1140
|
-
Description: >-
|
1141
|
-
Favor modifier while/until usage when you have a
|
1142
|
-
single-line body.
|
1143
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
|
1144
|
-
Enabled: true
|
1145
|
-
|
1146
|
-
Style/WordArray:
|
1147
|
-
Description: 'Use %w or %W for arrays of words.'
|
1148
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
|
1149
|
-
Enabled: true
|
1150
|
-
|
1151
|
-
Bundler/OrderedGems:
|
1152
|
-
Enabled: true
|
1153
|
-
|
1154
|
-
RSpec/AnyInstance:
|
1155
|
-
Enabled: false
|
1156
|
-
|
1157
|
-
RSpec/DescribedClass:
|
1158
|
-
EnforcedStyle: explicit
|
1159
|
-
|
1160
|
-
RSpec/ExampleLength:
|
1161
|
-
Enabled: false
|
1162
|
-
|
1163
|
-
RSpec/HookArgument:
|
1164
|
-
EnforcedStyle: each
|
1165
|
-
|
1166
|
-
RSpec/MultipleExpectations:
|
1167
|
-
Enabled: false
|
1168
|
-
|
1169
|
-
RSpec/ImplicitExpect:
|
1170
|
-
EnforcedStyle: should
|
1171
|
-
|
1172
|
-
RSpec/MessageSpies:
|
1173
|
-
EnforcedStyle: receive
|
1174
|
-
|
1175
|
-
RSpec/NestedGroups:
|
1176
|
-
Enabled: false
|
1177
|
-
|
1178
|
-
RSpec/NotToNot:
|
1179
|
-
EnforcedStyle: to_not
|
1180
|
-
|
1181
|
-
RSpec/VerifiedDoubles:
|
1182
|
-
Enabled: false
|
60
|
+
Enabled: false
|
61
|
+
Metrics/MethodLength:
|
62
|
+
Max: 20
|
63
|
+
Gemspec/AddRuntimeDependency: # new in 1.65
|
64
|
+
Enabled: true
|
65
|
+
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
66
|
+
Enabled: true
|
67
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
68
|
+
Enabled: true
|
69
|
+
Gemspec/RequireMFA: # new in 1.23
|
70
|
+
Enabled: true
|
71
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
72
|
+
Enabled: true
|
73
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
74
|
+
Enabled: true
|
75
|
+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
76
|
+
Enabled: true
|
77
|
+
Layout/SpaceBeforeBrackets: # new in 1.7
|
78
|
+
Enabled: true
|
79
|
+
Lint/AmbiguousAssignment: # new in 1.7
|
80
|
+
Enabled: true
|
81
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
82
|
+
Enabled: true
|
83
|
+
Lint/AmbiguousRange: # new in 1.19
|
84
|
+
Enabled: true
|
85
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
86
|
+
Enabled: true
|
87
|
+
Lint/DeprecatedConstants: # new in 1.8
|
88
|
+
Enabled: true
|
89
|
+
Lint/DuplicateBranch: # new in 1.3
|
90
|
+
Enabled: true
|
91
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
92
|
+
Enabled: true
|
93
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
94
|
+
Enabled: true
|
95
|
+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
96
|
+
Enabled: true
|
97
|
+
Lint/EmptyBlock: # new in 1.1
|
98
|
+
Enabled: true
|
99
|
+
Lint/EmptyClass: # new in 1.3
|
100
|
+
Enabled: true
|
101
|
+
Lint/EmptyInPattern: # new in 1.16
|
102
|
+
Enabled: true
|
103
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
104
|
+
Enabled: true
|
105
|
+
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
106
|
+
Enabled: true
|
107
|
+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
108
|
+
Enabled: true
|
109
|
+
Lint/LiteralAssignmentInCondition: # new in 1.58
|
110
|
+
Enabled: true
|
111
|
+
Lint/MixedCaseRange: # new in 1.53
|
112
|
+
Enabled: true
|
113
|
+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
114
|
+
Enabled: true
|
115
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
116
|
+
Enabled: true
|
117
|
+
Lint/NumberedParameterAssignment: # new in 1.9
|
118
|
+
Enabled: true
|
119
|
+
Lint/OrAssignmentToConstant: # new in 1.9
|
120
|
+
Enabled: true
|
121
|
+
Lint/RedundantDirGlobSort: # new in 1.8
|
122
|
+
Enabled: true
|
123
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
124
|
+
Enabled: true
|
125
|
+
Lint/RefinementImportMethods: # new in 1.27
|
126
|
+
Enabled: true
|
127
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
128
|
+
Enabled: true
|
129
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
130
|
+
Enabled: true
|
131
|
+
Lint/SymbolConversion: # new in 1.9
|
132
|
+
Enabled: true
|
133
|
+
Lint/ToEnumArguments: # new in 1.1
|
134
|
+
Enabled: true
|
135
|
+
Lint/TripleQuotes: # new in 1.9
|
136
|
+
Enabled: true
|
137
|
+
Lint/UnexpectedBlockArity: # new in 1.5
|
138
|
+
Enabled: true
|
139
|
+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
140
|
+
Enabled: true
|
141
|
+
Lint/UselessRescue: # new in 1.43
|
142
|
+
Enabled: true
|
143
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
144
|
+
Enabled: true
|
145
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
146
|
+
Enabled: true
|
147
|
+
Naming/BlockForwarding: # new in 1.24
|
148
|
+
Enabled: true
|
149
|
+
Security/CompoundHash: # new in 1.28
|
150
|
+
Enabled: true
|
151
|
+
Security/IoMethods: # new in 1.22
|
152
|
+
Enabled: true
|
153
|
+
Style/ArgumentsForwarding: # new in 1.1
|
154
|
+
Enabled: false
|
155
|
+
Style/ArrayIntersect: # new in 1.40
|
156
|
+
Enabled: true
|
157
|
+
Style/CollectionCompact: # new in 1.2
|
158
|
+
Enabled: true
|
159
|
+
Style/ComparableClamp: # new in 1.44
|
160
|
+
Enabled: true
|
161
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
162
|
+
Enabled: true
|
163
|
+
Style/DataInheritance: # new in 1.49
|
164
|
+
Enabled: true
|
165
|
+
Style/DirEmpty: # new in 1.48
|
166
|
+
Enabled: true
|
167
|
+
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
168
|
+
Enabled: true
|
169
|
+
Style/EmptyHeredoc: # new in 1.32
|
170
|
+
Enabled: true
|
171
|
+
Style/EndlessMethod: # new in 1.8
|
172
|
+
Enabled: true
|
173
|
+
Style/EnvHome: # new in 1.29
|
174
|
+
Enabled: true
|
175
|
+
Style/ExactRegexpMatch: # new in 1.51
|
176
|
+
Enabled: true
|
177
|
+
Style/FetchEnvVar: # new in 1.28
|
178
|
+
Enabled: true
|
179
|
+
Style/FileEmpty: # new in 1.48
|
180
|
+
Enabled: true
|
181
|
+
Style/FileRead: # new in 1.24
|
182
|
+
Enabled: true
|
183
|
+
Style/FileWrite: # new in 1.24
|
184
|
+
Enabled: true
|
185
|
+
Style/HashConversion: # new in 1.10
|
186
|
+
Enabled: true
|
187
|
+
Style/HashExcept: # new in 1.7
|
188
|
+
Enabled: true
|
189
|
+
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
190
|
+
Enabled: true
|
191
|
+
Style/InPatternThen: # new in 1.16
|
192
|
+
Enabled: true
|
193
|
+
Style/MagicCommentFormat: # new in 1.35
|
194
|
+
Enabled: true
|
195
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
196
|
+
Enabled: true
|
197
|
+
Style/MapIntoArray: # new in 1.63
|
198
|
+
Enabled: true
|
199
|
+
Style/MapToHash: # new in 1.24
|
200
|
+
Enabled: false
|
201
|
+
Style/MapToSet: # new in 1.42
|
202
|
+
Enabled: true
|
203
|
+
Style/MinMaxComparison: # new in 1.42
|
204
|
+
Enabled: true
|
205
|
+
Style/MultilineInPatternThen: # new in 1.16
|
206
|
+
Enabled: true
|
207
|
+
Style/NegatedIfElseCondition: # new in 1.2
|
208
|
+
Enabled: true
|
209
|
+
Style/NestedFileDirname: # new in 1.26
|
210
|
+
Enabled: true
|
211
|
+
Style/NilLambda: # new in 1.3
|
212
|
+
Enabled: true
|
213
|
+
Style/NumberedParameters: # new in 1.22
|
214
|
+
Enabled: true
|
215
|
+
Style/NumberedParametersLimit: # new in 1.22
|
216
|
+
Enabled: true
|
217
|
+
Style/ObjectThen: # new in 1.28
|
218
|
+
Enabled: true
|
219
|
+
Style/OpenStructUse: # new in 1.23
|
220
|
+
Enabled: true
|
221
|
+
Style/OperatorMethodCall: # new in 1.37
|
222
|
+
Enabled: true
|
223
|
+
Style/QuotedSymbols: # new in 1.16
|
224
|
+
Enabled: true
|
225
|
+
Style/RedundantArgument: # new in 1.4
|
226
|
+
Enabled: true
|
227
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
228
|
+
Enabled: true
|
229
|
+
Style/RedundantConstantBase: # new in 1.40
|
230
|
+
Enabled: true
|
231
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
232
|
+
Enabled: true
|
233
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
234
|
+
Enabled: true
|
235
|
+
Style/RedundantEach: # new in 1.38
|
236
|
+
Enabled: true
|
237
|
+
Style/RedundantFilterChain: # new in 1.52
|
238
|
+
Enabled: true
|
239
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
240
|
+
Enabled: true
|
241
|
+
Style/RedundantInitialize: # new in 1.27
|
242
|
+
Enabled: true
|
243
|
+
Style/RedundantLineContinuation: # new in 1.49
|
244
|
+
Enabled: true
|
245
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
246
|
+
Enabled: true
|
247
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
248
|
+
Enabled: true
|
249
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
250
|
+
Enabled: true
|
251
|
+
Style/RedundantStringEscape: # new in 1.37
|
252
|
+
Enabled: true
|
253
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
254
|
+
Enabled: true
|
255
|
+
Style/SelectByRegexp: # new in 1.22
|
256
|
+
Enabled: true
|
257
|
+
Style/SendWithLiteralMethodName: # new in 1.64
|
258
|
+
Enabled: false
|
259
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
260
|
+
Enabled: true
|
261
|
+
Style/StringChars: # new in 1.12
|
262
|
+
Enabled: true
|
263
|
+
Style/SuperArguments: # new in 1.64
|
264
|
+
Enabled: true
|
265
|
+
Style/SuperWithArgsParentheses: # new in 1.58
|
266
|
+
Enabled: true
|
267
|
+
Style/SwapValues: # new in 1.1
|
268
|
+
Enabled: true
|
269
|
+
Style/YAMLFileRead: # new in 1.53
|
270
|
+
Enabled: true
|
271
|
+
Performance/AncestorsInclude: # new in 1.7
|
272
|
+
Enabled: true
|
273
|
+
Performance/BigDecimalWithNumericArgument: # new in 1.7
|
274
|
+
Enabled: true
|
275
|
+
Performance/BlockGivenWithExplicitBlock: # new in 1.9
|
276
|
+
Enabled: true
|
277
|
+
Performance/CollectionLiteralInLoop: # new in 1.8
|
278
|
+
Enabled: true
|
279
|
+
Performance/ConcurrentMonotonicTime: # new in 1.12
|
280
|
+
Enabled: true
|
281
|
+
Performance/ConstantRegexp: # new in 1.9
|
282
|
+
Enabled: true
|
283
|
+
Performance/MapCompact: # new in 1.11
|
284
|
+
Enabled: true
|
285
|
+
Performance/MapMethodChain: # new in 1.19
|
286
|
+
Enabled: true
|
287
|
+
Performance/MethodObjectAsBlock: # new in 1.9
|
288
|
+
Enabled: true
|
289
|
+
Performance/RedundantEqualityComparisonBlock: # new in 1.10
|
290
|
+
Enabled: true
|
291
|
+
Performance/RedundantSortBlock: # new in 1.7
|
292
|
+
Enabled: true
|
293
|
+
Performance/RedundantSplitRegexpArgument: # new in 1.10
|
294
|
+
Enabled: true
|
295
|
+
Performance/RedundantStringChars: # new in 1.7
|
296
|
+
Enabled: true
|
297
|
+
Performance/ReverseFirst: # new in 1.7
|
298
|
+
Enabled: true
|
299
|
+
Performance/SortReverse: # new in 1.7
|
300
|
+
Enabled: true
|
301
|
+
Performance/Squeeze: # new in 1.7
|
302
|
+
Enabled: true
|
303
|
+
Performance/StringIdentifierArgument: # new in 1.13
|
304
|
+
Enabled: true
|
305
|
+
Performance/StringInclude: # new in 1.7
|
306
|
+
Enabled: true
|
307
|
+
Performance/Sum: # new in 1.8
|
308
|
+
Enabled: true
|
309
|
+
Rails/ActionControllerFlashBeforeRender: # new in 2.16
|
310
|
+
Enabled: true
|
311
|
+
Rails/ActionControllerTestCase: # new in 2.14
|
312
|
+
Enabled: true
|
313
|
+
Rails/ActionOrder: # new in 2.17
|
314
|
+
Enabled: true
|
315
|
+
Rails/ActiveRecordCallbacksOrder: # new in 2.7
|
316
|
+
Enabled: true
|
317
|
+
Rails/ActiveSupportOnLoad: # new in 2.16
|
318
|
+
Enabled: true
|
319
|
+
Rails/AddColumnIndex: # new in 2.11
|
320
|
+
Enabled: true
|
321
|
+
Rails/AfterCommitOverride: # new in 2.8
|
322
|
+
Enabled: true
|
323
|
+
Rails/AttributeDefaultBlockValue: # new in 2.9
|
324
|
+
Enabled: true
|
325
|
+
Rails/CompactBlank: # new in 2.13
|
326
|
+
Enabled: true
|
327
|
+
Rails/DangerousColumnNames: # new in 2.21
|
328
|
+
Enabled: true
|
329
|
+
Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
|
330
|
+
Enabled: true
|
331
|
+
Rails/DotSeparatedKeys: # new in 2.15
|
332
|
+
Enabled: true
|
333
|
+
Rails/DuplicateAssociation: # new in 2.14
|
334
|
+
Enabled: true
|
335
|
+
Rails/DuplicateScope: # new in 2.14
|
336
|
+
Enabled: true
|
337
|
+
Rails/DurationArithmetic: # new in 2.13
|
338
|
+
Enabled: true
|
339
|
+
Rails/EagerEvaluationLogMessage: # new in 2.11
|
340
|
+
Enabled: true
|
341
|
+
Rails/EnvLocal: # new in 2.22
|
342
|
+
Enabled: true
|
343
|
+
Rails/ExpandedDateRange: # new in 2.11
|
344
|
+
Enabled: true
|
345
|
+
Rails/FindById: # new in 2.7
|
346
|
+
Enabled: true
|
347
|
+
Rails/FreezeTime: # new in 2.16
|
348
|
+
Enabled: true
|
349
|
+
Rails/I18nLazyLookup: # new in 2.14
|
350
|
+
Enabled: true
|
351
|
+
Rails/I18nLocaleAssignment: # new in 2.11
|
352
|
+
Enabled: true
|
353
|
+
Rails/I18nLocaleTexts: # new in 2.14
|
354
|
+
Enabled: true
|
355
|
+
Rails/IgnoredColumnsAssignment: # new in 2.17
|
356
|
+
Enabled: true
|
357
|
+
Rails/Inquiry: # new in 2.7
|
358
|
+
Enabled: true
|
359
|
+
Rails/MailerName: # new in 2.7
|
360
|
+
Enabled: true
|
361
|
+
Rails/MatchRoute: # new in 2.7
|
362
|
+
Enabled: true
|
363
|
+
Rails/MigrationClassName: # new in 2.14
|
364
|
+
Enabled: true
|
365
|
+
Rails/NegateInclude: # new in 2.7
|
366
|
+
Enabled: true
|
367
|
+
Rails/Pluck: # new in 2.7
|
368
|
+
Enabled: true
|
369
|
+
Rails/PluckInWhere: # new in 2.7
|
370
|
+
Enabled: true
|
371
|
+
Rails/RedundantActiveRecordAllMethod: # new in 2.21
|
372
|
+
Enabled: true
|
373
|
+
Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
|
374
|
+
Enabled: true
|
375
|
+
Rails/RedundantTravelBack: # new in 2.12
|
376
|
+
Enabled: true
|
377
|
+
Rails/RenderInline: # new in 2.7
|
378
|
+
Enabled: true
|
379
|
+
Rails/RenderPlainText: # new in 2.7
|
380
|
+
Enabled: true
|
381
|
+
Rails/ResponseParsedBody: # new in 2.18
|
382
|
+
Enabled: true
|
383
|
+
Rails/RootJoinChain: # new in 2.13
|
384
|
+
Enabled: true
|
385
|
+
Rails/RootPathnameMethods: # new in 2.16
|
386
|
+
Enabled: true
|
387
|
+
Rails/RootPublicPath: # new in 2.15
|
388
|
+
Enabled: true
|
389
|
+
Rails/ShortI18n: # new in 2.7
|
390
|
+
Enabled: true
|
391
|
+
Rails/SquishedSQLHeredocs: # new in 2.8
|
392
|
+
Enabled: true
|
393
|
+
Rails/StripHeredoc: # new in 2.15
|
394
|
+
Enabled: true
|
395
|
+
Rails/ThreeStateBooleanColumn: # new in 2.19
|
396
|
+
Enabled: true
|
397
|
+
Rails/TimeZoneAssignment: # new in 2.10
|
398
|
+
Enabled: true
|
399
|
+
Rails/ToFormattedS: # new in 2.15
|
400
|
+
Enabled: true
|
401
|
+
Rails/ToSWithArgument: # new in 2.16
|
402
|
+
Enabled: true
|
403
|
+
Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
|
404
|
+
Enabled: true
|
405
|
+
Rails/TransactionExitStatement: # new in 2.14
|
406
|
+
Enabled: true
|
407
|
+
Rails/UnusedRenderContent: # new in 2.21
|
408
|
+
Enabled: true
|
409
|
+
Rails/WhereEquals: # new in 2.9
|
410
|
+
Enabled: true
|
411
|
+
Rails/WhereExists: # new in 2.7
|
412
|
+
Enabled: true
|
413
|
+
Rails/WhereMissing: # new in 2.16
|
414
|
+
Enabled: true
|
415
|
+
Rails/WhereNot: # new in 2.8
|
416
|
+
Enabled: true
|
417
|
+
Rails/WhereNotWithMultipleConditions: # new in 2.17
|
418
|
+
Enabled: true
|
419
|
+
Rails/WhereRange: # new in 2.25
|
420
|
+
Enabled: true
|