rubocop-shopify 2.18.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/rubocop.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  <%
2
- require "rubocop/shopify/gem_version_string_comparable_backport"
3
-
4
2
  rubocop_version = Gem.loaded_specs.fetch("rubocop").version
5
3
  %>
6
4
 
5
+ plugins:
6
+ - rubocop-shopify
7
+
7
8
  inherit_mode:
8
9
  merge:
9
10
  - Exclude
@@ -13,18 +14,27 @@ AllCops:
13
14
  StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/
14
15
  NewCops: disable # New cops will be triaged by style guide maintainers instead.
15
16
 
17
+ # Bundler Department
16
18
  Bundler/OrderedGems:
17
19
  Enabled: false
18
20
 
19
- <% if rubocop_version >= "1.65" %>
21
+
22
+ # Gemspec Department
20
23
  Gemspec/AddRuntimeDependency:
21
24
  Enabled: false
25
+
26
+ <% if rubocop_version >= '1.77' %>
27
+ Gemspec/AttributeAssignment:
28
+ Enabled: true
22
29
  <% end %>
23
30
 
24
31
  Gemspec/DeprecatedAttributeAssignment:
25
32
  Enabled: true
26
33
 
27
34
  Gemspec/DevelopmentDependencies:
35
+ Enabled: true
36
+
37
+ Gemspec/OrderedDependencies:
28
38
  Enabled: false
29
39
 
30
40
  Gemspec/RequireMFA:
@@ -33,42 +43,84 @@ Gemspec/RequireMFA:
33
43
  Gemspec/RequiredRubyVersion:
34
44
  Enabled: false
35
45
 
46
+
47
+ # Layout Department
36
48
  Layout/ArgumentAlignment:
37
49
  EnforcedStyle: with_fixed_indentation
38
50
 
51
+ Layout/ArrayAlignment:
52
+ Enabled: false
53
+
54
+ Layout/AssignmentIndentation:
55
+ Enabled: false
56
+
57
+ Layout/BeginEndAlignment:
58
+ Enabled: false
59
+
60
+ Layout/BlockAlignment:
61
+ Enabled: false
62
+
63
+ Layout/BlockEndNewline:
64
+ Enabled: false
65
+
39
66
  Layout/CaseIndentation:
67
+ Enabled: false
40
68
  EnforcedStyle: end
41
69
 
70
+ Layout/ClosingHeredocIndentation:
71
+ Enabled: false
72
+
73
+ Layout/EmptyComment:
74
+ Enabled: false
75
+
76
+ Layout/EmptyLineAfterGuardClause:
77
+ Enabled: false
78
+
79
+ Layout/EmptyLines:
80
+ Enabled: false
81
+
82
+ <% if rubocop_version >= '1.79' %>
83
+ Layout/EmptyLinesAfterModuleInclusion:
84
+ Enabled: false
85
+ <% end %>
86
+
42
87
  Layout/EndAlignment:
88
+ Enabled: false
43
89
  EnforcedStyleAlignWith: variable
44
90
 
91
+ Layout/ExtraSpacing:
92
+ Enabled: false
93
+
45
94
  Layout/FirstArgumentIndentation:
95
+ Enabled: false
46
96
  EnforcedStyle: consistent
47
97
 
48
98
  Layout/FirstArrayElementIndentation:
99
+ Enabled: false
49
100
  EnforcedStyle: consistent
50
101
 
51
102
  Layout/FirstArrayElementLineBreak:
52
- Enabled: true
53
103
  AllowMultilineFinalElement: true
54
104
 
55
105
  Layout/FirstHashElementIndentation:
106
+ Enabled: false
56
107
  EnforcedStyle: consistent
57
108
 
58
- Layout/FirstHashElementLineBreak:
59
- Enabled: true
60
-
61
109
  Layout/FirstMethodArgumentLineBreak:
62
- Enabled: true
63
110
  AllowMultilineFinalElement: true
64
111
 
112
+ Layout/FirstParameterIndentation:
113
+ Enabled: false
114
+
65
115
  Layout/HashAlignment:
116
+ Enabled: false
66
117
  EnforcedLastArgumentHashStyle: ignore_implicit
67
118
 
68
- <% if rubocop_version >= "1.67" %>
119
+ Layout/HeredocIndentation:
120
+ Enabled: false
121
+
69
122
  Layout/LeadingCommentSpace:
70
123
  AllowRBSInlineAnnotation: true
71
- <% end %>
72
124
 
73
125
  Layout/LineContinuationLeadingSpace:
74
126
  Enabled: true
@@ -77,38 +129,53 @@ Layout/LineContinuationSpacing:
77
129
  Enabled: true
78
130
 
79
131
  Layout/LineEndStringConcatenationIndentation:
80
- Enabled: true
132
+ Enabled: false
81
133
  EnforcedStyle: indented
82
134
 
83
135
  Layout/LineLength:
84
136
  Enabled: false
137
+ AllowedPatterns:
138
+ - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
139
+ - "\\A\\s*def test_\\w+\\s*\\Z"
140
+
141
+ Layout/MultilineArrayBraceLayout:
142
+ Enabled: false
85
143
 
86
144
  Layout/MultilineArrayLineBreaks:
87
- Enabled: true
88
145
  AllowMultilineFinalElement: true
89
146
 
90
- Layout/MultilineHashKeyLineBreaks:
91
- Enabled: true
147
+ Layout/MultilineHashBraceLayout:
148
+ Enabled: false
92
149
 
93
150
  Layout/MultilineMethodArgumentLineBreaks:
94
- Enabled: true
95
151
  AllowMultilineFinalElement: true
96
152
 
153
+ Layout/MultilineMethodCallBraceLayout:
154
+ Enabled: false
155
+
97
156
  Layout/MultilineMethodCallIndentation:
98
- EnforcedStyle: indented
99
- IndentationWidth: 2
157
+ Enabled: false
158
+
159
+ Layout/MultilineMethodDefinitionBraceLayout:
160
+ Enabled: false
100
161
 
101
162
  Layout/MultilineOperationIndentation:
163
+ Enabled: false
102
164
  EnforcedStyle: indented
103
-
104
165
  Layout/ParameterAlignment:
166
+ Enabled: false
105
167
  EnforcedStyle: with_fixed_indentation
106
168
 
