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