rubocop-shopify 2.6.0 → 2.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +21 -0
- data/rubocop.yml +91 -15
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abebcc9f7a47e8f2a5f64841561d43e4d0055566762ac7d8488eb91143673af6
|
4
|
+
data.tar.gz: c9ad11b0cde28e1f5dd9f9d65fe78670a20c24e251ec9cc1eefc224b95af6fe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13865ee2ece3d2e84eff8b9c952f5239a90800c77289ce2e4cd0bc83c83e0a55edced7783212de88a63f04f52cb81777209a58aeaa8243dbb6a29cc4d57a65d8
|
7
|
+
data.tar.gz: 9c086e67a99c20fb969a2e5da20896699813c3f88f36870180ce6a0322dc7f64dc9fccfdbc0c59c99bb6d52d1d20be2b0d3eeabb31c3a158bdd5293e3e5467dd
|
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2015-2022 Shopify Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/rubocop.yml
CHANGED
@@ -9,13 +9,13 @@ AllCops:
|
|
9
9
|
Bundler/OrderedGems:
|
10
10
|
Enabled: false
|
11
11
|
|
12
|
-
Gemspec/
|
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,17 +28,34 @@ 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
|
|
53
|
+
Layout/LineContinuationLeadingSpace:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
Layout/LineContinuationSpacing:
|
57
|
+
Enabled: false
|
58
|
+
|
42
59
|
Layout/LineEndStringConcatenationIndentation:
|
43
60
|
Enabled: true
|
44
61
|
EnforcedStyle: indented
|
@@ -48,6 +65,17 @@ Layout/LineLength:
|
|
48
65
|
AllowedPatterns:
|
49
66
|
- "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
|
50
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
|
+
|
51
79
|
Layout/MultilineMethodCallIndentation:
|
52
80
|
EnforcedStyle: indented
|
53
81
|
IndentationWidth: 2
|
@@ -79,6 +107,9 @@ Lint/BooleanSymbol:
|
|
79
107
|
Lint/ConstantDefinitionInBlock:
|
80
108
|
Enabled: false
|
81
109
|
|
110
|
+
Lint/ConstantOverwrittenInRescue:
|
111
|
+
Enabled: true
|
112
|
+
|
82
113
|
Lint/DeprecatedConstants:
|
83
114
|
Enabled: false
|
84
115
|
|
@@ -94,6 +125,9 @@ Lint/DuplicateCaseCondition:
|
|
94
125
|
Lint/DuplicateElsifCondition:
|
95
126
|
Enabled: false
|
96
127
|
|
128
|
+
Lint/DuplicateMagicComment:
|
129
|
+
Enabled: true
|
130
|
+
|
97
131
|
Lint/DuplicateRegexpCharacterClassElement:
|
98
132
|
Enabled: false
|
99
133
|
|
@@ -145,9 +179,6 @@ Lint/InterpolationCheck:
|
|
145
179
|
Lint/LambdaWithoutLiteralBlock:
|
146
180
|
Enabled: false
|
147
181
|
|
148
|
-
Lint/MissingCopEnableDirective:
|
149
|
-
Enabled: false
|
150
|
-
|
151
182
|
Lint/MixedRegexpCaptureTypes:
|
152
183
|
Enabled: false
|
153
184
|
|
@@ -160,6 +191,9 @@ Lint/NestedPercentLiteral:
|
|
160
191
|
Lint/NoReturnInBeginEndBlocks:
|
161
192
|
Enabled: false
|
162
193
|
|
194
|
+
Lint/NonAtomicFileOperation:
|
195
|
+
Enabled: false
|
196
|
+
|
163
197
|
Lint/NonDeterministicRequireOrder:
|
164
198
|
Enabled: false
|
165
199
|
|
@@ -196,6 +230,9 @@ Lint/RefinementImportMethods:
|
|
196
230
|
Lint/RegexpAsCondition:
|
197
231
|
Enabled: false
|
198
232
|
|
233
|
+
Lint/RequireRangeParentheses:
|
234
|
+
Enabled: true
|
235
|
+
|
199
236
|
Lint/RequireRelativeSelfPath:
|
200
237
|
Enabled: true
|
201
238
|
|
@@ -349,12 +386,12 @@ Naming/VariableNumber:
|
|
349
386
|
Security/CompoundHash:
|
350
387
|
Enabled: false
|
351
388
|
|
352
|
-
Security/MarshalLoad:
|
353
|
-
Enabled: false
|
354
|
-
|
355
389
|
Security/IoMethods:
|
356
390
|
Enabled: true
|
357
391
|
|
392
|
+
Security/MarshalLoad:
|
393
|
+
Enabled: false
|
394
|
+
|
358
395
|
Security/YAMLLoad:
|
359
396
|
Enabled: false
|
360
397
|
|
@@ -378,6 +415,7 @@ Style/BisectedAttrAccessor:
|
|
378
415
|
|
379
416
|
Style/CaseEquality:
|
380
417
|
AllowOnConstant: true
|
418
|
+
AllowOnSelfClass: true
|
381
419
|
|
382
420
|
Style/CaseLikeIf:
|
383
421
|
Enabled: false
|
@@ -385,6 +423,10 @@ Style/CaseLikeIf:
|
|
385
423
|
Style/ClassEqualityComparison:
|
386
424
|
Enabled: false
|
387
425
|
|
426
|
+
Style/ClassMethodsDefinitions:
|
427
|
+
EnforcedStyle: self_class
|
428
|
+
Enabled: true
|
429
|
+
|
388
430
|
Style/CollectionCompact:
|
389
431
|
Enabled: false
|
390
432
|
|
@@ -400,6 +442,9 @@ Style/CommandLiteral:
|
|
400
442
|
Style/CommentedKeyword:
|
401
443
|
Enabled: false
|
402
444
|
|
445
|
+
Style/ConcatArrayLiterals:
|
446
|
+
Enabled: true
|
447
|
+
|
403
448
|
Style/DateTime:
|
404
449
|
Enabled: true
|
405
450
|
|
@@ -421,6 +466,9 @@ Style/DoubleNegation:
|
|
421
466
|
Style/EmptyBlockParameter:
|
422
467
|
Enabled: false
|
423
468
|
|
469
|
+
Style/EmptyHeredoc:
|
470
|
+
Enabled: true
|
471
|
+
|
424
472
|
Style/EmptyLambdaParameter:
|
425
473
|
Enabled: false
|
426
474
|
|
@@ -511,12 +559,22 @@ Style/KeywordParametersOrder:
|
|
511
559
|
Style/Lambda:
|
512
560
|
Enabled: false
|
513
561
|
|
562
|
+
Style/MagicCommentFormat:
|
563
|
+
Enabled: true
|
564
|
+
ValueCapitalization: lowercase
|
565
|
+
|
566
|
+
Style/MapCompactWithConditionalBlock:
|
567
|
+
Enabled: false
|
568
|
+
|
514
569
|
Style/MapToHash:
|
515
570
|
Enabled: false
|
516
571
|
|
572
|
+
Style/MapToSet:
|
573
|
+
Enabled: false
|
574
|
+
|
517
575
|
Style/MethodCallWithArgsParentheses:
|
518
576
|
Enabled: true
|
519
|
-
|
577
|
+
AllowedMethods:
|
520
578
|
- require
|
521
579
|
- require_relative
|
522
580
|
- require_dependency
|
@@ -529,6 +587,9 @@ Style/MethodCallWithArgsParentheses:
|
|
529
587
|
Style/MinMax:
|
530
588
|
Enabled: false
|
531
589
|
|
590
|
+
Style/MinMaxComparison:
|
591
|
+
Enabled: true
|
592
|
+
|
532
593
|
Style/MixinGrouping:
|
533
594
|
Enabled: false
|
534
595
|
|
@@ -574,9 +635,6 @@ Style/NumberedParameters:
|
|
574
635
|
Style/NumberedParametersLimit:
|
575
636
|
Enabled: false
|
576
637
|
|
577
|
-
Style/NumericLiteralPrefix:
|
578
|
-
EnforcedOctalStyle: zero_only
|
579
|
-
|
580
638
|
Style/NumericLiterals:
|
581
639
|
Enabled: false
|
582
640
|
|
@@ -589,6 +647,9 @@ Style/ObjectThen:
|
|
589
647
|
Style/OpenStructUse:
|
590
648
|
Enabled: true
|
591
649
|
|
650
|
+
Style/OperatorMethodCall:
|
651
|
+
Enabled: false
|
652
|
+
|
592
653
|
Style/OptionalBooleanParameter:
|
593
654
|
Enabled: false
|
594
655
|
|
@@ -616,6 +677,15 @@ Style/RedundantCondition:
|
|
616
677
|
Style/RedundantConditional:
|
617
678
|
Enabled: false
|
618
679
|
|
680
|
+
Style/RedundantConstantBase:
|
681
|
+
Enabled: true
|
682
|
+
|
683
|
+
Style/RedundantDoubleSplatHashBraces:
|
684
|
+
Enabled: true
|
685
|
+
|
686
|
+
Style/RedundantEach:
|
687
|
+
Enabled: true
|
688
|
+
|
619
689
|
Style/RedundantFetchBlock:
|
620
690
|
Enabled: false
|
621
691
|
|
@@ -640,6 +710,9 @@ Style/RedundantSelfAssignmentBranch:
|
|
640
710
|
Style/RedundantSort:
|
641
711
|
Enabled: false
|
642
712
|
|
713
|
+
Style/RedundantStringEscape:
|
714
|
+
Enabled: true
|
715
|
+
|
643
716
|
Style/RegexpLiteral:
|
644
717
|
EnforcedStyle: mixed
|
645
718
|
|
@@ -686,7 +759,7 @@ Style/TrailingBodyOnMethodDefinition:
|
|
686
759
|
Enabled: false
|
687
760
|
|
688
761
|
Style/TrailingCommaInArguments:
|
689
|
-
|
762
|
+
EnforcedStyleForMultiline: comma
|
690
763
|
|
691
764
|
Style/TrailingCommaInArrayLiteral:
|
692
765
|
EnforcedStyleForMultiline: consistent_comma
|
@@ -708,3 +781,6 @@ Style/WordArray:
|
|
708
781
|
|
709
782
|
Style/YodaCondition:
|
710
783
|
Enabled: false
|
784
|
+
|
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.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:
|
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
|
@@ -31,13 +31,14 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
+
- LICENSE.md
|
34
35
|
- rubocop-cli.yml
|
35
36
|
- rubocop.yml
|
36
37
|
homepage: https://shopify.github.io/ruby-style-guide/
|
37
38
|
licenses:
|
38
39
|
- MIT
|
39
40
|
metadata:
|
40
|
-
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.1
|
41
42
|
allowed_push_host: https://rubygems.org
|
42
43
|
post_install_message:
|
43
44
|
rdoc_options: []
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
- !ruby/object:Gem::Version
|
55
56
|
version: '0'
|
56
57
|
requirements: []
|
57
|
-
rubygems_version: 3.
|
58
|
+
rubygems_version: 3.3.3
|
58
59
|
signing_key:
|
59
60
|
specification_version: 4
|
60
61
|
summary: Shopify's style guide for Ruby.
|