169
+ Layout/RescueEnsureAlignment:
170
+ Enabled: false
171
+
107
172
  Layout/SpaceBeforeBrackets:
108
173
  Enabled: true
109
174
 
175
+
176
+ # Lint Department
110
177
  Lint/AmbiguousAssignment:
111
- Enabled: false
178
+ Enabled: true
112
179
 
113
180
  Lint/AmbiguousBlockAssociation:
114
181
  Enabled: false
@@ -119,10 +186,14 @@ Lint/AmbiguousOperatorPrecedence:
119
186
  Lint/AmbiguousRange:
120
187
  Enabled: false
121
188
 
122
- <% if rubocop_version >= "1.71" %>
189
+ Lint/AmbiguousRegexpLiteral:
190
+ Enabled: false
191
+
123
192
  Lint/ArrayLiteralInRegexp:
124
193
  Enabled: false
125
- <% end %>
194
+
195
+ Lint/AssignmentInCondition:
196
+ Enabled: false
126
197
 
127
198
  Lint/BooleanSymbol:
128
199
  Enabled: false
@@ -133,31 +204,23 @@ Lint/ConstantDefinitionInBlock:
133
204
  Lint/ConstantOverwrittenInRescue:
134
205
  Enabled: true
135
206
 
136
- <% if rubocop_version >= "1.70" %>
137
207
  Lint/ConstantReassignment:
138
- Enabled: false
139
- <% end %>
208
+ Enabled: true
140
209
 
141
- <% if rubocop_version >= "1.72" %>
142
210
  Lint/CopDirectiveSyntax:
143
- Enabled: false
211
+ Enabled: true
212
+
213
+ <% if rubocop_version >= "1.85" %>
214
+ Lint/DataDefineOverride:
215
+ Enabled: true
144
216
  <% end %>
145
217
 
146
218
  Lint/DeprecatedConstants:
147
219
  Enabled: false
148
220
 
149
- Lint/DisjunctiveAssignmentInConstructor:
150
- Enabled: false
151
-
152
221
  Lint/DuplicateBranch:
153
222
  Enabled: false
154
223
 
155
- Lint/DuplicateCaseCondition:
156
- Enabled: false
157
-
158
- Lint/DuplicateElsifCondition:
159
- Enabled: false
160
-
161
224
  Lint/DuplicateMagicComment:
162
225
  Enabled: true
163
226
 
@@ -165,18 +228,10 @@ Lint/DuplicateMatchPattern:
165
228
  Enabled: true
166
229
 
167
230
  Lint/DuplicateRegexpCharacterClassElement:
168
- Enabled: false
169
-
170
- Lint/DuplicateRequire:
171
- Enabled: false
172
-
173
- Lint/DuplicateRescueException:
174
- Enabled: false
231
+ Enabled: true
175
232
 
176
- <% if rubocop_version >= "1.67" %>
177
233
  Lint/DuplicateSetElement:
178
- Enabled: false
179
- <% end %>
234
+ Enabled: true
180
235
 
181
236
  Lint/EmptyBlock:
182
237
  Enabled: false
@@ -187,9 +242,6 @@ Lint/EmptyClass:
187
242
  Lint/EmptyConditionalBody:
188
243
  Enabled: false
189
244
 
190
- Lint/EmptyExpression:
191
- Enabled: false
192
-
193
245
  Lint/EmptyFile:
194
246
  Enabled: false
195
247
 
@@ -202,16 +254,23 @@ Lint/EmptyWhen:
202
254
  Lint/ErbNewArguments:
203
255
  Enabled: false
204
256
 
257
+ Lint/FlipFlop:
258
+ Enabled: false
259
+
205
260
  Lint/FloatComparison:
206
261
  Enabled: false
207
262
 
263
+ Lint/FloatOutOfRange:
264
+ Enabled: false
265
+
266
+ Lint/FormatParameterMismatch:
267
+ Enabled: false
268
+
208
269
  Lint/HashCompareByIdentity:
209
270
  Enabled: false
210
271
 
211
- <% if rubocop_version >= "1.69" %>
212
272
  Lint/HashNewWithKeywordArgumentsAsDefault:
213
273
  Enabled: false
214
- <% end %>
215
274
 
216
275
  Lint/IdentityComparison:
217
276
  Enabled: false
@@ -219,32 +278,32 @@ Lint/IdentityComparison:
219
278
  Lint/IncompatibleIoSelectWithFiberScheduler:
220
279
  Enabled: false
221
280
 
222
- Lint/InterpolationCheck:
281
+ Lint/InheritException:
223
282
  Enabled: false
224
283
 
225
284
  Lint/ItWithoutArgumentsInBlock:
226
- Enabled: true
285
+ Enabled: false
227
286
 
228
287
  Lint/LambdaWithoutLiteralBlock:
229
288
  Enabled: false
230
289
 
231
290
  Lint/LiteralAssignmentInCondition:
232
- Enabled: true
233
-
234
- Lint/MixedCaseRange:
235
- Enabled: true
291
+ Enabled: false
236
292
 
237
- Lint/MixedRegexpCaptureTypes:
293
+ Lint/Loop:
238
294
  Enabled: false
239
295
 
240
- Lint/MultipleComparison:
296
+ Lint/MissingSuper:
241
297
  Enabled: false
242
298
 
243
- Lint/NestedPercentLiteral:
299
+ Lint/MixedCaseRange:
300
+ Enabled: true
301
+
302
+ Lint/MixedRegexpCaptureTypes:
244
303
  Enabled: false
245
304
 
246
305
  Lint/NoReturnInBeginEndBlocks:
247
- Enabled: true
306
+ Enabled: false
248
307
 
249
308
  Lint/NonAtomicFileOperation:
250
309
  Enabled: false
@@ -252,28 +311,41 @@ Lint/NonAtomicFileOperation:
252
311
  Lint/NonDeterministicRequireOrder:
253
312
  Enabled: false
254
313
 
314
+ Lint/NonLocalExitFromIterator:
315
+ Enabled: false
316
+
255
317
  Lint/NumberedParameterAssignment:
256
318
  Enabled: false
257
319
 
258
- <% if rubocop_version >= "1.69" %>
259
320
  Lint/NumericOperationWithConstantResult:
260
- Enabled: false
261
- <% end %>
321
+ Enabled: true
262
322
 
