rubocop-shopify 2.0.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/rubocop.yml +479 -805
  3. metadata +6 -6
data/rubocop.yml CHANGED
@@ -1,1023 +1,697 @@
1
+ inherit_mode:
2
+ merge:
3
+ - Exclude
4
+ - Include
5
+
1
6
  AllCops:
2
- Exclude:
3
- - 'db/schema.rb'
4
- DisabledByDefault: true
5
7
  StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/
6
8
 
7
- Lint/AssignmentInCondition:
9
+ Bundler/OrderedGems:
10
+ Enabled: false
11
+
12
+ Gemspec/DateAssignment:
8
13
  Enabled: true
9
14
 
10
- Layout/AccessModifierIndentation:
11
- EnforcedStyle: indent
12
- SupportedStyles:
13
- - outdent
14
- - indent
15
- IndentationWidth:
15
+ Gemspec/RequiredRubyVersion:
16
+ Enabled: false
16
17
 
17
- Style/Alias:
18
- EnforcedStyle: prefer_alias_method
19
- SupportedStyles:
20
- - prefer_alias
21
- - prefer_alias_method
18
+ Gemspec/RequireMFA:
19
+ Enabled: false
22
20
 
23
21
  Layout/ArgumentAlignment:
24
22
  EnforcedStyle: with_fixed_indentation
25
- SupportedStyles:
26
- - with_first_argument
27
- - with_fixed_indentation
23
+
24
+ Layout/CaseIndentation:
25
+ EnforcedStyle: end
26
+
27
+ Layout/EmptyLineAfterGuardClause:
28
+ Enabled: false
29
+
30
+ Layout/EndAlignment:
31
+ EnforcedStyleAlignWith: variable
32
+
33
+ Layout/FirstArgumentIndentation:
34
+ Enabled: false
35
+
36
+ Layout/FirstArrayElementIndentation:
37
+ EnforcedStyle: consistent
38
+
39
+ Layout/FirstHashElementIndentation:
40
+ EnforcedStyle: consistent
28
41
 
29
42
  Layout/HashAlignment:
30
- EnforcedHashRocketStyle: key
31
- EnforcedColonStyle: key
32
43
  EnforcedLastArgumentHashStyle: ignore_implicit
33
- SupportedLastArgumentHashStyles:
34
- - always_inspect
35
- - always_ignore
36
- - ignore_implicit
37
- - ignore_explicit
44
+
45
+ Layout/LineEndStringConcatenationIndentation:
46
+ Enabled: true
47
+ EnforcedStyle: indented
48
+
49
+ Layout/LineLength:
50
+ IgnoreCopDirectives: false
51
+ IgnoredPatterns:
52
+ - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
53
+
54
+ Layout/MultilineMethodCallIndentation:
55
+ EnforcedStyle: indented
56
+ IndentationWidth: 2
57
+
58
+ Layout/MultilineOperationIndentation:
59
+ EnforcedStyle: indented
38
60
 
39
61
  Layout/ParameterAlignment:
40
62
  EnforcedStyle: with_fixed_indentation
41
- SupportedStyles:
42
- - with_first_parameter
43
- - with_fixed_indentation
44
- IndentationWidth:
45
63
 
46
- Style/AndOr:
47
- EnforcedStyle: always
48
- SupportedStyles:
49
- - always
50
- - conditionals
51
-
52
- Style/BarePercentLiterals:
53
- EnforcedStyle: bare_percent
54
- SupportedStyles:
55
- - percent_q
56
- - bare_percent
57
-
58
- Style/BlockDelimiters:
59
- EnforcedStyle: line_count_based
60
- SupportedStyles:
61
- - line_count_based
62
- - semantic
63
- - braces_for_chaining
64
- ProceduralMethods:
65
- - benchmark
66
- - bm
67
- - bmbm
68
- - create
69
- - each_with_object
70
- - measure
71
- - new
72
- - realtime
73
- - tap
74
- - with_object
75
- FunctionalMethods:
76
- - let
77
- - let!
78
- - subject
79
- - watch
80
- IgnoredMethods:
81
- - lambda
82
- - proc
83
- - it
64
+ Layout/SpaceBeforeBrackets:
65
+ Enabled: true
84
66
 
85
- Layout/CaseIndentation:
86
- EnforcedStyle: end
87
- SupportedStyles:
88
- - case
89
- - end
90
- IndentOneStep: false
91
- IndentationWidth:
92
-
93
- Style/ClassAndModuleChildren:
94
- EnforcedStyle: nested
95
- SupportedStyles:
96
- - nested
97
- - compact
98
-
99
- Style/ClassCheck:
100
- EnforcedStyle: is_a?
101
- SupportedStyles:
102
- - is_a?
103
- - kind_of?
67
+ Lint/AmbiguousAssignment:
68
+ Enabled: false
104
69
 
