rubocop-shopify 2.0.1 → 2.1.0

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