263
323
  Lint/OrAssignmentToConstant:
324
+ Enabled: true
325
+
326
+ Lint/OrderedMagicComments:
264
327
  Enabled: false
265
328
 
266
329
  Lint/OutOfRangeRegexpRef:
267
330
  Enabled: false
268
331
 
332
+ Lint/PercentStringArray:
333
+ Enabled: false
334
+
335
+ Lint/PercentSymbolArray:
336
+ Enabled: false
337
+
269
338
  Lint/RaiseException:
270
339
  Enabled: false
271
340
 
341
+ Lint/RandOne:
342
+ Enabled: false
343
+
272
344
  Lint/RedundantDirGlobSort:
273
345
  Enabled: false
274
346
 
275
347
  Lint/RedundantRegexpQuantifiers:
276
- Enabled: true
348
+ Enabled: false
277
349
 
278
350
  Lint/RedundantRequireStatement:
279
351
  Enabled: false
@@ -281,33 +353,28 @@ Lint/RedundantRequireStatement:
281
353
  Lint/RedundantSafeNavigation:
282
354
  Enabled: false
283
355
 
284
- <% if rubocop_version >= "1.72" %>
285
- Lint/RedundantTypeConversion:
286
- Enabled: false
287
- <% end %>
288
-
289
- Lint/RedundantWithIndex:
356
+ Lint/RedundantSplatExpansion:
290
357
  Enabled: false
291
358
 
292
- Lint/RedundantWithObject:
359
+ Lint/RedundantTypeConversion:
293
360
  Enabled: false
294
361
 
295
362
  Lint/RefinementImportMethods:
296
363
  Enabled: false
297
364
 
298
- Lint/RegexpAsCondition:
365
+ Lint/RequireParentheses:
299
366
  Enabled: false
300
367
 
301
368
  Lint/RequireRangeParentheses:
302
- Enabled: true
369
+ Enabled: false
303
370
 
304
371
  Lint/RequireRelativeSelfPath:
305
- Enabled: true
372
+ Enabled: false
306
373
 
307
- Lint/RescueType:
374
+ Lint/RescueException:
308
375
  Enabled: false
309
376
 
310
- Lint/ReturnInVoidContext:
377
+ Lint/RescueType:
311
378
  Enabled: false
312
379
 
313
380
  Lint/SafeNavigationConsistency:
@@ -319,30 +386,28 @@ Lint/SafeNavigationWithEmpty:
319
386
  Lint/ScriptPermission:
320
387
  Enabled: false
321
388
 
322
- Lint/SelfAssignment:
323
- Enabled: false
324
-
325
- Lint/SendWithMixinArgument:
389
+ Lint/ShadowedArgument:
326
390
  Enabled: false
327
391
 
328
- Lint/ShadowedArgument:
392
+ Lint/ShadowedException:
329
393
  Enabled: false
330
394
 
395
+ <% if rubocop_version < "1.76" %>
331
396
  Lint/ShadowingOuterLocalVariable:
332
397
  Enabled: false
398
+ <% end %>
333
399
 
334
- <% if rubocop_version >= "1.70" %>
335
400
  Lint/SharedMutableDefault:
336
401
  Enabled: false
337
- <% end %>
338
402
 
339
403
  Lint/StructNewOverride:
340
404
  Enabled: false
341
405
 
342
- <% if rubocop_version >= "1.72" %>
406
+ Lint/SuppressedException:
407
+ Enabled: false
408
+
343
409
  Lint/SuppressedExceptionInNumberConversion:
344
410
  Enabled: false
345
- <% end %>
346
411
 
347
412
  Lint/SymbolConversion:
348
413
  Enabled: false
@@ -356,26 +421,38 @@ Lint/ToJSON:
356
421
  Lint/TopLevelReturnWithArgument:
357
422
  Enabled: false
358
423
 
359
- Lint/TrailingCommaInAttributeDeclaration:
360
- Enabled: false
361
-
362
424
  Lint/TripleQuotes:
425
+ Enabled: true
426
+
427
+ Lint/UnderscorePrefixedVariableName:
363
428
  Enabled: false
364
429
 
365
- <% if rubocop_version >= "1.68" %>
366
430
  Lint/UnescapedBracketInRegexp:
367
431
  Enabled: false
368
- <% end %>
369
432
 
370
433
  Lint/UnexpectedBlockArity:
371
434
  Enabled: false
372
435
 
436
+ Lint/UnifiedInteger:
437
+ Enabled: false
438
+
373
439
  Lint/UnmodifiedReduceAccumulator:
374
440
  Enabled: false
375
441
 
442
+ Lint/UnreachableCode:
443
+ Enabled: false
444
+
376
445
  Lint/UnreachableLoop:
377
446
  Enabled: false
378
447
 
448
+ <% if rubocop_version >= "1.85" %>
449
+ Lint/UnreachablePatternBranch:
450
+ Enabled: true
451
+ <% end %>
452
+
453
+ Lint/UnusedBlockArgument:
454
+ Enabled: false
455
+
379
456
  Lint/UnusedMethodArgument:
380
457
  Enabled: false
381
458
 
@@ -385,44 +462,64 @@ Lint/UriEscapeUnescape:
385
462
  Lint/UriRegexp:
386
463
  Enabled: false
387
464
 
388
- <% if rubocop_version >= "1.72" %>
465
+ Lint/UselessAccessModifier:
466
+ Enabled: false
467
+
468
+ Lint/UselessAssignment:
469
+ Enabled: false
470
+
389
471
  Lint/UselessConstantScoping:
390
472
  Enabled: false
473
+
474
+ <% if rubocop_version >= "1.76" %>
475
+ Lint/UselessDefaultValueArgument:
476
+ Enabled: true
391
477
  <% end %>
392
478
 
393
- <% if rubocop_version >= "1.69" %>
394
479
  Lint/UselessDefined:
395
480
  Enabled: false
396
- <% end %>
481
+
482
+ Lint/UselessElseWithoutRescue:
483
+ Enabled: false
397
484
 
398
485
  Lint/UselessMethodDefinition:
399
486
  Enabled: false
400
487
 
401
- <% if rubocop_version >= "1.66" %>
402
488
  Lint/UselessNumericOperation:
403
489
  Enabled: false
