rubocop-config-captive 1.0.0.pre.alpha.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -5
- data/README.md +1 -1
- data/config/__private__/README.md +1 -0
- data/config/__private__/rubocop-airbnb.yml +96 -0
- data/config/__private__/rubocop-bundler.yml +9 -0
- data/config/__private__/rubocop-gemspec.yml +13 -0
- data/config/__private__/rubocop-layout.yml +562 -0
- data/config/__private__/rubocop-lint.yml +306 -0
- data/config/__private__/rubocop-metrics.yml +44 -0
- data/config/__private__/rubocop-naming.yml +89 -0
- data/config/__private__/rubocop-performance.yml +126 -0
- data/config/__private__/rubocop-rails.yml +222 -0
- data/config/__private__/rubocop-rspec.yml +327 -0
- data/config/__private__/rubocop-security.yml +18 -0
- data/config/__private__/rubocop-style.yml +1001 -0
- data/config/default.yml +54 -0
- data/config/rubocop-bundler.yml +6 -0
- data/config/rubocop-captive.yml +33 -0
- data/config/rubocop-capybara.yml +2 -0
- data/config/rubocop-gemspec.yml +3 -0
- data/config/rubocop-layout.yml +45 -0
- data/config/rubocop-lint.yml +3 -0
- data/config/rubocop-metrics.yml +3 -0
- data/config/rubocop-naming.yml +3 -0
- data/config/rubocop-performance.yml +3 -0
- data/config/rubocop-rails.yml +3 -0
- data/config/rubocop-rake.yml +2 -0
- data/config/rubocop-rspec.yml +3 -0
- data/config/rubocop-security.yml +3 -0
- data/config/rubocop-style.yml +3 -0
- data/lib/rubocop/captive/version.rb +8 -0
- data/lib/rubocop-captive.rb +1 -1
- data/rubocop-config-captive.gemspec +5 -2
- metadata +33 -4
@@ -0,0 +1,1001 @@
|
|
1
|
+
### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
|
2
|
+
Style/AccessModifierDeclarations:
|
3
|
+
Enabled: false
|
4
|
+
|
5
|
+
# Supports --auto-correct
|
6
|
+
Style/Alias:
|
7
|
+
Description: Use alias_method instead of alias.
|
8
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#alias-method
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
# Supports --auto-correct
|
12
|
+
Style/AndOr:
|
13
|
+
Description: Use &&/|| instead of and/or.
|
14
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-and-or-or
|
15
|
+
Enabled: true
|
16
|
+
EnforcedStyle: always
|
17
|
+
SupportedStyles:
|
18
|
+
- always
|
19
|
+
- conditionals
|
20
|
+
|
21
|
+
# Supports --auto-correct
|
22
|
+
Style/ArrayJoin:
|
23
|
+
Description: Use Array#join instead of Array#*.
|
24
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#array-join
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Style/AsciiComments:
|
28
|
+
Description: Use only ascii symbols in comments.
|
29
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#english-comments
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
# Supports --auto-correct
|
33
|
+
Style/Attr:
|
34
|
+
Description: Checks for uses of Module#attr.
|
35
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#attr
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Style/AutoResourceCleanup:
|
39
|
+
Description: Suggests the usage of an auto resource cleanup version of a method (if
|
40
|
+
available).
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
# Supports --auto-correct
|
44
|
+
Style/BarePercentLiterals:
|
45
|
+
Description: Checks if usage of %() or %Q() matches configuration.
|
46
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-q-shorthand
|
47
|
+
Enabled: false
|
48
|
+
EnforcedStyle: bare_percent
|
49
|
+
SupportedStyles:
|
50
|
+
- percent_q
|
51
|
+
- bare_percent
|
52
|
+
|
53
|
+
Style/BeginBlock:
|
54
|
+
Description: Avoid the use of BEGIN blocks.
|
55
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-BEGIN-blocks
|
56
|
+
Enabled: false
|
57
|
+
|
58
|
+
# Supports --auto-correct
|
59
|
+
Style/BlockComments:
|
60
|
+
Description: Do not use block comments.
|
61
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-block-comments
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
# Supports --auto-correct
|
65
|
+
Style/BlockDelimiters:
|
66
|
+
Description: Check for uses of braces or do/end around single line or multi-line blocks.
|
67
|
+
Enabled: true
|
68
|
+
EnforcedStyle: line_count_based
|
69
|
+
SupportedStyles:
|
70
|
+
# The `line_count_based` style enforces braces around single line blocks and
|
71
|
+
# do..end around multi-line blocks.
|
72
|
+
- line_count_based
|
73
|
+
# The `semantic` style enforces braces around functional blocks, where the
|
74
|
+
# primary purpose of the block is to return a value and do..end for
|
75
|
+
# procedural blocks, where the primary purpose of the block is its
|
76
|
+
# side-effects.
|
77
|
+
#
|
78
|
+
# This looks at the usage of a block's method to determine its type (e.g. is
|
79
|
+
# the result of a `map` assigned to a variable or passed to another
|
80
|
+
# method) but exceptions are permitted in the `ProceduralMethods`,
|
81
|
+
# `FunctionalMethods` and `IgnoredMethods` sections below.
|
82
|
+
- semantic
|
83
|
+
# The `braces_for_chaining` style enforces braces around single line blocks
|
84
|
+
# and do..end around multi-line blocks, except for multi-line blocks whose
|
85
|
+
# return value is being chained with another method (in which case braces
|
86
|
+
# are enforced).
|
87
|
+
- braces_for_chaining
|
88
|
+
ProceduralMethods:
|
89
|
+
# Methods that are known to be procedural in nature but look functional from
|
90
|
+
# their usage, e.g.
|
91
|
+
#
|
92
|
+
# time = Benchmark.realtime do
|
93
|
+
# foo.bar
|
94
|
+
# end
|
95
|
+
#
|
96
|
+
# Here, the return value of the block is discarded but the return value of
|
97
|
+
# `Benchmark.realtime` is used.
|
98
|
+
- benchmark
|
99
|
+
- bm
|
100
|
+
- bmbm
|
101
|
+
- create
|
102
|
+
- each_with_object
|
103
|
+
- measure
|
104
|
+
- new
|
105
|
+
- realtime
|
106
|
+
- tap
|
107
|
+
- with_object
|
108
|
+
FunctionalMethods:
|
109
|
+
# Methods that are known to be functional in nature but look procedural from
|
110
|
+
# their usage, e.g.
|
111
|
+
#
|
112
|
+
# let(:foo) { Foo.new }
|
113
|
+
#
|
114
|
+
# Here, the return value of `Foo.new` is used to define a `foo` helper but
|
115
|
+
# doesn't appear to be used from the return value of `let`.
|
116
|
+
- let
|
117
|
+
- let!
|
118
|
+
- subject
|
119
|
+
- watch
|
120
|
+
AllowedMethods:
|
121
|
+
# Methods that can be either procedural or functional and cannot be
|
122
|
+
# categorised from their usage alone, e.g.
|
123
|
+
#
|
124
|
+
# foo = lambda do |x|
|
125
|
+
# puts "Hello, #{x}"
|
126
|
+
# end
|
127
|
+
#
|
128
|
+
# foo = lambda do |x|
|
129
|
+
# x * 100
|
130
|
+
# end
|
131
|
+
#
|
132
|
+
# Here, it is impossible to tell from the return value of `lambda` whether
|
133
|
+
# the inner block's return value is significant.
|
134
|
+
- lambda
|
135
|
+
- proc
|
136
|
+
- it
|
137
|
+
|
138
|
+
Style/CaseEquality:
|
139
|
+
Description: Avoid explicit use of the case equality operator(===).
|
140
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-case-equality
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
# Supports --auto-correct
|
144
|
+
Style/CharacterLiteral:
|
145
|
+
Description: Checks for uses of character literals.
|
146
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-character-literals
|
147
|
+
Enabled: false
|
148
|
+
|
149
|
+
Style/ClassAndModuleChildren:
|
150
|
+
Description: Checks style of children classes and modules.
|
151
|
+
Enabled: false
|
152
|
+
EnforcedStyle: nested
|
153
|
+
|
154
|
+
# Supports --auto-correct
|
155
|
+
Style/ClassCheck:
|
156
|
+
Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
|
157
|
+
Enabled: true
|
158
|
+
EnforcedStyle: is_a?
|
159
|
+
|
160
|
+
# Supports --auto-correct
|
161
|
+
Style/ClassMethods:
|
162
|
+
Description: Use self when defining module/class methods.
|
163
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#def-self-class-methods
|
164
|
+
Enabled: false
|
165
|
+
|
166
|
+
Style/ClassVars:
|
167
|
+
Description: Avoid the use of class variables.
|
168
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-class-vars
|
169
|
+
Enabled: true
|
170
|
+
|
171
|
+
# Supports --auto-correct
|
172
|
+
Style/CollectionMethods:
|
173
|
+
Description: Preferred collection methods.
|
174
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#map-find-select-reduce-size
|
175
|
+
Enabled: false
|
176
|
+
PreferredMethods:
|
177
|
+
collect: map
|
178
|
+
collect!: map!
|
179
|
+
inject: reduce
|
180
|
+
detect: detect
|
181
|
+
find: detect
|
182
|
+
find_all: select
|
183
|
+
|
184
|
+
# Supports --auto-correct
|
185
|
+
Style/ColonMethodCall:
|
186
|
+
Description: ! 'Do not use :: for method call.'
|
187
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#double-colons
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
Style/ColonMethodDefinition:
|
191
|
+
Description: 'Do not use :: for defining class methods.'
|
192
|
+
StyleGuide: '#colon-method-definition'
|
193
|
+
Enabled: true
|
194
|
+
|
195
|
+
# Supports --auto-correct
|
196
|
+
Style/CommandLiteral:
|
197
|
+
Description: Use `` or %x around command literals.
|
198
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-x
|
199
|
+
Enabled: true
|
200
|
+
EnforcedStyle: backticks
|
201
|
+
AllowInnerBackticks: false
|
202
|
+
|
203
|
+
# Supports --auto-correct
|
204
|
+
Style/CommentAnnotation:
|
205
|
+
Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
|
206
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#annotate-keywords
|
207
|
+
Enabled: false
|
208
|
+
Keywords:
|
209
|
+
- TODO
|
210
|
+
- FIXME
|
211
|
+
- OPTIMIZE
|
212
|
+
- HACK
|
213
|
+
- REVIEW
|
214
|
+
|
215
|
+
Style/CommentedKeyword:
|
216
|
+
Enabled: false
|
217
|
+
|
218
|
+
# Supports --auto-correct
|
219
|
+
Style/ConditionalAssignment:
|
220
|
+
Description: Use the return value of `if` and `case` statements for assignment to
|
221
|
+
a variable and variable comparison instead of assigning that variable inside of
|
222
|
+
each branch.
|
223
|
+
Enabled: false
|
224
|
+
SingleLineConditionsOnly: true
|
225
|
+
|
226
|
+
# Supports --auto-correct
|
227
|
+
Style/Copyright:
|
228
|
+
Description: Include a copyright notice in each file before any code.
|
229
|
+
Enabled: false
|
230
|
+
Notice: ^Copyright (\(c\) )?2[0-9]{3} .+
|
231
|
+
AutocorrectNotice: ''
|
232
|
+
|
233
|
+
Style/DateTime:
|
234
|
+
Enabled: false
|
235
|
+
|
236
|
+
# Supports --auto-correct
|
237
|
+
Style/DefWithParentheses:
|
238
|
+
Description: Use def with parentheses when there are arguments.
|
239
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#method-parens
|
240
|
+
Enabled: false
|
241
|
+
|
242
|
+
Style/Dir:
|
243
|
+
Enabled: false
|
244
|
+
|
245
|
+
# Don't force documentation
|
246
|
+
Style/Documentation:
|
247
|
+
Enabled: false
|
248
|
+
|
249
|
+
Style/DocumentationMethod:
|
250
|
+
Enabled: false
|
251
|
+
|
252
|
+
Style/DoubleNegation:
|
253
|
+
Description: Checks for uses of double negation (!!).
|
254
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-bang-bang
|
255
|
+
Enabled: false
|
256
|
+
|
257
|
+
Style/EachForSimpleLoop:
|
258
|
+
Description: >-
|
259
|
+
Use `Integer#times` for a simple loop which iterates a fixed
|
260
|
+
number of times.
|
261
|
+
Enabled: true
|
262
|
+
|
263
|
+
Style/EachWithObject:
|
264
|
+
Description: Prefer `each_with_object` over `inject` or `reduce`.
|
265
|
+
Enabled: false
|
266
|
+
|
267
|
+
Style/EmptyBlockParameter:
|
268
|
+
Description: 'Omit pipes for empty block parameters.'
|
269
|
+
Enabled: true
|
270
|
+
|
271
|
+
Style/EmptyCaseCondition:
|
272
|
+
Enabled: false
|
273
|
+
|
274
|
+
# Supports --auto-correct
|
275
|
+
Style/EmptyElse:
|
276
|
+
Description: Avoid empty else-clauses.
|
277
|
+
Enabled: false
|
278
|
+
EnforcedStyle: both
|
279
|
+
SupportedStyles:
|
280
|
+
- empty
|
281
|
+
- nil
|
282
|
+
- both
|
283
|
+
|
284
|
+
Style/EmptyLambdaParameter:
|
285
|
+
Description: 'Omit parens for empty lambda parameters.'
|
286
|
+
Enabled: true
|
287
|
+
|
288
|
+
# Supports --auto-correct
|
289
|
+
Style/EmptyLiteral:
|
290
|
+
Description: Prefer literals to Array.new/Hash.new/String.new.
|
291
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#literal-array-hash
|
292
|
+
Enabled: true
|
293
|
+
|
294
|
+
Style/EmptyMethod:
|
295
|
+
Enabled: false
|
296
|
+
|
297
|
+
# Supports --auto-correct
|
298
|
+
Style/Encoding:
|
299
|
+
Description: Use UTF-8 as the source file encoding.
|
300
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#utf-8
|
301
|
+
Enabled: false
|
302
|
+
|
303
|
+
Style/EndBlock:
|
304
|
+
Description: Avoid the use of END blocks.
|
305
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-END-blocks
|
306
|
+
Enabled: false
|
307
|
+
|
308
|
+
Style/EvalWithLocation:
|
309
|
+
Description: 'Pass `__FILE__` and `__LINE__` to `eval` method, as they are used by backtraces.'
|
310
|
+
Enabled: false
|
311
|
+
|
312
|
+
# Supports --auto-correct
|
313
|
+
Style/EvenOdd:
|
314
|
+
Description: Favor the use of Fixnum#even? && Fixnum#odd?
|
315
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#predicate-methods
|
316
|
+
Enabled: false
|
317
|
+
|
318
|
+
Style/ExpandPathArguments:
|
319
|
+
Description: "Use `expand_path(__dir__)` instead of `expand_path('..', __FILE__)`."
|
320
|
+
Enabled: false
|
321
|
+
|
322
|
+
Style/For:
|
323
|
+
Description: Checks use of for or each in multiline loops.
|
324
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-for-loops
|
325
|
+
Enabled: false
|
326
|
+
EnforcedStyle: each
|
327
|
+
SupportedStyles:
|
328
|
+
- for
|
329
|
+
- each
|
330
|
+
|
331
|
+
Style/FormatString:
|
332
|
+
Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
|
333
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#sprintf
|
334
|
+
Enabled: false
|
335
|
+
EnforcedStyle: format
|
336
|
+
SupportedStyles:
|
337
|
+
- format
|
338
|
+
- sprintf
|
339
|
+
- percent
|
340
|
+
|
341
|
+
Style/FormatStringToken:
|
342
|
+
Enabled: false
|
343
|
+
|
344
|
+
# Supports --auto-correct
|
345
|
+
Style/FrozenStringLiteralComment:
|
346
|
+
Description: Add the frozen_string_literal comment to the top of files to help transition
|
347
|
+
from Ruby 2.3.0 to Ruby 3.0.
|
348
|
+
Enabled: false
|
349
|
+
SupportedStyles:
|
350
|
+
- always
|
351
|
+
- always_true
|
352
|
+
- never
|
353
|
+
EnforcedStyle: always_true
|
354
|
+
|
355
|
+
Style/GlobalVars:
|
356
|
+
Description: Do not introduce global variables.
|
357
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#instance-vars
|
358
|
+
Reference: http://www.zenspider.com/Languages/Ruby/QuickRef.html
|
359
|
+
Enabled: false
|
360
|
+
AllowedVariables: []
|
361
|
+
|
362
|
+
# This thing seems a little error prone, and is kind of annoying. Let's
|
363
|
+
# leave this up to the individual.
|
364
|
+
Style/GuardClause:
|
365
|
+
Enabled: false
|
366
|
+
|
367
|
+
# Don't force colon-style hash pairs. Sometimes ya just don't want 'em.
|
368
|
+
# (Allen approved!)
|
369
|
+
Style/HashSyntax:
|
370
|
+
Enabled: false
|
371
|
+
|
372
|
+
Style/IdenticalConditionalBranches:
|
373
|
+
Description: Checks that conditional statements do not have an identical line at the
|
374
|
+
end of each branch, which can validly be moved out of the conditional.
|
375
|
+
Enabled: false
|
376
|
+
|
377
|
+
Style/IfInsideElse:
|
378
|
+
Description: Finds if nodes inside else, which can be converted to elsif.
|
379
|
+
Enabled: false
|
380
|
+
|
381
|
+
# Don't force trailing if/unless for single-line conditionals
|
382
|
+
Style/IfUnlessModifier:
|
383
|
+
Enabled: false
|
384
|
+
|
385
|
+
Style/IfUnlessModifierOfIfUnless:
|
386
|
+
Description: >-
|
387
|
+
Checks for if and unless statements used as modifers of other if or unless statements.
|
388
|
+
Enabled: true
|
389
|
+
|
390
|
+
Style/IfWithSemicolon:
|
391
|
+
Description: Do not use if x; .... Use the ternary operator instead.
|
392
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-semicolon-ifs
|
393
|
+
Enabled: true
|
394
|
+
|
395
|
+
# Supports --auto-correct
|
396
|
+
Style/InfiniteLoop:
|
397
|
+
Description: Use Kernel#loop for infinite loops.
|
398
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#infinite-loop
|
399
|
+
Enabled: false
|
400
|
+
|
401
|
+
Style/InlineComment:
|
402
|
+
Description: Avoid inline comments.
|
403
|
+
Enabled: false
|
404
|
+
|
405
|
+
Style/InverseMethods:
|
406
|
+
Enabled: false
|
407
|
+
|
408
|
+
# Supports --auto-correct
|
409
|
+
Style/Lambda:
|
410
|
+
Description: Use the new lambda literal syntax for single-line blocks.
|
411
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#lambda-multi-line
|
412
|
+
Enabled: false
|
413
|
+
|
414
|
+
# Supports --auto-correct
|
415
|
+
Style/LambdaCall:
|
416
|
+
Description: Use lambda.call(...) instead of lambda.(...).
|
417
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#proc-call
|
418
|
+
Enabled: true
|
419
|
+
EnforcedStyle: call
|
420
|
+
SupportedStyles:
|
421
|
+
- call
|
422
|
+
- braces
|
423
|
+
|
424
|
+
# Supports --auto-correct
|
425
|
+
Style/LineEndConcatenation:
|
426
|
+
Description: Use \ instead of + or << to concatenate two string literals at line end.
|
427
|
+
Enabled: true
|
428
|
+
|
429
|
+
Style/MethodCallWithArgsParentheses:
|
430
|
+
Enabled: false
|
431
|
+
|
432
|
+
# Supports --auto-correct
|
433
|
+
Style/MethodCallWithoutArgsParentheses:
|
434
|
+
Description: Do not use parentheses for method calls with no arguments.
|
435
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-args-no-parens
|
436
|
+
Enabled: true
|
437
|
+
|
438
|
+
Style/MethodCalledOnDoEndBlock:
|
439
|
+
Description: Avoid chaining a method call on a do...end block.
|
440
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#single-line-blocks
|
441
|
+
Enabled: false
|
442
|
+
|
443
|
+
# Supports --auto-correct
|
444
|
+
Style/MethodDefParentheses:
|
445
|
+
Description: Checks if the method definitions have or don't have parentheses.
|
446
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#method-parens
|
447
|
+
Enabled: true
|
448
|
+
EnforcedStyle: require_parentheses
|
449
|
+
SupportedStyles:
|
450
|
+
- require_parentheses
|
451
|
+
- require_no_parentheses
|
452
|
+
|
453
|
+
Style/MissingRespondToMissing:
|
454
|
+
Enabled: false
|
455
|
+
|
456
|
+
Style/MinMax:
|
457
|
+
Enabled: false
|
458
|
+
|
459
|
+
Style/MissingElse:
|
460
|
+
Description: Require if/case expressions to have an else branches. If enabled, it
|
461
|
+
is recommended that Style/UnlessElse and Style/EmptyElse be enabled. This will conflict
|
462
|
+
with Style/EmptyElse if Style/EmptyElse is configured to style "both"
|
463
|
+
Enabled: false
|
464
|
+
EnforcedStyle: both
|
465
|
+
SupportedStyles:
|
466
|
+
- if
|
467
|
+
- case
|
468
|
+
- both
|
469
|
+
|
470
|
+
Style/MixinGrouping:
|
471
|
+
Description: This cop checks for grouping of mixins in `class` and `module` bodies. By default
|
472
|
+
it enforces mixins to be placed in separate declarations, but it can be configured to enforce
|
473
|
+
grouping them in one declaration.
|
474
|
+
Enabled: true
|
475
|
+
|
476
|
+
Style/MixinUsage:
|
477
|
+
Description: This cop checks that `include`, `extend` and `prepend` exists at the top level.
|
478
|
+
Using these at the top level affects the behavior of `Object`. There will not be using
|
479
|
+
`include`, `extend` and `prepend` at the top level. Let's use it inside `class` or `module`.
|
480
|
+
Enabled: true
|
481
|
+
|
482
|
+
# Supports --auto-correct
|
483
|
+
Style/ModuleFunction:
|
484
|
+
Description: Checks for usage of `extend self` in modules.
|
485
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#module-function
|
486
|
+
Enabled: false
|
487
|
+
|
488
|
+
Style/MultilineBlockChain:
|
489
|
+
Description: Avoid multi-line chains of blocks.
|
490
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#single-line-blocks
|
491
|
+
Enabled: false
|
492
|
+
|
493
|
+
Style/MultilineIfModifier:
|
494
|
+
Enabled: true
|
495
|
+
|
496
|
+
# Supports --auto-correct
|
497
|
+
Style/MultilineIfThen:
|
498
|
+
Description: Do not use then for multi-line if/unless.
|
499
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-then
|
500
|
+
Enabled: true
|
501
|
+
|
502
|
+
Style/MultilineMemoization:
|
503
|
+
Enabled: false
|
504
|
+
|
505
|
+
Style/MultilineTernaryOperator:
|
506
|
+
Description: ! 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
|
507
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-multiline-ternary
|
508
|
+
Enabled: true
|
509
|
+
|
510
|
+
Style/MultipleComparison:
|
511
|
+
Enabled: false
|
512
|
+
|
513
|
+
# Supports --auto-correct
|
514
|
+
Style/MutableConstant:
|
515
|
+
Description: Do not assign mutable objects to constants.
|
516
|
+
Enabled: true
|
517
|
+
|
518
|
+
# Supports --auto-correct
|
519
|
+
Style/NegatedIf:
|
520
|
+
Description: Favor unless over if for negative conditions (or control flow or).
|
521
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#unless-for-negatives
|
522
|
+
Enabled: false
|
523
|
+
|
524
|
+
# Supports --auto-correct
|
525
|
+
Style/NegatedWhile:
|
526
|
+
Description: Favor until over while for negative conditions.
|
527
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#until-for-negatives
|
528
|
+
Enabled: false
|
529
|
+
|
530
|
+
Style/NestedModifier:
|
531
|
+
Enabled: true
|
532
|
+
|
533
|
+
Style/NestedParenthesizedCalls:
|
534
|
+
Description: Parenthesize method calls which are nested inside the argument list of
|
535
|
+
another parenthesized method call.
|
536
|
+
Enabled: true
|
537
|
+
|
538
|
+
Style/NestedTernaryOperator:
|
539
|
+
Description: Use one expression per branch in a ternary operator.
|
540
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-nested-ternary
|
541
|
+
Enabled: true
|
542
|
+
|
543
|
+
Style/Next:
|
544
|
+
Description: Use `next` to skip iteration instead of a condition at the end.
|
545
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-nested-conditionals
|
546
|
+
Enabled: false
|
547
|
+
EnforcedStyle: skip_modifier_ifs
|
548
|
+
MinBodyLength: 3
|
549
|
+
SupportedStyles:
|
550
|
+
- skip_modifier_ifs
|
551
|
+
- always
|
552
|
+
|
553
|
+
# Supports --auto-correct
|
554
|
+
Style/NilComparison:
|
555
|
+
Description: Prefer x.nil? to x == nil.
|
556
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#predicate-methods
|
557
|
+
Enabled: true
|
558
|
+
|
559
|
+
# Supports --auto-correct
|
560
|
+
Style/NonNilCheck:
|
561
|
+
Description: Checks for redundant nil checks.
|
562
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-non-nil-checks
|
563
|
+
Enabled: true
|
564
|
+
IncludeSemanticChanges: false
|
565
|
+
|
566
|
+
# Supports --auto-correct
|
567
|
+
Style/Not:
|
568
|
+
Description: Use ! instead of not.
|
569
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#bang-not-not
|
570
|
+
Enabled: true
|
571
|
+
|
572
|
+
Style/NumericLiteralPrefix:
|
573
|
+
EnforcedOctalStyle: zero_with_o
|
574
|
+
SupportedOctalStyles:
|
575
|
+
- zero_with_o
|
576
|
+
- zero_only
|
577
|
+
Enabled: true
|
578
|
+
|
579
|
+
# We just don't like this style.
|
580
|
+
Style/NumericLiterals:
|
581
|
+
Description: Add underscores to large numeric literals to improve their readability.
|
582
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#underscores-in-numerics
|
583
|
+
Enabled: false
|
584
|
+
|
585
|
+
Style/NumericPredicate:
|
586
|
+
Enabled: false
|
587
|
+
|
588
|
+
Style/OneLineConditional:
|
589
|
+
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
590
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#ternary-operator
|
591
|
+
Enabled: true
|
592
|
+
|
593
|
+
Style/OptionHash:
|
594
|
+
Description: Don't use option hashes when you can use keyword arguments.
|
595
|
+
Enabled: false
|
596
|
+
SuspiciousParamNames:
|
597
|
+
- options
|
598
|
+
- opts
|
599
|
+
- args
|
600
|
+
- params
|
601
|
+
- parameters
|
602
|
+
|
603
|
+
Style/OptionalArguments:
|
604
|
+
Description: Checks for optional arguments that do not appear at the end of the argument
|
605
|
+
list
|
606
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#optional-arguments
|
607
|
+
Enabled: true
|
608
|
+
|
609
|
+
Style/OrAssignment:
|
610
|
+
Enabled: true
|
611
|
+
|
612
|
+
# Supports --auto-correct
|
613
|
+
Style/ParallelAssignment:
|
614
|
+
Description: Check for simple usages of parallel assignment. It will only warn when
|
615
|
+
the number of variables matches on both sides of the assignment.
|
616
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#parallel-assignment
|
617
|
+
Enabled: false
|
618
|
+
|
619
|
+
# Supports --auto-correct
|
620
|
+
Style/ParenthesesAroundCondition:
|
621
|
+
Description: Don't use parentheses around the condition of an if/unless/while.
|
622
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-parens-if
|
623
|
+
Enabled: true
|
624
|
+
AllowSafeAssignment: true
|
625
|
+
|
626
|
+
# Supports --auto-correct
|
627
|
+
Style/PercentLiteralDelimiters:
|
628
|
+
Description: Use `%`-literal delimiters consistently
|
629
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-literal-braces
|
630
|
+
Enabled: true
|
631
|
+
PreferredDelimiters:
|
632
|
+
! '%': ()
|
633
|
+
! '%i': ()
|
634
|
+
! '%q': ()
|
635
|
+
! '%Q': ()
|
636
|
+
! '%r': ! '{}'
|
637
|
+
! '%s': ()
|
638
|
+
! '%w': ()
|
639
|
+
! '%W': ()
|
640
|
+
! '%x': ()
|
641
|
+
|
642
|
+
# Supports --auto-correct
|
643
|
+
Style/PercentQLiterals:
|
644
|
+
Description: Checks if uses of %Q/%q match the configured preference.
|
645
|
+
Enabled: false
|
646
|
+
EnforcedStyle: lower_case_q
|
647
|
+
SupportedStyles:
|
648
|
+
- lower_case_q
|
649
|
+
- upper_case_q
|
650
|
+
|
651
|
+
# Supports --auto-correct
|
652
|
+
Style/PerlBackrefs:
|
653
|
+
Description: Avoid Perl-style regex back references.
|
654
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-perl-regexp-last-matchers
|
655
|
+
Enabled: true
|
656
|
+
|
657
|
+
# Supports --auto-correct
|
658
|
+
Style/PreferredHashMethods:
|
659
|
+
Description: Checks for use of deprecated Hash methods.
|
660
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#hash-key
|
661
|
+
Enabled: true
|
662
|
+
|
663
|
+
# Supports --auto-correct
|
664
|
+
Style/Proc:
|
665
|
+
Description: Use proc instead of Proc.new.
|
666
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#proc
|
667
|
+
Enabled: false
|
668
|
+
|
669
|
+
Style/RaiseArgs:
|
670
|
+
Description: Checks the arguments passed to raise/fail.
|
671
|
+
# Also https://github.com/airbnb/ruby#exception-class-messages
|
672
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#exception-class-messages
|
673
|
+
Enabled: true
|
674
|
+
EnforcedStyle: exploded
|
675
|
+
SupportedStyles:
|
676
|
+
- compact
|
677
|
+
- exploded
|
678
|
+
|
679
|
+
Style/RandomWithOffset:
|
680
|
+
Description: Prefer to use ranges when generating random numbers instead of integers with offsets.
|
681
|
+
StyleGuide: '#random-numbers'
|
682
|
+
Enabled: false
|
683
|
+
|
684
|
+
# Supports --auto-correct
|
685
|
+
Style/RedundantBegin:
|
686
|
+
Description: Don't use begin blocks when they are not needed.
|
687
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#begin-implicit
|
688
|
+
Enabled: true
|
689
|
+
|
690
|
+
Style/RedundantConditional:
|
691
|
+
Enabled: true
|
692
|
+
|
693
|
+
# Supports --auto-correct
|
694
|
+
Style/RedundantException:
|
695
|
+
Description: Checks for an obsolete RuntimeException argument in raise/fail.
|
696
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-explicit-runtimeerror
|
697
|
+
Enabled: true
|
698
|
+
|
699
|
+
# Supports --auto-correct
|
700
|
+
Style/RedundantFreeze:
|
701
|
+
Description: Checks usages of Object#freeze on immutable objects.
|
702
|
+
Enabled: true
|
703
|
+
|
704
|
+
# Supports --auto-correct
|
705
|
+
Style/RedundantParentheses:
|
706
|
+
Description: Checks for parentheses that seem not to serve any purpose.
|
707
|
+
Enabled: true
|
708
|
+
|
709
|
+
# Supports --auto-correct
|
710
|
+
Style/RedundantReturn:
|
711
|
+
Description: Don't use return where it's not required.
|
712
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-explicit-return
|
713
|
+
Enabled: true
|
714
|
+
AllowMultipleReturnValues: false
|
715
|
+
|
716
|
+
# Supports --auto-correct
|
717
|
+
Style/RedundantSelf:
|
718
|
+
Description: Don't use self where it's not needed.
|
719
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-self-unless-required
|
720
|
+
Enabled: true
|
721
|
+
|
722
|
+
# Supports --auto-correct
|
723
|
+
Style/RedundantSortBy:
|
724
|
+
Description: Use `sort` instead of `sort_by { |x| x }`.
|
725
|
+
Enabled: false
|
726
|
+
|
727
|
+
# Supports --auto-correct
|
728
|
+
Style/RegexpLiteral:
|
729
|
+
Description: Use / or %r around regular expressions.
|
730
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-r
|
731
|
+
Enabled: false
|
732
|
+
EnforcedStyle: slashes
|
733
|
+
SupportedStyles:
|
734
|
+
- slashes
|
735
|
+
- percent_r
|
736
|
+
- mixed
|
737
|
+
AllowInnerSlashes: false
|
738
|
+
|
739
|
+
# Supports --auto-correct
|
740
|
+
Style/RescueModifier:
|
741
|
+
Description: Avoid using rescue in its modifier form.
|
742
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-rescue-modifiers
|
743
|
+
Enabled: true
|
744
|
+
|
745
|
+
Style/RescueStandardError:
|
746
|
+
Description: 'Avoid rescuing without specifying an error class.'
|
747
|
+
Enabled: false
|
748
|
+
|
749
|
+
Style/ReturnNil:
|
750
|
+
Enabled: false
|
751
|
+
|
752
|
+
Style/SafeNavigation:
|
753
|
+
Enabled: false
|
754
|
+
|
755
|
+
# Supports --auto-correct
|
756
|
+
Style/Sample:
|
757
|
+
Description: Use `sample` instead of `shuffle.first`, `shuffle.last`, and `shuffle[Fixnum]`.
|
758
|
+
Reference: https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code
|
759
|
+
Enabled: false
|
760
|
+
|
761
|
+
# Supports --auto-correct
|
762
|
+
Style/SelfAssignment:
|
763
|
+
Description: Checks for places where self-assignment shorthand should have been used.
|
764
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#self-assignment
|
765
|
+
Enabled: true
|
766
|
+
|
767
|
+
# Supports --auto-correct
|
768
|
+
Style/Semicolon:
|
769
|
+
Description: Don't use semicolons to terminate expressions.
|
770
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-semicolon
|
771
|
+
Enabled: true
|
772
|
+
AllowAsExpressionSeparator: false
|
773
|
+
|
774
|
+
Style/Send:
|
775
|
+
Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
|
776
|
+
may overlap with existing methods.
|
777
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#prefer-public-send
|
778
|
+
Enabled: false
|
779
|
+
|
780
|
+
# Supports --auto-correct
|
781
|
+
Style/SignalException:
|
782
|
+
Description: Checks for proper usage of fail and raise.
|
783
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#fail-method
|
784
|
+
Enabled: false
|
785
|
+
EnforcedStyle: semantic
|
786
|
+
SupportedStyles:
|
787
|
+
- only_raise
|
788
|
+
- only_fail
|
789
|
+
- semantic
|
790
|
+
|
791
|
+
Style/SingleLineBlockParams:
|
792
|
+
Description: Enforces the names of some block params.
|
793
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#reduce-blocks
|
794
|
+
Enabled: false
|
795
|
+
Methods:
|
796
|
+
- reduce:
|
797
|
+
- a
|
798
|
+
- e
|
799
|
+
- inject:
|
800
|
+
- a
|
801
|
+
- e
|
802
|
+
|
803
|
+
# Supports --auto-correct
|
804
|
+
Style/SingleLineMethods:
|
805
|
+
Description: Avoid single-line methods.
|
806
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-single-line-methods
|
807
|
+
Enabled: true
|
808
|
+
AllowIfMethodIsEmpty: true
|
809
|
+
|
810
|
+
# Supports --auto-correct
|
811
|
+
Style/SpecialGlobalVars:
|
812
|
+
Description: Avoid Perl-style global variables.
|
813
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-cryptic-perlisms
|
814
|
+
Enabled: true
|
815
|
+
|
816
|
+
Style/HashEachMethods:
|
817
|
+
Description: Enforce use of each_key and each_value Hash methods.
|
818
|
+
StyleGuide: https://docs.rubocop.org/en/latest/cops_style/#stylehasheachmethods
|
819
|
+
Enabled: false
|
820
|
+
|
821
|
+
Style/HashTransformKeys:
|
822
|
+
Description: Enforce use of transform_keys Hash methods. Not suggested for use below ruby 2.5
|
823
|
+
StyleGuide: https://docs.rubocop.org/en/latest/cops_style/#stylehashtransformkeys
|
824
|
+
Enabled: false
|
825
|
+
|
826
|
+
Style/HashTransformValues:
|
827
|
+
Description: Enforce use of transform_values Hash methods. Not suggested for use below ruby 2.5
|
828
|
+
StyleGuide: https://docs.rubocop.org/en/latest/cops_style/#stylehashtransformvalues
|
829
|
+
Enabled: false
|
830
|
+
|
831
|
+
Style/StabbyLambdaParentheses:
|
832
|
+
Description: Check for the usage of parentheses around stabby lambda arguments.
|
833
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#stabby-lambda-with-args
|
834
|
+
Enabled: false
|
835
|
+
EnforcedStyle: require_parentheses
|
836
|
+
SupportedStyles:
|
837
|
+
- require_parentheses
|
838
|
+
- require_no_parentheses
|
839
|
+
|
840
|
+
Style/StderrPuts:
|
841
|
+
Enabled: true
|
842
|
+
|
843
|
+
Style/StringHashKeys:
|
844
|
+
Description: 'Prefer symbols instead of strings as hash keys.'
|
845
|
+
StyleGuide: '#symbols-as-keys'
|
846
|
+
Enabled: false
|
847
|
+
|
848
|
+
# Allow double-quoted strings without interpolation. The customer is always right.
|
849
|
+
Style/StringLiterals:
|
850
|
+
Enabled: false
|
851
|
+
|
852
|
+
# Supports --auto-correct
|
853
|
+
Style/StringLiteralsInInterpolation:
|
854
|
+
Description: Checks if uses of quotes inside expressions in interpolated strings match
|
855
|
+
the configured preference.
|
856
|
+
Enabled: false
|
857
|
+
EnforcedStyle: single_quotes
|
858
|
+
SupportedStyles:
|
859
|
+
- single_quotes
|
860
|
+
- double_quotes
|
861
|
+
|
862
|
+
# Supports --auto-correct
|
863
|
+
Style/StringMethods:
|
864
|
+
Description: Checks if configured preferred methods are used over non-preferred.
|
865
|
+
Enabled: false
|
866
|
+
PreferredMethods:
|
867
|
+
intern: to_sym
|
868
|
+
|
869
|
+
# Supports --auto-correct
|
870
|
+
Style/Strip:
|
871
|
+
Description: Use `strip` instead of `lstrip.rstrip`.
|
872
|
+
Enabled: false
|
873
|
+
|
874
|
+
Style/StructInheritance:
|
875
|
+
Description: Checks for inheritance from Struct.new.
|
876
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-extend-struct-new
|
877
|
+
Enabled: false
|
878
|
+
|
879
|
+
Style/SymbolArray:
|
880
|
+
Description: Use %i or %I for arrays of symbols.
|
881
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-i
|
882
|
+
Enabled: false
|
883
|
+
|
884
|
+
# Supports --auto-correct
|
885
|
+
Style/SymbolLiteral:
|
886
|
+
Description: Use plain symbols instead of string symbols when possible.
|
887
|
+
Enabled: true
|
888
|
+
|
889
|
+
# Supports --auto-correct
|
890
|
+
Style/SymbolProc:
|
891
|
+
Description: Use symbols as procs instead of blocks when possible.
|
892
|
+
Enabled: false
|
893
|
+
AllowedMethods:
|
894
|
+
- respond_to
|
895
|
+
|
896
|
+
Style/TernaryParentheses:
|
897
|
+
Enabled: false
|
898
|
+
|
899
|
+
Style/TrailingBodyOnClass:
|
900
|
+
Description: 'Class body goes below class statement.'
|
901
|
+
Enabled: true
|
902
|
+
|
903
|
+
Style/TrailingBodyOnMethodDefinition:
|
904
|
+
Description: 'Method body goes below definition.'
|
905
|
+
Enabled: true
|
906
|
+
|
907
|
+
Style/TrailingBodyOnModule:
|
908
|
+
Description: 'Module body goes below module statement.'
|
909
|
+
Enabled: true
|
910
|
+
|
911
|
+
Style/TrailingCommaInArguments:
|
912
|
+
Enabled: false
|
913
|
+
|
914
|
+
# Enforce trailing commas (we like 'em!)
|
915
|
+
Style/TrailingCommaInArrayLiteral:
|
916
|
+
Enabled: true
|
917
|
+
EnforcedStyleForMultiline: consistent_comma
|
918
|
+
|
919
|
+
# Enforce trailing commas (we like 'em!)
|
920
|
+
Style/TrailingCommaInHashLiteral:
|
921
|
+
Enabled: true
|
922
|
+
EnforcedStyleForMultiline: consistent_comma
|
923
|
+
|
924
|
+
# Supports --auto-correct
|
925
|
+
Style/TrailingUnderscoreVariable:
|
926
|
+
Description: Checks for the usage of unneeded trailing underscores at the end of parallel
|
927
|
+
variable assignment.
|
928
|
+
Enabled: false
|
929
|
+
|
930
|
+
# Allow question mark accessor methods
|
931
|
+
Style/TrivialAccessors:
|
932
|
+
AllowPredicates: true
|
933
|
+
|
934
|
+
Style/UnlessElse:
|
935
|
+
Description: Do not use unless with else. Rewrite these with the positive case first.
|
936
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-else-with-unless
|
937
|
+
Enabled: true
|
938
|
+
|
939
|
+
# Supports --auto-correct
|
940
|
+
Style/RedundantCapitalW:
|
941
|
+
Description: Checks for %W when interpolation is not needed.
|
942
|
+
Enabled: false
|
943
|
+
|
944
|
+
Style/RedundantCondition:
|
945
|
+
Enabled: false
|
946
|
+
|
947
|
+
# Supports --auto-correct
|
948
|
+
Style/RedundantInterpolation:
|
949
|
+
Description: Checks for strings that are just an interpolated expression.
|
950
|
+
Enabled: false
|
951
|
+
|
952
|
+
# Supports --auto-correct
|
953
|
+
Style/RedundantPercentQ:
|
954
|
+
Description: Checks for %q/%Q when single quotes or double quotes would do.
|
955
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-q
|
956
|
+
Enabled: false
|
957
|
+
|
958
|
+
Style/RedundantSort:
|
959
|
+
Enabled: false
|
960
|
+
|
961
|
+
Style/UnpackFirst:
|
962
|
+
Enabled: false
|
963
|
+
|
964
|
+
# Supports --auto-correct
|
965
|
+
Style/VariableInterpolation:
|
966
|
+
Description: Don't interpolate global, instance and class variables directly in strings.
|
967
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#curlies-interpolate
|
968
|
+
Enabled: false
|
969
|
+
|
970
|
+
# Supports --auto-correct
|
971
|
+
Style/WhenThen:
|
972
|
+
Description: Use when x then ... for one-line cases.
|
973
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#one-line-cases
|
974
|
+
Enabled: false
|
975
|
+
|
976
|
+
# Supports --auto-correct
|
977
|
+
Style/WhileUntilDo:
|
978
|
+
Description: Checks for redundant do after while or until.
|
979
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-multiline-while-do
|
980
|
+
Enabled: true
|
981
|
+
|
982
|
+
# Supports --auto-correct
|
983
|
+
Style/WhileUntilModifier:
|
984
|
+
Description: Favor modifier while/until usage when you have a single-line body.
|
985
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#while-as-a-modifier
|
986
|
+
Enabled: false
|
987
|
+
|
988
|
+
# Supports --auto-correct
|
989
|
+
Style/WordArray:
|
990
|
+
Description: Use %w or %W for arrays of words.
|
991
|
+
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#percent-w
|
992
|
+
Enabled: false
|
993
|
+
MinSize: 0
|
994
|
+
WordRegex: !ruby/regexp /\A[\p{Word}]+\z/
|
995
|
+
|
996
|
+
Style/YodaCondition:
|
997
|
+
Enabled: false
|
998
|
+
|
999
|
+
Style/ZeroLengthPredicate:
|
1000
|
+
Description: 'Use #empty? when testing for objects of length 0.'
|
1001
|
+
Enabled: false
|