105
- Style/CommandLiteral:
106
- EnforcedStyle: percent_x
107
- SupportedStyles:
108
- - backticks
109
- - percent_x
110
- - mixed
111
- AllowInnerBackticks: false
112
-
113
- Style/CommentAnnotation:
114
- Keywords:
115
- - TODO
116
- - FIXME
117
- - OPTIMIZE
118
- - HACK
119
- - REVIEW
120
-
121
- Style/ConditionalAssignment:
122
- EnforcedStyle: assign_to_condition
123
- SupportedStyles:
124
- - assign_to_condition
125
- - assign_inside_condition
126
- SingleLineConditionsOnly: true
127
-
128
- Layout/DotPosition:
129
- EnforcedStyle: leading
130
- SupportedStyles:
131
- - leading
132
- - trailing
133
-
134
- Style/EmptyElse:
135
- EnforcedStyle: both
136
- SupportedStyles:
137
- - empty
138
- - nil
139
- - both
140
-
141
- Layout/EmptyLineBetweenDefs:
142
- AllowAdjacentOneLineDefs: false
143
-
144
- Layout/EmptyLinesAroundBlockBody:
145
- EnforcedStyle: no_empty_lines
146
- SupportedStyles:
147
- - empty_lines
148
- - no_empty_lines
149
-
150
- Layout/EmptyLinesAroundClassBody:
151
- EnforcedStyle: no_empty_lines
152
- SupportedStyles:
153
- - empty_lines
154
- - empty_lines_except_namespace
155
- - no_empty_lines
156
-
157
- Layout/EmptyLinesAroundModuleBody:
158
- EnforcedStyle: no_empty_lines
159
- SupportedStyles:
160
- - empty_lines
161
- - empty_lines_except_namespace
162
- - no_empty_lines
163
-
164
- Layout/ExtraSpacing:
165
- AllowForAlignment: true
166
- ForceEqualSignAlignment: false
167
-
168
- Naming/FileName:
169
- Exclude: []
170
- ExpectMatchingDefinition: false
171
- Regex:
172
- IgnoreExecutableScripts: true
173
-
174
- Style/For:
175
- EnforcedStyle: each
176
- SupportedStyles:
177
- - for
178
- - each
179
-
180
- Style/FormatString:
181
- EnforcedStyle: format
182
- SupportedStyles:
183
- - format
184
- - sprintf
185
- - percent
70
+ Lint/AmbiguousBlockAssociation:
71
+ Enabled: false
186
72
 
187
- Style/FrozenStringLiteralComment:
188
- Details: >-
189
- Add `# frozen_string_literal: true` to the top of the file. Frozen string
190
- literals will become the default in a future Ruby version, and we want to
191
- make sure we're ready.
192
- EnforcedStyle: always
193
- SupportedStyles:
194
- - always
195
- - never
196
- SafeAutoCorrect: true
73
+ Lint/AmbiguousOperatorPrecedence:
74
+ Enabled: false
197
75
 
198
- Style/GlobalVars:
199
- AllowedVariables: []
76
+ Lint/AmbiguousRange:
77
+ Enabled: false
200
78
 
201
- Style/HashSyntax:
202
- EnforcedStyle: ruby19
203
- SupportedStyles:
204
- - ruby19
205
- - hash_rockets
206
- - no_mixed_keys
207
- - ruby19_no_mixed_keys
208
- UseHashRocketsWithSymbolValues: false
209
- PreferHashRocketsForNonAlnumEndingSymbols: false
79
+ Lint/BooleanSymbol:
80
+ Enabled: false
210
81
 
211
- Layout/IndentationConsistency:
212
- EnforcedStyle: normal
213
- SupportedStyles:
214
- - normal
215
- - rails
82
+ Lint/ConstantDefinitionInBlock:
83
+ Enabled: false
216
84
 
217
- Layout/IndentationWidth:
218
- Width: 2
85
+ Lint/DeprecatedConstants:
86
+ Enabled: false
219
87
 
220
- Layout/FirstArrayElementIndentation:
221
- EnforcedStyle: consistent
222
- SupportedStyles:
223
- - special_inside_parentheses
224
- - consistent
225
- - align_brackets
226
- IndentationWidth:
88
+ Lint/DisjunctiveAssignmentInConstructor:
89
+ Enabled: false
227
90
 
228
- Layout/AssignmentIndentation:
229
- IndentationWidth:
91
+ Lint/DuplicateBranch:
92
+ Enabled: false
230
93
 
231
- Layout/FirstHashElementIndentation:
232
- EnforcedStyle: consistent
233
- SupportedStyles:
234
- - special_inside_parentheses
235
- - consistent
236
- - align_braces
237
- IndentationWidth:
238
-
239
- Style/LambdaCall:
240
- EnforcedStyle: call
241
- SupportedStyles:
242
- - call
243
- - braces
244
-
245
- Style/Next:
246
- EnforcedStyle: skip_modifier_ifs
247
- MinBodyLength: 3
248
- SupportedStyles:
249
- - skip_modifier_ifs
250
- - always
251
-
252
- Style/NonNilCheck:
253
- IncludeSemanticChanges: false
94
+ Lint/DuplicateCaseCondition:
95
+ Enabled: false
254
96
 
255
- Style/MethodCallWithArgsParentheses:
256
- Enabled: true
257
- IgnoreMacros: true
258
- IgnoredMethods:
259
- - require
260
- - require_relative
261
- - require_dependency
262
- - yield
263
- - raise
264
- - puts
265
- Exclude:
266
- - '**/Gemfile'
267
-
268
- Style/MethodDefParentheses:
269
- EnforcedStyle: require_parentheses
270
- SupportedStyles:
271
- - require_parentheses
272
- - require_no_parentheses
273
- - require_no_parentheses_except_multiline
274
-
275
- Naming/MethodName:
276
- EnforcedStyle: snake_case
277
- SupportedStyles:
278
- - snake_case
279
- - camelCase
280
-
281
- Layout/MultilineArrayBraceLayout:
282
- EnforcedStyle: symmetrical
283
- SupportedStyles:
284
- - symmetrical
285
- - new_line
286
- - same_line
287
-
288
- Layout/MultilineHashBraceLayout:
289
- EnforcedStyle: symmetrical
290
- SupportedStyles:
291
- - symmetrical
292
- - new_line
293
- - same_line
294
-
295
- Layout/MultilineMethodCallBraceLayout:
296
- EnforcedStyle: symmetrical
297
- SupportedStyles:
298
- - symmetrical
299
- - new_line
300
- - same_line
97
+ Lint/DuplicateElsifCondition:
98
+ Enabled: false
301
99
 
302
- Layout/MultilineMethodCallIndentation:
303
- EnforcedStyle: indented
304
- SupportedStyles:
305
- - aligned
306
- - indented
307
- - indented_relative_to_receiver
308
- IndentationWidth: 2
100
+ Lint/DuplicateRegexpCharacterClassElement:
101
+ Enabled: false
309
102
 