490
+
491
+ <% if rubocop_version >= "1.76" %>
492
+ Lint/UselessOr:
493
+ Enabled: true
404
494
  <% end %>
405
495
 
406
496
  Lint/UselessRescue:
407
- Enabled: true
497
+ Enabled: false
408
498
 
409
499
  Lint/UselessRuby2Keywords:
410
- Enabled: true
500
+ Enabled: false
501
+
502
+ Lint/UselessSetterCall:
503
+ Enabled: false
411
504
 
412
505
  Lint/UselessTimes:
413
506
  Enabled: false
414
507
 
508
+ # Metrics Department
415
509
  Metrics/AbcSize:
416
510
  Enabled: false
417
511
 
418
512
  Metrics/BlockLength:
419
513
  Enabled: false
420
514
 
515
+ Metrics/BlockNesting:
516
+ Enabled: false
517
+
421
518
  Metrics/ClassLength:
422
519
  Enabled: false
423
520
 
424
521
  Metrics/CollectionLiteralLength:
425
- Enabled: true
522
+ Enabled: false
426
523
 
427
524
  Metrics/CyclomaticComplexity:
428
525
  Enabled: false
@@ -434,21 +531,27 @@ Metrics/ModuleLength:
434
531
  Enabled: false
435
532
 
436
533
  Metrics/ParameterLists:
534
+ Enabled: false
437
535
  CountKeywordArgs: false
438
536
 
439
537
  Metrics/PerceivedComplexity:
440
538
  Enabled: false
441
539
 
442
- Migration/DepartmentName:
540
+
541
+ # Naming Department
542
+ Naming/AccessorMethodName:
443
543
  Enabled: false
444
544
 
445
- Naming/BlockForwarding:
545
+ Naming/AsciiIdentifiers:
446
546
  Enabled: false
447
547
 
448
- Naming/BlockParameterName:
548
+ Naming/BinaryOperatorParameterName:
449
549
  Enabled: false
450
550
 
451
- Naming/HeredocDelimiterCase:
551
+ Naming/BlockForwarding:
552
+ Enabled: false
553
+
554
+ Naming/FileName:
452
555
  Enabled: false
453
556
 
454
557
  Naming/HeredocDelimiterNaming:
@@ -457,18 +560,20 @@ Naming/HeredocDelimiterNaming:
457
560
  Naming/MemoizedInstanceVariableName:
458
561
  Enabled: false
459
562
 
460
- Naming/MethodName:
461
- AllowedPatterns:
462
- - '\Atest_'
463
-
464
563
  Naming/MethodParameterName:
564
+ MinNameLength: 1
565
+
566
+ <% if rubocop_version >= "1.76" %>
567
+ Naming/PredicateMethod:
465
568
  Enabled: false
569
+ <% end %>
466
570
 
467
571
  <% if rubocop_version >= "1.76" %>
468
572
  Naming/PredicatePrefix:
469
573
  <% else %>
470
574
  Naming/PredicateName:
471
575
  <% end %>
576
+ Enabled: false
472
577
  NamePrefix:
473
578
  - is_
474
579
  ForbiddenPrefixes:
@@ -480,18 +585,31 @@ Naming/RescuedExceptionsVariableName:
480
585
  Naming/VariableNumber:
481
586
  Enabled: false
482
587
 
588
+
589
+ # Security Department
483
590
  Security/CompoundHash:
484
591
  Enabled: false
485
592
 
593
+ Security/Eval:
594
+ Enabled: false
595
+
486
596
  Security/IoMethods:
487
- Enabled: true
597
+ Enabled: false
598
+
599
+ Security/JSONLoad:
600
+ Enabled: false
488
601
 
489
602
  Security/MarshalLoad:
490
603
  Enabled: false
491
604
 
605
+ Security/Open:
606
+ Enabled: false
607
+
492
608
  Security/YAMLLoad:
493
609
  Enabled: false
494
610
 
611
+
612
+ # Style Department
495
613
  Style/AccessModifierDeclarations:
496
614
  Enabled: false
497
615
 
@@ -499,83 +617,114 @@ Style/AccessorGrouping:
499
617
  Enabled: false
500
618
 
501
619
  Style/Alias:
620
+ Enabled: false
502
621
  EnforcedStyle: prefer_alias_method
503
622
 
504
- <% if rubocop_version >= "1.68" %>
505
623
  Style/AmbiguousEndlessMethodDefinition:
506
- Enabled: false
507
- <% end %>
624
+ Enabled: true
508
625
 
509
626
  Style/ArgumentsForwarding:
510
627
  Enabled: false
511
628
 
512
- Style/ArrayIntersect:
629
+ Style/ArrayCoercion:
513
630
  Enabled: true
514
631
 
632
+ Style/ArrayIntersect:
633
+ Enabled: false
634
+
635
+ <% if rubocop_version >= '1.81' %>
636
+ Style/ArrayIntersectWithSingleElement:
637
+ Enabled: false
638
+ <% end %>
639
+
640
+ Style/ArrayJoin:
641
+ Enabled: false
642
+
643
+ Style/BarePercentLiterals:
644
+ Enabled: false
645
+
646
+ Style/BeginBlock:
647
+ Enabled: false
648
+
515
649
  Style/BisectedAttrAccessor:
516
650
  Enabled: false
517
651
 
518
- <% if rubocop_version >= "1.68" %>
519
652
  Style/BitwisePredicate:
520
653
  Enabled: false
521
- <% end %>
654
+
655
+ Style/BlockDelimiters:
656
+ Enabled: false
522
657
 
523
658
  Style/CaseEquality:
659
+ Enabled: false
524
660
  AllowOnConstant: true
525
661
  AllowOnSelfClass: true
526
662
 
527
663
  Style/CaseLikeIf:
528
664
  Enabled: false
529
665
 
666
+ Style/ClassAndModuleChildren:
667
+ Enabled: false
668
+
669
+ Style/ClassCheck:
670
+ Enabled: false
671
+
530
672
  Style/ClassEqualityComparison:
531
673
  Enabled: false
532
674
 
533
675
  Style/ClassMethodsDefinitions:
534
- EnforcedStyle: self_class
535
676
  Enabled: true
677
+ EnforcedStyle: self_class
536
678
 
537
679
  Style/CollectionCompact:
538
680
  Enabled: false
539
681
 
