rubocop-shopify 2.10.1 → 2.11.1

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 +61 -12
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3896ec2bc31920668db3e319ca82b9dcd7801bea9fb6ef17ec1de4c7ad0aab9
4
- data.tar.gz: 21171a1e60227f3e2d6a2e0536800c257bb1c6e4beb560d173236a460c0d3c37
3
+ metadata.gz: abebcc9f7a47e8f2a5f64841561d43e4d0055566762ac7d8488eb91143673af6
4
+ data.tar.gz: c9ad11b0cde28e1f5dd9f9d65fe78670a20c24e251ec9cc1eefc224b95af6fe5
5
5
  SHA512:
6
- metadata.gz: 9aaa1b62c1caf2eae691cecfc15dd1ab03bcaee963662593445e575a24586fcfa2f0e9faf5b4be85b64dbf9cd07056856d15283f9c1fb97e860fb11b1ddd835b
7
- data.tar.gz: c317c99a4e08450731fa9729bf44b59f43c6b8680fb510b937d20324c33b04911ff0f462837bfd1fdf83872cb91d86192e48d1b0ce513fbc747e25abe9ebc65d
6
+ metadata.gz: 13865ee2ece3d2e84eff8b9c952f5239a90800c77289ce2e4cd0bc83c83e0a55edced7783212de88a63f04f52cb81777209a58aeaa8243dbb6a29cc4d57a65d8
7
+ data.tar.gz: 9c086e67a99c20fb969a2e5da20896699813c3f88f36870180ce6a0322dc7f64dc9fccfdbc0c59c99bb6d52d1d20be2b0d3eeabb31c3a158bdd5293e3e5467dd
data/rubocop.yml CHANGED
@@ -12,10 +12,10 @@ Bundler/OrderedGems:
12
12
  Gemspec/DeprecatedAttributeAssignment:
13
13
  Enabled: true
14
14
 
15
- Gemspec/RequiredRubyVersion:
15
+ Gemspec/RequireMFA:
16
16
  Enabled: false
17
17
 
18
- Gemspec/RequireMFA:
18
+ Gemspec/RequiredRubyVersion:
19
19
  Enabled: false
20
20
 
21
21
  Layout/ArgumentAlignment:
@@ -28,14 +28,25 @@ Layout/EndAlignment:
28
28
  EnforcedStyleAlignWith: variable
29
29
 
30
30
  Layout/FirstArgumentIndentation:
31
- Enabled: false
31
+ EnforcedStyle: consistent
32
32
 
33
33
  Layout/FirstArrayElementIndentation:
34
34
  EnforcedStyle: consistent
35
35
 
36
+ Layout/FirstArrayElementLineBreak:
37
+ Enabled: true
38
+ AllowMultilineFinalElement: true
39
+
36
40
  Layout/FirstHashElementIndentation:
37
41
  EnforcedStyle: consistent
38
42
 
43
+ Layout/FirstHashElementLineBreak:
44
+ Enabled: true
45
+
46
+ Layout/FirstMethodArgumentLineBreak:
47
+ Enabled: true
48
+ AllowMultilineFinalElement: true
49
+
39
50
  Layout/HashAlignment:
40
51
  EnforcedLastArgumentHashStyle: ignore_implicit
41
52
 
@@ -54,6 +65,17 @@ Layout/LineLength:
54
65
  AllowedPatterns:
55
66
  - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
56
67
 
68
+ Layout/MultilineArrayLineBreaks:
69
+ Enabled: true
70
+ AllowMultilineFinalElement: true
71
+
72
+ Layout/MultilineHashKeyLineBreaks:
73
+ Enabled: true
74
+
75
+ Layout/MultilineMethodArgumentLineBreaks:
76
+ Enabled: true
77
+ AllowMultilineFinalElement: true
78
+
57
79
  Layout/MultilineMethodCallIndentation:
58
80
  EnforcedStyle: indented
59
81
  IndentationWidth: 2
@@ -103,6 +125,9 @@ Lint/DuplicateCaseCondition:
103
125
  Lint/DuplicateElsifCondition:
104
126
  Enabled: false
105
127
 
128
+ Lint/DuplicateMagicComment:
129
+ Enabled: true
130
+
106
131
  Lint/DuplicateRegexpCharacterClassElement:
107
132
  Enabled: false
108
133
 
@@ -361,12 +386,12 @@ Naming/VariableNumber:
361
386
  Security/CompoundHash:
362
387
  Enabled: false
363
388
 
364
- Security/MarshalLoad:
365
- Enabled: false
366
-
367
389
  Security/IoMethods:
368
390
  Enabled: true
369
391
 
392
+ Security/MarshalLoad:
393
+ Enabled: false
394
+
370
395
  Security/YAMLLoad:
371
396
  Enabled: false
372
397
 
@@ -398,6 +423,10 @@ Style/CaseLikeIf:
398
423
  Style/ClassEqualityComparison:
399
424
  Enabled: false
400
425
 
426
+ Style/ClassMethodsDefinitions:
427
+ EnforcedStyle: self_class
428
+ Enabled: true
429
+
401
430
  Style/CollectionCompact:
402
431
  Enabled: false
403
432
 
@@ -413,6 +442,9 @@ Style/CommandLiteral:
413
442
  Style/CommentedKeyword:
414
443
  Enabled: false
415
444
 
445
+ Style/ConcatArrayLiterals:
446
+ Enabled: true
447
+
416
448
  Style/DateTime:
417
449
  Enabled: true
418
450
 
@@ -537,6 +569,9 @@ Style/MapCompactWithConditionalBlock:
537
569
  Style/MapToHash:
538
570
  Enabled: false
539
571
 
572
+ Style/MapToSet:
573
+ Enabled: false
574
+
540
575
  Style/MethodCallWithArgsParentheses:
541
576
  Enabled: true
542
577
  AllowedMethods:
@@ -552,6 +587,9 @@ Style/MethodCallWithArgsParentheses:
552
587
  Style/MinMax:
553
588
  Enabled: false
554
589
 
590
+ Style/MinMaxComparison:
591
+ Enabled: true
592
+
555
593
  Style/MixinGrouping:
556
594
  Enabled: false
557
595
 
@@ -597,9 +635,6 @@ Style/NumberedParameters:
597
635
  Style/NumberedParametersLimit:
598
636
  Enabled: false
599
637
 
600
- Style/NumericLiteralPrefix:
601
- EnforcedOctalStyle: zero_only
602
-
603
638
  Style/NumericLiterals:
604
639
  Enabled: false
605
640
 
@@ -612,6 +647,9 @@ Style/ObjectThen:
612
647
  Style/OpenStructUse:
613
648
  Enabled: true
614
649
 
650
+ Style/OperatorMethodCall:
651
+ Enabled: false
652
+
615
653
  Style/OptionalBooleanParameter:
616
654
  Enabled: false
617
655
 
@@ -639,6 +677,15 @@ Style/RedundantCondition:
639
677
  Style/RedundantConditional:
640
678
  Enabled: false
641
679
 
680
+ Style/RedundantConstantBase:
681
+ Enabled: true
682
+
683
+ Style/RedundantDoubleSplatHashBraces:
684
+ Enabled: true
685
+
686
+ Style/RedundantEach:
687
+ Enabled: true
688
+
642
689
  Style/RedundantFetchBlock:
643
690
  Enabled: false
644
691
 
@@ -663,6 +710,9 @@ Style/RedundantSelfAssignmentBranch:
663
710
  Style/RedundantSort:
664
711
  Enabled: false
665
712
 
713
+ Style/RedundantStringEscape:
714
+ Enabled: true
715
+
666
716
  Style/RegexpLiteral:
667
717
  EnforcedStyle: mixed
668
718
 
@@ -732,6 +782,5 @@ Style/WordArray:
732
782
  Style/YodaCondition:
733
783
  Enabled: false
734
784
 
735
- Style/ClassMethodsDefinitions:
736
- EnforcedStyle: self_class
737
- Enabled: true
785
+ Style/YodaExpression:
786
+ Enabled: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.1
4
+ version: 2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2023-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.35'
19
+ version: '1.42'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.35'
26
+ version: '1.42'
27
27
  description: Gem containing the rubocop.yml config that corresponds to the implementation
28
28
  of the Shopify's style guide for Ruby.
29
29
  email: gems@shopify.com
@@ -38,7 +38,7 @@ homepage: https://shopify.github.io/ruby-style-guide/
38
38
  licenses:
39
39
  - MIT
40
40
  metadata:
41
- source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.10.1
41
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.11.1
42
42
  allowed_push_host: https://rubygems.org
43
43
  post_install_message:
44
44
  rdoc_options: []