310
- Layout/MultilineMethodDefinitionBraceLayout:
311
- EnforcedStyle: symmetrical
312
- SupportedStyles:
313
- - symmetrical
314
- - new_line
315
- - same_line
103
+ Lint/DuplicateRequire:
104
+ Enabled: false
316
105
 
317
- Style/NumericLiteralPrefix:
318
- EnforcedOctalStyle: zero_only
319
- SupportedOctalStyles:
320
- - zero_with_o
321
- - zero_only
106
+ Lint/DuplicateRescueException:
107
+ Enabled: false
322
108
 
323
- Style/ParenthesesAroundCondition:
324
- AllowSafeAssignment: true
109
+ Lint/EmptyBlock:
110
+ Enabled: false
325
111
 
326
- Style/PercentQLiterals:
327
- EnforcedStyle: lower_case_q
328
- SupportedStyles:
329
- - lower_case_q
330
- - upper_case_q
112
+ Lint/EmptyClass:
113
+ Enabled: false
331
114
 
332
- Naming/PredicateName:
333
- NamePrefix:
334
- - is_
335
- ForbiddenPrefixes:
336
- - is_
337
- AllowedMethods:
338
- - is_a?
339
- Exclude:
340
- - 'spec/**/*'
115
+ Lint/EmptyConditionalBody:
116
+ Enabled: false
341
117
 
342
- Style/PreferredHashMethods:
343
- EnforcedStyle: short
344
- SupportedStyles:
345
- - short
346
- - verbose
118
+ Lint/EmptyExpression:
119
+ Enabled: false
347
120
 
348
- Style/RaiseArgs:
349
- EnforcedStyle: exploded
350
- SupportedStyles:
351
- - compact
352
- - exploded
121
+ Lint/EmptyFile:
122
+ Enabled: false
353
123
 
354
- Style/RedundantReturn:
355
- AllowMultipleReturnValues: false
124
+ Lint/EmptyInPattern:
125
+ Enabled: false
356
126
 
357
- Style/RegexpLiteral:
358
- EnforcedStyle: mixed
359
- SupportedStyles:
360
- - slashes
361
- - percent_r
362
- - mixed
363
- AllowInnerSlashes: false
364
-
365
- Style/SafeNavigation:
366
- ConvertCodeThatCanStartToReturnNil: false
367
- Enabled: true
127
+ Lint/EmptyWhen:
128
+ Enabled: false
368
129
 
369
- Lint/SafeNavigationChain:
370
- Enabled: true
130
+ Lint/ErbNewArguments:
131
+ Enabled: false
371
132
 
372
- Style/Semicolon:
373
- AllowAsExpressionSeparator: false
133
+ Lint/FloatComparison:
134
+ Enabled: false
374
135
 
375
- Style/SignalException:
376
- EnforcedStyle: only_raise
377
- SupportedStyles:
378
- - only_raise
379
- - only_fail
380
- - semantic
136
+ Lint/HashCompareByIdentity:
137
+ Enabled: false
381
138
 
382
- Style/SingleLineMethods:
383
- AllowIfMethodIsEmpty: true
139
+ Lint/IdentityComparison:
140
+ Enabled: false
384
141
 
385
- Layout/SpaceBeforeFirstArg:
386
- AllowForAlignment: true
142
+ Lint/IncompatibleIoSelectWithFiberScheduler:
143
+ Enabled: false
387
144
 
388
- Style/SpecialGlobalVars:
389
- EnforcedStyle: use_english_names
390
- SupportedStyles:
391
- - use_perl_names
392
- - use_english_names
145
+ Lint/InterpolationCheck:
146
+ Enabled: false
393
147
 
394
- Style/StabbyLambdaParentheses:
395
- EnforcedStyle: require_parentheses
396
- SupportedStyles:
397
- - require_parentheses
398
- - require_no_parentheses
148
+ Lint/LambdaWithoutLiteralBlock:
149
+ Enabled: false
399
150
 
400
- Style/StringLiterals:
401
- Enabled: true
402
- EnforcedStyle: double_quotes
403
- ConsistentQuotesInMultiline: false
151
+ Lint/MissingCopEnableDirective:
152
+ Enabled: false
404
153
 
405
- Style/StringLiteralsInInterpolation:
406
- Enabled: true
407
- EnforcedStyle: double_quotes
154
+ Lint/MixedRegexpCaptureTypes:
155
+ Enabled: false
408
156
 
409
- Layout/SpaceAroundBlockParameters:
410
- EnforcedStyleInsidePipes: no_space
411
- SupportedStylesInsidePipes:
412
- - space
413
- - no_space
414
-
415
- Layout/SpaceAroundEqualsInParameterDefault:
416
- EnforcedStyle: space
417
- SupportedStyles:
418
- - space
419
- - no_space
420
-
421
- Layout/SpaceAroundOperators:
422
- AllowForAlignment: true
423
-
424
- Layout/SpaceBeforeBlockBraces:
425
- EnforcedStyle: space
426
- EnforcedStyleForEmptyBraces: space
427
- SupportedStyles:
428
- - space
429
- - no_space
430
-
431
- Layout/SpaceInsideBlockBraces:
432
- EnforcedStyle: space
433
- SupportedStyles:
434
- - space
435
- - no_space
436
- EnforcedStyleForEmptyBraces: no_space
437
- SpaceBeforeBlockParameters: true
438
-
439
- Layout/SpaceInsideHashLiteralBraces:
440
- EnforcedStyle: space
441
- EnforcedStyleForEmptyBraces: no_space
442
- SupportedStyles:
443
- - space
444
- - no_space
445
- - compact
446
-
447
- Layout/SpaceInsideStringInterpolation:
448
- EnforcedStyle: no_space
449
- SupportedStyles:
450
- - space
451
- - no_space
452
-
453
- Style/SymbolProc:
454
- IgnoredMethods:
455
- - respond_to
456
- - define_method
457
-
458
- Style/TernaryParentheses:
459
- EnforcedStyle: require_no_parentheses
460
- SupportedStyles:
461
- - require_parentheses
462
- - require_no_parentheses
463
- AllowSafeAssignment: true
464
-
465
- Layout/TrailingEmptyLines:
466
- EnforcedStyle: final_newline
467
- SupportedStyles:
468
- - final_newline
469
- - final_blank_line
470
-
471
- Style/TrivialAccessors:
472
- ExactNameMatch: true
473
- AllowPredicates: true
474
- AllowDSLWriters: false
475
- IgnoreClassMethods: false
476
- AllowedMethods:
477
- - to_ary
478
- - to_a
479
- - to_c
480
- - to_enum
481
- - to_h
482
- - to_hash
483
- - to_i
484
- - to_int
485
- - to_io
486
- - to_open
487
- - to_path
488
- - to_proc
489
- - to_r
490
- - to_regexp
491
- - to_str
492
- - to_s
493
- - to_sym
494
-
495
- Naming/VariableName:
496
- EnforcedStyle: snake_case
497
- SupportedStyles:
498
- - snake_case
499
- - camelCase
500
-
501
- Style/WhileUntilModifier:
502
- Enabled: true
157
+ Lint/MultipleComparison:
158
+ Enabled: false
503
159
 