540
- Style/ColonMethodDefinition:
682
+ <% if rubocop_version >= '1.77' %>
683
+ Style/CollectionQuerying:
541
684
  Enabled: false
685
+ <% end %>
542
686
 
543
- <% if rubocop_version >= "1.68" %>
544
687
  Style/CombinableDefined:
545
- Enabled: false
546
- <% end %>
688
+ Enabled: true
547
689
 
548
690
  Style/CombinableLoops:
549
691
  Enabled: false
550
692
 
551
693
  Style/CommandLiteral:
694
+ Enabled: false
552
695
  EnforcedStyle: percent_x
553
696
 
697
+ Style/CommentAnnotation:
698
+ Enabled: false
699
+
554
700
  Style/CommentedKeyword:
555
701
  Enabled: false
556
702
 
703
+ <% if rubocop_version >= "1.74" %>
704
+ Style/ComparableBetween:
705
+ Enabled: false
706
+ <% end %>
707
+
557
708
  Style/ComparableClamp:
558
- Enabled: true
709
+ Enabled: false
559
710
 
560
711
  Style/ConcatArrayLiterals:
561
- Enabled: true
712
+ Enabled: false
562
713
 
563
- Style/DataInheritance:
564
- Enabled: true
714
+ Style/ConditionalAssignment:
715
+ Enabled: false
565
716
 
566
- Style/DateTime:
567
- Enabled: true
717
+ Style/DataInheritance:
718
+ Enabled: false
568
719
 
569
- <% if rubocop_version >= "1.69" %>
570
720
  Style/DigChain:
571
- Enabled: false
572
- <% end %>
721
+ Enabled: true
573
722
 
574
723
  Style/Dir:
575
724
  Enabled: false
576
725
 
577
726
  Style/DirEmpty:
578
- Enabled: true
727
+ Enabled: false
579
728
 
580
729
  Style/DocumentDynamicEvalDefinition:
581
730
  Enabled: false
@@ -589,21 +738,50 @@ Style/DoubleCopDisableDirective:
589
738
  Style/DoubleNegation:
590
739
  Enabled: false
591
740
 
741
+ Style/EachForSimpleLoop:
742
+ Enabled: false
743
+
744
+ Style/EachWithObject:
745
+ Enabled: false
746
+
592
747
  Style/EmptyBlockParameter:
593
748
  Enabled: false
594
749
 
750
+ Style/EmptyCaseCondition:
751
+ Enabled: false
752
+
753
+ <% if rubocop_version >= "1.84" %>
754
+ Style/EmptyClassDefinition:
755
+ Enabled: false
756
+ <% end %>
757
+
758
+ Style/EmptyElse:
759
+ Enabled: false
760
+ AllowComments: true
761
+
595
762
  Style/EmptyHeredoc:
596
- Enabled: true
763
+ Enabled: false
597
764
 
598
765
  Style/EmptyLambdaParameter:
599
766
  Enabled: false
600
767
 
768
+ Style/EmptyLiteral:
769
+ Enabled: false
770
+
601
771
  Style/EmptyMethod:
602
772
  Enabled: false
603
773
 
774
+ <% if rubocop_version >= "1.76" %>
775
+ Style/EmptyStringInsideInterpolation:
776
+ Enabled: false
777
+ <% end %>
778
+
604
779
  Style/Encoding:
605
780
  Enabled: false
606
781
 
782
+ Style/EndBlock:
783
+ Enabled: false
784
+
607
785
  Style/EndlessMethod:
608
786
  Enabled: true
609
787
 
@@ -613,12 +791,18 @@ Style/EnvHome:
613
791
  Style/EvalWithLocation:
614
792
  Enabled: false
615
793
 
794
+ Style/EvenOdd:
795
+ Enabled: false
796
+
616
797
  Style/ExactRegexpMatch:
617
- Enabled: true
798
+ Enabled: false
618
799
 
619
800
  Style/ExpandPathArguments:
620
801
  Enabled: false
621
802
 
803
+ Style/ExplicitBlockArgument:
804
+ Enabled: false
805
+
622
806
  Style/ExponentialNotation:
623
807
  Enabled: false
624
808
 
@@ -626,20 +810,21 @@ Style/FetchEnvVar:
626
810
  Enabled: false
627
811
 
628
812
  Style/FileEmpty:
629
- Enabled: true
813
+ Enabled: false
630
814
 
631
- <% if rubocop_version >= "1.69" %>
632
815
  Style/FileNull:
633
816
  Enabled: false
817
+
818
+ <% if rubocop_version >= "1.85" %>
819
+ Style/FileOpen:
820
+ Enabled: false
634
821
  <% end %>
635
822
 
636
823
  Style/FileRead:
637
824
  Enabled: false
638
825
 
639
- <% if rubocop_version >= "1.69" %>
640
826
  Style/FileTouch:
641
827
  Enabled: false
642
- <% end %>
643
828
 
644
829
  Style/FileWrite:
645
830
  Enabled: false
@@ -647,6 +832,12 @@ Style/FileWrite:
647
832
  Style/FloatDivision:
648
833
  Enabled: false
649
834
 
835
+ Style/For:
836
+ Enabled: false
837
+
838
+ Style/FormatString:
839
+ Enabled: false
840
+
650
841
  Style/FormatStringToken:
651
842
  Enabled: false
652
843
 
@@ -657,6 +848,9 @@ Style/FrozenStringLiteralComment:
657
848
  literals will become the default in a future Ruby version, and we want to make
658
849
  sure we''re ready.'
659
850
 
851
+ Style/GlobalStdStream:
852
+ Enabled: false
853
+
660
854
  Style/GuardClause:
661
855
  Enabled: false
662
856
 
@@ -672,13 +866,16 @@ Style/HashEachMethods:
672
866
  Style/HashExcept:
673
867
  Enabled: false
674
868
 
869
+ <% if rubocop_version >= "1.75" %>
870
+ Style/HashFetchChain:
871
+ Enabled: false
872
+ <% end %>
873
+
675
874
  Style/HashLikeCase:
676
875
  Enabled: false
677
876
 
678
- <% if rubocop_version >= "1.71" %>
679
877
  Style/HashSlice:
680
878
  Enabled: false
681
- <% end %>
682
879
 
683
880
  Style/HashTransformKeys:
684
881
  Enabled: false
