rubocop-shopify 2.10.1 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rubocop.yml +61 -12
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21ac23c9ebfbd7f589aa8524df6f3a183ee125d9b25016c2a8ed83b93d46ce9e
|
4
|
+
data.tar.gz: 578b7168d89eaf4cbea64e7003e8cb9cf238947f316e6bf6bde5fd2f89960816
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 527471d3e1919a3e0f858c2e67a5039b5cdee05693b79d29fdd09d55096e73ce92bb16ba4d96af088ca8ba1fd804dc3c376237c3486e470953b4a6570a26c672
|
7
|
+
data.tar.gz: 9b5629342bc006f44e9d8905852d715d4ab01d049bb32008325ce4fc80b6c2f60e8c47bd282748dcacb86eee6002025548a572f571e31d3fa1d44e366b9d4568
|
data/rubocop.yml
CHANGED
@@ -12,10 +12,10 @@ Bundler/OrderedGems:
|
|
12
12
|
Gemspec/DeprecatedAttributeAssignment:
|
13
13
|
Enabled: true
|
14
14
|
|
15
|
-
Gemspec/
|
15
|
+
Gemspec/RequireMFA:
|
16
16
|
Enabled: false
|
17
17
|
|
18
|
-
Gemspec/
|
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
|
-
|
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: true
|
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/
|
736
|
-
|
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.
|
4
|
+
version: 2.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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.
|
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.
|
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.
|
41
|
+
source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.11.0
|
42
42
|
allowed_push_host: https://rubygems.org
|
43
43
|
post_install_message:
|
44
44
|
rdoc_options: []
|