504
- Metrics/BlockNesting:
505
- Max: 3
160
+ Lint/NestedPercentLiteral:
161
+ Enabled: false
506
162
 
507
- Layout/LineLength:
508
- Max: 120
509
- AllowHeredoc: true
510
- AllowURI: true
511
- URISchemes:
512
- - http
513
- - https
514
- IgnoreCopDirectives: false
515
- IgnoredPatterns:
516
- - '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)'
163
+ Lint/NoReturnInBeginEndBlocks:
164
+ Enabled: false
517
165
 
518
- Metrics/ParameterLists:
519
- Max: 5
520
- CountKeywordArgs: false
166
+ Lint/NonDeterministicRequireOrder:
167
+ Enabled: false
521
168
 
522
- Layout/BlockAlignment:
523
- EnforcedStyleAlignWith: either
524
- SupportedStylesAlignWith:
525
- - either
526
- - start_of_block
527
- - start_of_line
169
+ Lint/NumberedParameterAssignment:
170
+ Enabled: false
528
171
 
529
- Layout/EndAlignment:
530
- EnforcedStyleAlignWith: variable
531
- SupportedStylesAlignWith:
532
- - keyword
533
- - variable
534
- - start_of_line
535
-
536
- Layout/DefEndAlignment:
537
- EnforcedStyleAlignWith: start_of_line
538
- SupportedStylesAlignWith:
539
- - start_of_line
540
- - def
541
-
542
- Lint/InheritException:
543
- EnforcedStyle: runtime_error
544
- SupportedStyles:
545
- - runtime_error
546
- - standard_error
547
-
548
- Lint/UnusedBlockArgument:
549
- IgnoreEmptyBlocks: true
550
- AllowUnusedKeywordArguments: false
172
+ Lint/OrAssignmentToConstant:
173
+ Enabled: false
551
174
 
552
- Lint/UnusedMethodArgument:
553
- AllowUnusedKeywordArguments: false
554
- IgnoreEmptyMethods: true
175
+ Lint/OutOfRangeRegexpRef:
176
+ Enabled: false
555
177
 
556
- Naming/AccessorMethodName:
557
- Enabled: true
178
+ Lint/RaiseException:
179
+ Enabled: false
558
180
 
559
- Layout/ArrayAlignment:
560
- Enabled: true
181
+ Lint/RedundantDirGlobSort:
182
+ Enabled: false
561
183
 
562
- Style/ArrayJoin:
563
- Enabled: true
184
+ Lint/RedundantRequireStatement:
185
+ Enabled: false
564
186
 
565
- Naming/AsciiIdentifiers:
566
- Enabled: true
187
+ Lint/RedundantSafeNavigation:
188
+ Enabled: false
567
189
 
568
- Style/Attr:
569
- Enabled: true
190
+ Lint/RedundantWithIndex:
191
+ Enabled: false
570
192
 
571
- Style/BeginBlock:
572
- Enabled: true
193
+ Lint/RedundantWithObject:
194
+ Enabled: false
573
195
 
574
- Style/BlockComments:
575
- Enabled: true
196
+ Lint/RegexpAsCondition:
197
+ Enabled: false
576
198
 
577
- Layout/BlockEndNewline:
199
+ Lint/RequireRelativeSelfPath:
578
200
  Enabled: true
579
201
 
580
- Style/CaseEquality:
581
- Enabled: true
582
- AllowOnConstant: true
202
+ Lint/RescueType:
203
+ Enabled: false
583
204
 
584
- Style/CharacterLiteral:
585
- Enabled: true
205
+ Lint/ReturnInVoidContext:
206
+ Enabled: false
586
207
 
587
- Naming/ClassAndModuleCamelCase:
588
- Enabled: true
208
+ Lint/SafeNavigationConsistency:
209
+ Enabled: false
589
210
 
590
- Style/ClassMethods:
591
- Enabled: true
211
+ Lint/SafeNavigationWithEmpty:
212
+ Enabled: false
592
213
 
593
- Style/ClassVars:
594
- Enabled: true
214
+ Lint/ScriptPermission:
215
+ Enabled: false
595
216
 
596
- Layout/ClosingParenthesisIndentation:
597
- Enabled: true
217
+ Lint/SelfAssignment:
218
+ Enabled: false
598
219
 
599
- Style/ColonMethodCall:
600
- Enabled: true
220
+ Lint/SendWithMixinArgument:
221
+ Enabled: false
601
222
 
602
- Layout/CommentIndentation:
603
- Enabled: true
223
+ Lint/ShadowedArgument:
224
+ Enabled: false
604
225
 