@@ -686,30 +883,43 @@ Style/HashTransformKeys:
686
883
  Style/HashTransformValues:
687
884
  Enabled: false
688
885
 
886
+ Style/IdenticalConditionalBranches:
887
+ Enabled: false
888
+
889
+ Style/IfInsideElse:
890
+ Enabled: false
891
+
689
892
  Style/IfUnlessModifier:
690
893
  Enabled: false
691
894
 
895
+ Style/IfUnlessModifierOfIfUnless:
896
+ Enabled: false
897
+
692
898
  Style/IfWithBooleanLiteralBranches:
693
- Enabled: true
899
+ Enabled: false
900
+
901
+ Style/IfWithSemicolon:
902
+ Enabled: false
694
903
 
695
904
  Style/InPatternThen:
696
- Enabled: true
905
+ Enabled: false
697
906
 
698
- Style/InverseMethods:
907
+ Style/InfiniteLoop:
699
908
  Enabled: false
700
909
 
701
- Style/InvertibleUnlessCondition:
702
- Enabled: true
910
+ Style/InverseMethods:
911
+ Enabled: false
703
912
 
704
- <% if rubocop_version >= "1.70" %>
705
913
  Style/ItAssignment:
706
914
  Enabled: false
915
+
916
+ <% if rubocop_version >= "1.75" %>
917
+ Style/ItBlockParameter:
918
+ Enabled: false
707
919
  <% end %>
708
920
 
709
- <% if rubocop_version >= "1.68" %>
710
921
  Style/KeywordArgumentsMerging:
711
922
  Enabled: false
712
- <% end %>
713
923
 
714
924
  Style/KeywordParametersOrder:
715
925
  Enabled: false
@@ -717,6 +927,12 @@ Style/KeywordParametersOrder:
717
927
  Style/Lambda:
718
928
  Enabled: false
719
929
 
930
+ Style/LambdaCall:
931
+ Enabled: false
932
+
933
+ Style/LineEndConcatenation:
934
+ Enabled: false
935
+
720
936
  Style/MagicCommentFormat:
721
937
  Enabled: true
722
938
  ValueCapitalization: lowercase
@@ -724,9 +940,12 @@ Style/MagicCommentFormat:
724
940
  Style/MapCompactWithConditionalBlock:
725
941
  Enabled: false
726
942
 
727
- <% if rubocop_version >= "1.63" %>
728
943
  Style/MapIntoArray:
729
944
  Enabled: false
945
+
946
+ <% if rubocop_version >= "1.85" %>
947
+ Style/MapJoin:
948
+ Enabled: true
730
949
  <% end %>
731
950
 
732
951
  Style/MapToHash:
@@ -736,7 +955,6 @@ Style/MapToSet:
736
955
  Enabled: false
737
956
 
738
957
  Style/MethodCallWithArgsParentheses:
739
- Enabled: true
740
958
  AllowedMethods:
741
959
  - require
742
960
  - require_relative
@@ -747,11 +965,17 @@ Style/MethodCallWithArgsParentheses:
747
965
  Exclude:
748
966
  - "/**/Gemfile"
749
967
 
968
+ Style/MethodCallWithoutArgsParentheses:
969
+ Enabled: false
970
+
750
971
  Style/MinMax:
751
972
  Enabled: false
752
973
 
753
974
  Style/MinMaxComparison:
754
- Enabled: true
975
+ Enabled: false
976
+
977
+ Style/MissingRespondToMissing:
978
+ Enabled: false
755
979
 
756
980
  Style/MixinGrouping:
757
981
  Enabled: false
@@ -760,24 +984,39 @@ Style/MixinUsage:
760
984
  Enabled: false
761
985
 
762
986
  Style/ModuleFunction:
987
+ Enabled: false
763
988
  EnforcedStyle: extend_self
764
989
 
990
+ <% if rubocop_version >= "1.82" %>
991
+ Style/ModuleMemberExistenceCheck:
992
+ Enabled: true
993
+ <% end %>
994
+
765
995
  Style/MultilineBlockChain:
766
996
  Enabled: false
767
997
 
768
998
  Style/MultilineIfModifier:
769
999
  Enabled: false
770
1000
 
1001
+ Style/MultilineIfThen:
1002
+ Enabled: false
1003
+
771
1004
  Style/MultilineInPatternThen:
772
1005
  Enabled: false
773
1006
 
1007
+ Style/MultilineMemoization:
1008
+ Enabled: false
1009
+
1010
+ Style/MultilineTernaryOperator:
1011
+ Enabled: false
1012
+
774
1013
  Style/MultilineWhenThen:
775
1014
  Enabled: false
776
1015
 
777
1016
  Style/MultipleComparison:
778
1017
  Enabled: false
779
1018
 
780
- Style/MutableConstant:
1019
+ Style/NegatedIf:
781
1020
  Enabled: false
782
1021
 
783
1022
  Style/NegatedIfElseCondition:
@@ -786,21 +1025,50 @@ Style/NegatedIfElseCondition:
786
1025
  Style/NegatedUnless:
787
1026
  Enabled: false
788
1027
 
789
- Style/NestedFileDirname:
1028
+ Style/NegatedWhile:
1029
+ Enabled: false
1030
+
1031
+ <% if rubocop_version >= "1.84" %>
1032
+ Style/NegativeArrayIndex:
790
1033
  Enabled: true
1034
+ <% end %>
1035
+
1036
+ Style/NestedFileDirname:
1037
+ Enabled: false
1038
+
1039
+ Style/NestedModifier:
1040
+ Enabled: false
1041
+
1042
+ Style/NestedParenthesizedCalls:
1043
+ Enabled: false
1044
+
1045
+ Style/NestedTernaryOperator:
1046
+ Enabled: false
791
1047
 
792
1048
  Style/Next:
793
1049
  Enabled: false
794
1050
 
1051
+ Style/NilComparison:
1052
+ Enabled: false
1053
+
795
1054
  Style/NilLambda:
796
1055
  Enabled: false
797
1056
 
1057
+ Style/NonNilCheck:
1058
+ Enabled: false
1059
+
1060
+ Style/Not:
1061
+ Enabled: false
1062
+
798
1063
  Style/NumberedParameters:
799
1064
  Enabled: false
800
1065
 
801
1066
  Style/NumberedParametersLimit:
802
1067
  Enabled: false
803
1068
 
1069
+ Style/NumericLiteralPrefix:
1070
+ Enabled: false
1071
+
804
1072
  Style/NumericLiterals:
805
1073
  Enabled: false
806
1074
 
@@ -810,11 +1078,22 @@ Style/NumericPredicate:
810
1078
  Style/ObjectThen:
811
1079
  Enabled: false
812
1080
 
1081
+ <% if rubocop_version >= "1.85" %>
1082
+ Style/OneClassPerFile:
1083
+ Enabled: false
1084
+ <% end %>
1085
+
1086
+ Style/OneLineConditional:
1087
+ Enabled: false
1088
+
813
1089
  Style/OpenStructUse:
814
1090
  Enabled: true
815
1091
 
816
1092
  Style/OperatorMethodCall:
817
- Enabled: true
1093
+ Enabled: false
1094
+
1095
+ Style/OptionalArguments:
1096
+ Enabled: false
818
1097
 
819
1098
  Style/OptionalBooleanParameter:
820
1099
  Enabled: false
@@ -822,24 +1101,68 @@ Style/OptionalBooleanParameter:
822
1101
  Style/OrAssignment:
823
1102
  Enabled: false
824
1103
 
1104
+ Style/ParallelAssignment:
1105
+ Enabled: false
1106
+
1107
+ Style/ParenthesesAroundCondition:
1108
+ Enabled: false
1109
+
1110
+ <% if rubocop_version >= "1.85" %>
1111
+ Style/PartitionInsteadOfDoubleSelect:
1112
+ Enabled: false
1113
+ <% end %>
1114
+
825
1115
  Style/PercentLiteralDelimiters:
826
1116
  Enabled: false
827
1117
 
1118
+ Style/PercentQLiterals:
1119
+ Enabled: false
1120
+
1121
+ Style/PerlBackrefs:
1122
+ Enabled: false
1123
+
1124
+ <% if rubocop_version >= "1.85" %>
1125
+ Style/PredicateWithKind:
1126
+ Enabled: false
1127
+ <% end %>
1128
+
1129
+ Style/PreferredHashMethods:
1130
+ Enabled: false
1131
+
1132
+ Style/Proc:
1133
+ Enabled: false
1134
+
828
1135
  Style/QuotedSymbols:
829
- Enabled: true
1136
+ Enabled: false
1137
+
1138
+ Style/RaiseArgs:
1139
+ Enabled: false
830
1140
 
831
1141
  Style/RandomWithOffset:
832
1142
  Enabled: false
833
1143
 
1144
+ <% if rubocop_version >= "1.85" %>
1145
+ Style/ReduceToHash:
1146
+ Enabled: true
1147
+ <% end %>
1148
+
834
1149
  Style/RedundantArgument:
835
1150
  Enabled: false
836
1151
 
837
1152
  Style/RedundantArrayConstructor:
1153
+ Enabled: false
1154
+
1155
+ <% if rubocop_version >= "1.76" %>
1156
+ Style/RedundantArrayFlatten:
838
1157
  Enabled: true
1158
+ <% end %>
839
1159
 
840
1160
  Style/RedundantAssignment:
841
1161
  Enabled: false
842
1162
 
1163
+ Style/RedundantCapitalW:
1164
+ Enabled: false
1165
+
843
1166
  Style/RedundantCondition:
844
1167
  Enabled: false
845
1168
 
@@ -847,16 +1170,19 @@ Style/RedundantConditional:
847
1170
  Enabled: false
848
1171
 
849
1172
  Style/RedundantConstantBase:
850
- Enabled: true
1173
+ Enabled: false
851
1174
 
852
1175
  Style/RedundantCurrentDirectoryInPath:
853
- Enabled: true
1176
+ Enabled: false
854
1177
 
855
1178
  Style/RedundantDoubleSplatHashBraces:
856
- Enabled: true
1179
+ Enabled: false
857
1180
 
858
1181
  Style/RedundantEach:
859
- Enabled: true
1182
+ Enabled: false
1183
+
1184
+ Style/RedundantException:
1185
+ Enabled: false
860
1186
 
861
1187
  Style/RedundantFetchBlock:
862
1188
  Enabled: false
@@ -865,39 +1191,55 @@ Style/RedundantFileExtensionInRequire:
865
1191
  Enabled: false
866
1192
 
867
1193
  Style/RedundantFilterChain:
868
- Enabled: true
1194
+ Enabled: false
869
1195
 
870
- <% if rubocop_version >= "1.72" %>
871
1196
  Style/RedundantFormat:
872
1197
  Enabled: false
873
- <% end %>
1198
+
1199
+ Style/RedundantFreeze:
1200
+ Enabled: false
874
1201
 
875
1202
  Style/RedundantHeredocDelimiterQuotes:
876
- Enabled: true
1203
+ Enabled: false
877
1204
 
878
1205
  Style/RedundantInitialize:
879
1206
  Enabled: false
880
1207
 
881
- <% if rubocop_version >= "1.66" %>
1208
+ Style/RedundantInterpolation:
1209
+ Enabled: false
1210
+
882
1211
  Style/RedundantInterpolationUnfreeze:
883
1212
  Enabled: false
884
- <% end %>
885
1213
 
886
1214
  Style/RedundantLineContinuation:
1215
+ Enabled: false
1216
+
1217
+ <% if rubocop_version >= "1.85" %>
1218
+ Style/RedundantMinMaxBy:
887
1219
  Enabled: true
1220
+ <% end %>
1221
+
1222
+ Style/RedundantParentheses:
1223
+ Enabled: false
1224
+
1225
+ Style/RedundantPercentQ:
1226
+ Enabled: false
888
1227
 
889
1228
  Style/RedundantRegexpArgument:
890
- Enabled: true
1229
+ Enabled: false
891
1230
 
892
1231
  Style/RedundantRegexpCharacterClass:
893
1232
  Enabled: false
894
1233
 
895
1234
  Style/RedundantRegexpConstructor:
896
- Enabled: true
1235
+ Enabled: false
897
1236
 
898
1237
  Style/RedundantRegexpEscape:
899
1238
  Enabled: false
900
1239
 
1240
+ Style/RedundantSelf:
1241
+ Enabled: false
1242
+
901
1243
  Style/RedundantSelfAssignment:
902
1244
  Enabled: false
903
1245
 
@@ -907,39 +1249,69 @@ Style/RedundantSelfAssignmentBranch:
907
1249
  Style/RedundantSort:
908
1250
  Enabled: false
909
1251
 
1252
+ Style/RedundantSortBy:
1253
+ Enabled: false
1254
+
910
1255
  Style/RedundantStringEscape:
911
- Enabled: true
1256
+ Enabled: false
912
1257
 
913
1258
  Style/RegexpLiteral:
1259
+ Enabled: false
914
1260
  EnforcedStyle: mixed
915
1261
 
916
- Style/RescueStandardError:
1262
+ Style/RescueModifier:
917
1263
  Enabled: false
918
1264
 
919
- Style/ReturnNil:
920
- Enabled: true
1265
+ Style/RescueStandardError:
1266
+ Enabled: false
921
1267
 
922
1268
  Style/ReturnNilInPredicateMethodDefinition:
1269
+ Enabled: false
1270
+
1271
+ <% if rubocop_version >= "1.84" %>
1272
+ Style/ReverseFind:
923
1273
  Enabled: true
1274
+ <% end %>
1275
+
1276
+ Style/SafeNavigation:
1277
+ Enabled: false
924
1278
 
925
- <% if rubocop_version >= "1.68" %>
926
1279
  Style/SafeNavigationChainLength:
927
1280
  Enabled: false
1281
+
1282
+ Style/Sample:
1283
+ Enabled: false
1284
+
1285
+ <% if rubocop_version >= "1.85" %>
1286
+ Style/SelectByKind:
1287
+ Enabled: true
1288
+ <% end %>
1289
+
1290
+ <% if rubocop_version >= "1.85" %>
1291
+ Style/SelectByRange:
1292
+ Enabled: true
928
1293
  <% end %>
929
1294
 
930
1295
  Style/SelectByRegexp:
931
1296
  Enabled: false
932
1297
 
933
- <% if rubocop_version >= "1.64" %>
1298
+ Style/SelfAssignment:
1299
+ Enabled: false
1300
+
934
1301
  Style/SendWithLiteralMethodName:
935
1302
  Enabled: false
936
- <% end %>
1303
+
1304
+ Style/SignalException:
1305
+ Enabled: false
937
1306
 
938
1307
  Style/SingleArgumentDig:
939
1308
  Enabled: false
940
1309
 
941
1310
  Style/SingleLineDoEndBlock:
942
- Enabled: true
1311
+ Enabled: false
1312
+
1313
+ Style/SingleLineMethods:
1314
+ Enabled: false
943
1315
 
944
1316
  Style/SlicingWithRange:
945
1317
  Enabled: false
@@ -947,6 +1319,12 @@ Style/SlicingWithRange:
947
1319
  Style/SoleNestedConditional:
948
1320
  Enabled: false
949
1321
 
1322
+ Style/SpecialGlobalVars:
1323
+ Enabled: false
1324
+
1325
+ Style/StabbyLambdaParentheses:
1326
+ Enabled: false
1327
+
950
1328
  Style/StderrPuts:
951
1329
  Enabled: false
952
1330
 
@@ -957,54 +1335,80 @@ Style/StringConcatenation:
957
1335
  Enabled: false
958
1336
 
959
1337
  Style/StringLiterals:
960
- EnforcedStyle: double_quotes
1338
+ Enabled: false
961
1339
 
962
1340
  Style/StringLiteralsInInterpolation:
963
- EnforcedStyle: double_quotes
1341
+ Enabled: false
1342
+
1343
+ Style/Strip:
1344
+ Enabled: false
964
1345
 
965
1346
  Style/StructInheritance:
966
1347
  Enabled: false
967
1348
 
968
- <% if rubocop_version >= "1.64" %>
969
1349
  Style/SuperArguments:
970
1350
  Enabled: false
971
- <% end %>
972
1351
 
973
1352
  Style/SuperWithArgsParentheses:
974
- Enabled: true
1353
+ Enabled: false
975
1354
 
976
1355
  Style/SwapValues:
977
1356
  Enabled: false
978
1357
 
979
1358
  Style/SymbolArray:
1359
+ Enabled: false
980
1360
  EnforcedStyle: brackets
981
1361
 
982
- Style/TrailingBodyOnMethodDefinition:
1362
+ Style/SymbolProc:
1363
+ Enabled: false
1364
+
1365
+ <% if rubocop_version >= "1.85" %>
1366
+ Style/TallyMethod:
1367
+ Enabled: true
1368
+ <% end %>
1369
+
1370
+ Style/TernaryParentheses:
983
1371
  Enabled: false
984
1372
 
985
1373
  Style/TrailingCommaInArguments:
1374
+ Enabled: false
986
1375
  EnforcedStyleForMultiline: comma
987
1376
 
988
1377
  Style/TrailingCommaInArrayLiteral:
1378
+ Enabled: false
989
1379
  EnforcedStyleForMultiline: consistent_comma
990
1380
 
991
1381
  Style/TrailingCommaInHashLiteral:
1382
+ Enabled: false
992
1383
  EnforcedStyleForMultiline: consistent_comma
993
1384
 
994
- Style/TrailingMethodEndStatement:
1385
+ Style/TrailingUnderscoreVariable:
995
1386
  Enabled: false
996
1387
 
997
- Style/TrailingUnderscoreVariable:
1388
+ Style/TrivialAccessors:
998
1389
  Enabled: false
999
1390
 
1000
1391
  Style/UnpackFirst:
1001
1392
  Enabled: false
1002
1393
 
1394
+ Style/WhenThen:
1395
+ Enabled: false
1396
+
1397
+ Style/WhileUntilDo:
1398
+ Enabled: false
1399
+
1400
+ Style/WhileUntilModifier:
1401
+ Enabled: false
1402
+
1003
1403
  Style/WordArray:
1404
+ Enabled: false
1004
1405
  EnforcedStyle: brackets
1005
1406
 
1006
1407
  Style/YAMLFileRead:
1007
- Enabled: true
1408
+ Enabled: false
1008
1409
 
1009
1410
  Style/YodaCondition:
1010
1411
  Enabled: false
1412
+
1413
+ Style/ZeroLengthPredicate:
1414
+ Enabled: false