rubocop-shopify 1.0.7 → 2.2.0

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