605
- Naming/ConstantName:
606
- Enabled: true
226
+ Lint/ShadowingOuterLocalVariable:
227
+ Enabled: false
607
228
 
608
- Style/DateTime:
609
- Enabled: true
229
+ Lint/StructNewOverride:
230
+ Enabled: false
610
231
 
611
- Style/DefWithParentheses:
612
- Enabled: true
232
+ Lint/SymbolConversion:
233
+ Enabled: false
613
234
 
614
- Style/EachForSimpleLoop:
615
- Enabled: true
235
+ Lint/ToEnumArguments:
236
+ Enabled: false
616
237
 
617
- Style/EachWithObject:
618
- Enabled: true
238
+ Lint/ToJSON:
239
+ Enabled: false
619
240
 
620
- Layout/ElseAlignment:
621
- Enabled: true
241
+ Lint/TopLevelReturnWithArgument:
242
+ Enabled: false
622
243
 
623
- Style/EmptyCaseCondition:
624
- Enabled: true
244
+ Lint/TrailingCommaInAttributeDeclaration:
245
+ Enabled: false
625
246
 
626
- Layout/EmptyLines:
627
- Enabled: true
247
+ Lint/TripleQuotes:
248
+ Enabled: false
628
249
 
629
- Layout/EmptyLinesAroundAccessModifier:
630
- Enabled: true
250
+ Lint/UnexpectedBlockArity:
251
+ Enabled: false
631
252
 
632
- Layout/EmptyLinesAroundMethodBody:
633
- Enabled: true
253
+ Lint/UnmodifiedReduceAccumulator:
254
+ Enabled: false
634
255
 
635
- Style/EmptyLiteral:
636
- Enabled: true
256
+ Lint/UnreachableLoop:
257
+ Enabled: false
637
258
 
638
- Style/EndBlock:
639
- Enabled: true
259
+ Lint/UnusedMethodArgument:
260
+ Enabled: false
640
261
 
641
- Layout/EndOfLine:
642
- Enabled: true
262
+ Lint/UriEscapeUnescape:
263
+ Enabled: false
643
264
 
644
- Style/EvenOdd:
645
- Enabled: true
265
+ Lint/UriRegexp:
266
+ Enabled: false
646
267
 
647
- Layout/InitialIndentation:
648
- Enabled: true
268
+ Lint/UselessMethodDefinition:
269
+ Enabled: false
649
270
 
650
- Lint/FlipFlop:
271
+ Lint/UselessRuby2Keywords:
651
272
  Enabled: true
652
273
 
653
- Style/IfInsideElse:
654
- Enabled: true
274
+ Lint/UselessTimes:
275
+ Enabled: false
655
276
 
656
- Style/IfUnlessModifierOfIfUnless:
657
- Enabled: true
277
+ Metrics/AbcSize:
278
+ Enabled: false
658
279
 
659
- Style/IfWithSemicolon:
660
- Enabled: true
280
+ Metrics/BlockLength:
281
+ Enabled: false
661
282
 
662
- Style/IdenticalConditionalBranches:
663
- Enabled: true
283
+ Metrics/ClassLength:
284
+ Enabled: false
664
285
 
665
- Layout/IndentationStyle:
666
- Enabled: true
286
+ Metrics/CyclomaticComplexity:
287
+ Enabled: false
667
288
 
668
- Style/InfiniteLoop:
669
- Enabled: true
289
+ Metrics/MethodLength:
290
+ Enabled: false
670
291
 
671
- Layout/LeadingCommentSpace:
672
- Enabled: true
292
+ Metrics/ModuleLength:
293
+ Enabled: false
673
294
 
674
- Style/LineEndConcatenation:
675
- Enabled: true
295
+ Metrics/ParameterLists:
296
+ CountKeywordArgs: false
676
297
 
677
- Style/MethodCallWithoutArgsParentheses:
678
- Enabled: true
298
+ Metrics/PerceivedComplexity:
299
+ Enabled: false
679
300
 
680
- Lint/MissingSuper:
681
- Enabled: true
301
+ Migration/DepartmentName:
302
+ Enabled: false
682
303
 
683
- Style/MissingRespondToMissing:
684
- Enabled: true
304
+ Naming/BlockForwarding:
305
+ Enabled: false
685
306
 
686
- Layout/MultilineBlockLayout:
687
- Enabled: true
307
+ Naming/BlockParameterName:
308
+ Enabled: false
688
309
 
689
- Style/MultilineIfThen:
690
- Enabled: true
310
+ Naming/HeredocDelimiterCase:
311
+ Enabled: false
691
312
 
692
- Style/MultilineMemoization:
693
- Enabled: true
313
+ Naming/HeredocDelimiterNaming:
314
+ Enabled: false
694
315
 
695
- Style/MultilineTernaryOperator:
316
+ Naming/InclusiveLanguage:
696
317
  Enabled: true
318
+ FlaggedTerms:
319
+ master:
320
+ Suggestions:
321
+ - main
322
+ - primary
323
+ - leader
324
+ AllowedRegex:
325
+ - !ruby/regexp '/master[_\s\.]key/' # Rails master key
326
+ - 'blob/master/'
327
+ - 'origin/master'
328
+ - 'mastercard'
697
329
 
698
- Style/NegatedIf:
699
- Enabled: true
330
+ Naming/MemoizedInstanceVariableName:
331
+ Enabled: false
700
332
 
701
- Style/NegatedWhile:
702
- Enabled: true
333
+ Naming/MethodParameterName:
334
+ Enabled: false
703
335
 
704
- Style/NestedModifier:
705
- Enabled: true
336
+ Naming/PredicateName:
337
+ NamePrefix:
338
+ - is_
339
+ ForbiddenPrefixes:
340
+ - is_
706
341
 
707
- Style/NestedParenthesizedCalls:
708
- Enabled: true
342
+ Naming/RescuedExceptionsVariableName:
343
+ Enabled: false
709
344
 
