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