710
- Style/NestedTernaryOperator:
711
- Enabled: true
345
+ Naming/VariableNumber:
346
+ Enabled: false
712
347
 
713
- Style/NilComparison:
714
- Enabled: true
348
+ Security/MarshalLoad:
349
+ Enabled: false
715
350
 
716
- Style/Not:
351
+ Security/IoMethods:
717
352
  Enabled: true
718
353
 
719
- Style/OneLineConditional:
720
- Enabled: true
354
+ Security/YAMLLoad:
355
+ Enabled: false
721
356
 
722
- Naming/BinaryOperatorParameterName:
723
- Enabled: true
357
+ Style/AccessModifierDeclarations:
358
+ Enabled: false
724
359
 
725
- Style/OptionalArguments:
726
- Enabled: true
360
+ Style/AccessorGrouping:
361
+ Enabled: false
727
362
 
728
- Style/ParallelAssignment:
729
- Enabled: true
363
+ Style/Alias:
364
+ EnforcedStyle: prefer_alias_method
730
365
 
731
- Style/PerlBackrefs:
732
- Enabled: true
366
+ Style/AndOr:
367
+ EnforcedStyle: always
733
368
 
734
- Style/Proc:
735
- Enabled: true
369
+ Style/ArgumentsForwarding:
370
+ Enabled: false
736
371
 
737
- Style/RedundantBegin:
738
- Enabled: true
372
+ Style/AsciiComments:
373
+ Enabled: false
739
374
 
740
- Style/RedundantException:
741
- Enabled: true
375
+ Style/BisectedAttrAccessor:
376
+ Enabled: false
742
377
 
743
- Style/RedundantFreeze:
744
- Enabled: true
378
+ Style/CaseEquality:
379
+ AllowOnConstant: true
745
380
 
746
- Style/RedundantParentheses:
747
- Enabled: true
381
+ Style/CaseLikeIf:
382
+ Enabled: false
748
383
 
749
- Style/RedundantSelf:
750
- Enabled: true
384
+ Style/ClassEqualityComparison:
385
+ Enabled: false
751
386
 
752
- Style/RedundantSortBy:
753
- Enabled: true
387
+ Style/CollectionCompact:
388
+ Enabled: false
754
389
 
755
- Layout/RescueEnsureAlignment:
756
- Enabled: true
390
+ Style/ColonMethodDefinition:
391
+ Enabled: false
757
392
 
758
- Style/RescueModifier:
759
- Enabled: true
393
+ Style/CombinableLoops:
394
+ Enabled: false
760
395
 
761
- Style/Sample:
762
- Enabled: true
396
+ Style/CommandLiteral:
397
+ EnforcedStyle: percent_x
763
398
 
764
- Style/SelfAssignment:
765
- Enabled: true
399
+ Style/CommentedKeyword:
400
+ Enabled: false
766
401
 
767
- Layout/SpaceAfterColon:
402
+ Style/DateTime:
768
403
  Enabled: true
769
404
 
770
- Layout/SpaceAfterComma:
771
- Enabled: true
405
+ Style/Dir:
406
+ Enabled: false
772
407
 
773
- Layout/SpaceAfterMethodName:
774
- Enabled: true
408
+ Style/DocumentDynamicEvalDefinition:
409
+ Enabled: false
775
410
 
776
- Layout/SpaceAfterNot:
777
- Enabled: true
411
+ Style/Documentation:
412
+ Enabled: false
778
413
 
779
- Layout/SpaceAfterSemicolon:
780
- Enabled: true
414
+ Style/DoubleCopDisableDirective:
415
+ Enabled: false
781
416
 
782
- Layout/SpaceBeforeComma:
783
- Enabled: true
417
+ Style/DoubleNegation:
418
+ Enabled: false
784
419
 
785
- Layout/SpaceBeforeComment:
786
- Enabled: true
420
+ Style/EmptyBlockParameter:
421
+ Enabled: false
787
422
 
788
- Layout/SpaceBeforeSemicolon:
789
- Enabled: true
423
+ Style/EmptyLambdaParameter:
424
+ Enabled: false
790
425
 
791
- Layout/SpaceAroundKeyword:
792
- Enabled: true
426
+ Style/EmptyMethod:
427
+ Enabled: false
793
428
 
794
- Layout/SpaceInsideArrayPercentLiteral:
795
- Enabled: true
429
+ Style/Encoding:
430
+ Enabled: false
796
431
 
797
- Layout/SpaceInsidePercentLiteralDelimiters:
798
- Enabled: true
432
+ Style/EndlessMethod:
433
+ Enabled: false
799
434
 
800
- Layout/SpaceInsideArrayLiteralBrackets:
801
- Enabled: true
435
+ Style/EvalWithLocation:
436
+ Enabled: false
802
437
 
803
- Layout/SpaceInsideParens:
804
- Enabled: true
438
+ Style/ExpandPathArguments:
439
+ Enabled: false
805
440
 
806
- Layout/SpaceInsideRangeLiteral:
441
+ Style/ExplicitBlockArgument:
807
442
  Enabled: true
808
443
 
809
- Style/SymbolLiteral:
810
- Enabled: true
444
+ Style/ExponentialNotation:
445
+ Enabled: false
811
446
 
812
- Layout/TrailingWhitespace:
813
- Enabled: true
447
+ Style/FileRead:
448
+ Enabled: false
814
449
 
815
- Style/UnlessElse:
816
- Enabled: true
450
+ Style/FileWrite:
451
+ Enabled: false
817
452
 
818
- Style/RedundantCapitalW:
819
- Enabled: true
453
+ Style/FloatDivision:
454
+ Enabled: false
820
455
 
821
- Style/RedundantInterpolation:
822
- Enabled: true
456
+ Style/FormatStringToken:
457
+ Enabled: false
823
458
 
824
- Style/RedundantPercentQ:
825
- Enabled: true
459
+ Style/FrozenStringLiteralComment:
460
+ SafeAutoCorrect: true
461
+ Details: 'Add `# frozen_string_literal: true` to the top of the file. Frozen string
462
+ literals will become the default in a future Ruby version, and we want to make
463
+ sure we''re ready.'
826
464
 
827
- Style/VariableInterpolation:
828
- Enabled: true
465
+ Style/GlobalStdStream:
466
+ Enabled: false
829
467
 
830
- Style/WhenThen:
831
- Enabled: true
468
+ Style/GuardClause:
469
+ Enabled: false
832
470
 
833
- Style/WhileUntilDo:
834
- Enabled: true
471
+ Style/HashAsLastArrayItem:
472
+ Enabled: false
835
473
 
836
- Style/ZeroLengthPredicate:
837
- Enabled: true
474
+ Style/HashConversion:
475
+ Enabled: false
838
476
 
839
- Layout/HeredocIndentation:
840
- Enabled: true
477
+ Style/HashEachMethods:
478
+ Enabled: false
841
479
 
842
- Lint/AmbiguousOperator:
843
- Enabled: true
480
+ Style/HashExcept:
481
+ Enabled: false
844
482
 
845
- Lint/AmbiguousRegexpLiteral:
846
- Enabled: true
483
+ Style/HashLikeCase:
484
+ Enabled: false
847
485
 
848
- Lint/CircularArgumentReference:
849
- Enabled: true
486
+ Style/HashTransformKeys:
487
+ Enabled: false
850
488
 
851
- Layout/ConditionPosition:
852
- Enabled: true
489
+ Style/HashTransformValues:
490
+ Enabled: false
853
491
 
854
- Lint/Debugger:
855
- Enabled: true
492
+ Style/IfUnlessModifier:
493
+ Enabled: false
856
494
 
857
- Lint/DeprecatedClassMethods:
858
- Enabled: true
495
+ Style/IfWithBooleanLiteralBranches:
496
+ Enabled: false
859
497
 
860
- Lint/DuplicateMethods:
498
+ Style/InPatternThen:
861
499
  Enabled: true
862
500
 
863
- Lint/DuplicateHashKey:
864
- Enabled: true
501
+ Style/InverseMethods:
502
+ Enabled: false
865
503
 
866
- Lint/EachWithObjectArgument:
867
- Enabled: true
504
+ Style/KeywordParametersOrder:
505
+ Enabled: false
868
506
 
869
- Lint/ElseLayout:
870
- Enabled: true
507
+ Style/Lambda:
508
+ Enabled: false
871
509
 
872
- Lint/EmptyEnsure:
873
- Enabled: true
510
+ Style/MapToHash:
511
+ Enabled: false
874
512
 
875
- Lint/EmptyInterpolation:
513
+ Style/MethodCallWithArgsParentheses:
876
514
  Enabled: true
515
+ IgnoredMethods:
516
+ - require
517
+ - require_relative
518
+ - require_dependency
519
+ - yield
520
+ - raise
521
+ - puts
522
+ Exclude:
523
+ - "/**/Gemfile"
877
524
 
878
- Lint/EnsureReturn:
879
- Enabled: true
525
+ Style/MinMax:
526
+ Enabled: false
880
527
 
881
- Lint/FloatOutOfRange:
882
- Enabled: true
528
+ Style/MixinGrouping:
529
+ Enabled: false
883
530
 
884
- Lint/FormatParameterMismatch:
885
- Enabled: true
531
+ Style/MixinUsage:
532
+ Enabled: false
886
533
 
887
- Lint/SuppressedException:
888
- AllowComments: true
534
+ Style/ModuleFunction:
535
+ EnforcedStyle: extend_self
889
536
 
890
- Lint/ImplicitStringConcatenation:
891
- Description: Checks for adjacent string literals on the same line, which could
892
- better be represented as a single string literal.
537
+ Style/MultilineBlockChain:
538
+ Enabled: false
893
539
 
894
- Lint/IneffectiveAccessModifier:
895
- Description: Checks for attempts to use `private` or `protected` to set the visibility
896
- of a class method, which does not work.
540
+ Style/MultilineIfModifier:
541
+ Enabled: false
897
542
 
898
- Lint/LiteralAsCondition:
899
- Enabled: true
543
+ Style/MultilineInPatternThen:
544
+ Enabled: false
900
545
 
901
- Lint/LiteralInInterpolation:
902
- Enabled: true
546
+ Style/MultilineWhenThen:
547
+ Enabled: false
903
548
 
904
- Lint/Loop:
905
- Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
906
- for post-loop tests.
549
+ Style/MultipleComparison:
550
+ Enabled: false
907
551
 
908
- Lint/NestedMethodDefinition:
909
- Enabled: true
552
+ Style/MutableConstant:
553
+ Enabled: false
910
554
 
911
- Lint/NextWithoutAccumulator:
912
- Description: Do not omit the accumulator when calling `next` in a `reduce`/`inject`
913
- block.
555
+ Style/NegatedIfElseCondition:
556
+ Enabled: false
914
557
 
915
- Lint/NonLocalExitFromIterator:
916
- Enabled: true
558
+ Style/NegatedUnless:
559
+ Enabled: false
917
560
 
918
- Lint/ParenthesesAsGroupedExpression:
919
- Enabled: true
561
+ Style/NilLambda:
562
+ Enabled: false
920
563
 
921
- Lint/PercentStringArray:
922
- Enabled: true
564
+ Style/NumberedParameters:
565
+ Enabled: false
923
566
 
924
- Lint/PercentSymbolArray:
925
- Enabled: true
567
+ Style/NumberedParametersLimit:
568
+ Enabled: false
926
569
 
927
- Lint/RandOne:
928
- Description: Checks for `rand(1)` calls. Such calls always return `0` and most
929
- likely a mistake.
570
+ Style/NumericLiteralPrefix:
571
+ EnforcedOctalStyle: zero_only
930
572
 
931
- Lint/RequireParentheses:
932
- Enabled: true
573
+ Style/NumericLiterals:
574
+ Enabled: false
933
575
 
934
- Lint/RescueException:
935
- Enabled: true
576
+ Style/NumericPredicate:
577
+ Enabled: false
936
578
 
937
- Lint/ShadowedException:
579
+ Style/OpenStructUse:
938
580
  Enabled: true
939
581
 
940
- Lint/ShadowingOuterLocalVariable:
941
- Enabled: true
582
+ Style/OptionalBooleanParameter:
583
+ Enabled: false
942
584
 
943
- Lint/RedundantStringCoercion:
944
- Enabled: true
585
+ Style/OrAssignment:
586
+ Enabled: false
945
587
 
946
- Lint/UnderscorePrefixedVariableName:
947
- Enabled: true
588
+ Style/PercentLiteralDelimiters:
589
+ Enabled: false
948
590
 
949
- Lint/UnifiedInteger:
591
+ Style/QuotedSymbols:
950
592
  Enabled: true
951
593
 
952
- Lint/RedundantCopDisableDirective:
953
- Enabled: true
594
+ Style/RandomWithOffset:
595
+ Enabled: false
954
596
 
955
- Lint/RedundantCopEnableDirective:
956
- Enabled: true
597
+ Style/RedundantArgument:
598
+ Enabled: false
957
599
 
958
- Lint/RedundantSplatExpansion:
959
- Enabled: true
600
+ Style/RedundantAssignment:
601
+ Enabled: false
960
602
 
961
- Lint/UnreachableCode:
962
- Enabled: true
603
+ Style/RedundantCondition:
604
+ Enabled: false
963
605
 
964
- Lint/UselessAccessModifier:
965
- ContextCreatingMethods: []
606
+ Style/RedundantConditional:
607
+ Enabled: false
966
608
 
967
- Lint/UselessAssignment:
968
- Enabled: true
609
+ Style/RedundantFetchBlock:
610
+ Enabled: false
969
611
 
970
- Lint/BinaryOperatorWithIdenticalOperands:
971
- Enabled: true
612
+ Style/RedundantFileExtensionInRequire:
613
+ Enabled: false
972
614
 
973
- Lint/UselessElseWithoutRescue:
974
- Enabled: true
615
+ Style/RedundantRegexpCharacterClass:
616
+ Enabled: false
975
617
 
976
- Lint/UselessSetterCall:
977
- Enabled: true
618
+ Style/RedundantRegexpEscape:
619
+ Enabled: false
978
620
 
979
- Lint/Void:
980
- Enabled: true
621
+ Style/RedundantSelfAssignment:
622
+ Enabled: false
981
623
 
982
- Security/Eval:
983
- Enabled: true
624
+ Style/RedundantSelfAssignmentBranch:
625
+ Enabled: false
984
626
 
985
- Security/JSONLoad:
986
- Enabled: true
627
+ Style/RedundantSort:
628
+ Enabled: false
987
629
 
988
- Security/Open:
989
- Enabled: true
630
+ Style/RegexpLiteral:
631
+ EnforcedStyle: mixed
990
632
 
991
- Lint/BigDecimalNew:
992
- Enabled: true
633
+ Style/RescueStandardError:
634
+ Enabled: false
993
635
 
994
- Style/Strip:
995
- Enabled: true
636
+ Style/SelectByRegexp:
637
+ Enabled: false
996
638
 
997
- Style/TrailingBodyOnClass:
998
- Enabled: true
639
+ Style/SingleArgumentDig:
640
+ Enabled: false
999
641
 
1000
- Style/TrailingBodyOnModule:
1001
- Enabled: true
642
+ Style/SlicingWithRange:
643
+ Enabled: false
644
+
645
+ Style/SoleNestedConditional:
646
+ Enabled: false
647
+
648
+ Style/StderrPuts:
649
+ Enabled: false
650
+
651
+ Style/StringChars:
652
+ Enabled: false
653
+
654
+ Style/StringConcatenation:
655
+ Enabled: false
656
+
657
+ Style/StringLiterals:
658
+ EnforcedStyle: double_quotes
659
+
660
+ Style/StringLiteralsInInterpolation:
661
+ EnforcedStyle: double_quotes
662
+
663
+ Style/StructInheritance:
664
+ Enabled: false
665
+
666
+ Style/SwapValues:
667
+ Enabled: false
668
+
669
+ Style/SymbolArray:
670
+ EnforcedStyle: brackets
671
+
672
+ Style/TrailingBodyOnMethodDefinition:
673
+ Enabled: false
674
+
675
+ Style/TrailingCommaInArguments:
676
+ Enabled: false
1002
677
 
1003
678
  Style/TrailingCommaInArrayLiteral:
1004
- EnforcedStyleForMultiline: comma
1005
- Enabled: true
679
+ EnforcedStyleForMultiline: consistent_comma
1006
680
 
1007
681
  Style/TrailingCommaInHashLiteral:
1008
- EnforcedStyleForMultiline: comma
1009
- Enabled: true
682
+ EnforcedStyleForMultiline: consistent_comma
1010
683
 
1011
- Layout/SpaceInsideReferenceBrackets:
1012
- EnforcedStyle: no_space
1013
- EnforcedStyleForEmptyBrackets: no_space
1014
- Enabled: true
684
+ Style/TrailingMethodEndStatement:
685
+ Enabled: false
1015
686
 
1016
- Style/ModuleFunction:
1017
- EnforcedStyle: extend_self
687
+ Style/TrailingUnderscoreVariable:
688
+ Enabled: false
1018
689
 
1019
- Lint/OrderedMagicComments:
1020
- Enabled: true
690
+ Style/UnpackFirst:
691
+ Enabled: false
1021
692
 
1022
- Lint/DeprecatedOpenSSLConstant:
1023
- Enabled: true
693
+ Style/WordArray:
694
+ EnforcedStyle: brackets
695
+
696
+ Style/YodaCondition:
697
+ Enabled: false