rubocop-shopify 2.13.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/rubocop.yml +88 -9
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f9fe766156a714fd2dde1c34150b1f139a4571777747736958b47f2c3f8f582
|
4
|
+
data.tar.gz: bf715a9ce2769e3e6ef195b35e7937fbf717dea033a0b8b0067bc734ffe93a24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1da5f24b3a3c38959172e8293a28dec7bebadbef43b26caf9b9873bf35f4aedbf98577151231050d1636f23251523881e77efebe787f019db35abe06837db6f5
|
7
|
+
data.tar.gz: a8e8734d507b457526323530c8f5dd654893ea77a0f78101004f1b9f93f9f5d9e506106f527bf4c636506645ead244111e1585cac63e5826bd16a5aac2c1ad16
|
data/rubocop.yml
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
<%
|
2
|
+
require "rubocop/shopify/gem_version_string_comparable_backport"
|
3
|
+
|
4
|
+
rubocop_version = Gem.loaded_specs.fetch("rubocop").version
|
5
|
+
%>
|
6
|
+
|
1
7
|
inherit_mode:
|
2
8
|
merge:
|
3
9
|
- Exclude
|
@@ -5,6 +11,7 @@ inherit_mode:
|
|
5
11
|
|
6
12
|
AllCops:
|
7
13
|
StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/
|
14
|
+
NewCops: disable # New cops will be triaged by style guide maintainers instead.
|
8
15
|
|
9
16
|
Bundler/OrderedGems:
|
10
17
|
Enabled: false
|
@@ -54,10 +61,10 @@ Layout/HashAlignment:
|
|
54
61
|
EnforcedLastArgumentHashStyle: ignore_implicit
|
55
62
|
|
56
63
|
Layout/LineContinuationLeadingSpace:
|
57
|
-
Enabled:
|
64
|
+
Enabled: true
|
58
65
|
|
59
66
|
Layout/LineContinuationSpacing:
|
60
|
-
Enabled:
|
67
|
+
Enabled: true
|
61
68
|
|
62
69
|
Layout/LineEndStringConcatenationIndentation:
|
63
70
|
Enabled: true
|
@@ -182,9 +189,24 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
182
189
|
Lint/InterpolationCheck:
|
183
190
|
Enabled: false
|
184
191
|
|
192
|
+
<% if rubocop_version >= "1.59" %>
|
193
|
+
Lint/ItWithoutArgumentsInBlock:
|
194
|
+
Enabled: true
|
195
|
+
<% end %>
|
196
|
+
|
185
197
|
Lint/LambdaWithoutLiteralBlock:
|
186
198
|
Enabled: false
|
187
199
|
|
200
|
+
<% if rubocop_version >= "1.58" %>
|
201
|
+
Lint/LiteralAssignmentInCondition:
|
202
|
+
Enabled: true
|
203
|
+
<% end %>
|
204
|
+
|
205
|
+
<% if rubocop_version >= "1.53" %>
|
206
|
+
Lint/MixedCaseRange:
|
207
|
+
Enabled: true
|
208
|
+
<% end %>
|
209
|
+
|
188
210
|
Lint/MixedRegexpCaptureTypes:
|
189
211
|
Enabled: false
|
190
212
|
|
@@ -195,7 +217,7 @@ Lint/NestedPercentLiteral:
|
|
195
217
|
Enabled: false
|
196
218
|
|
197
219
|
Lint/NoReturnInBeginEndBlocks:
|
198
|
-
Enabled:
|
220
|
+
Enabled: true
|
199
221
|
|
200
222
|
Lint/NonAtomicFileOperation:
|
201
223
|
Enabled: false
|
@@ -218,6 +240,11 @@ Lint/RaiseException:
|
|
218
240
|
Lint/RedundantDirGlobSort:
|
219
241
|
Enabled: false
|
220
242
|
|
243
|
+
<% if rubocop_version >= "1.53" %>
|
244
|
+
Lint/RedundantRegexpQuantifiers:
|
245
|
+
Enabled: true
|
246
|
+
<% end %>
|
247
|
+
|
221
248
|
Lint/RedundantRequireStatement:
|
222
249
|
Enabled: false
|
223
250
|
|
@@ -372,10 +399,10 @@ Naming/InclusiveLanguage:
|
|
372
399
|
- leader
|
373
400
|
AllowedRegex:
|
374
401
|
- !ruby/regexp '/master[_\s\.]key/' # Rails master key
|
375
|
-
-
|
376
|
-
- '
|
377
|
-
- '
|
378
|
-
- '
|
402
|
+
- !ruby/regexp /\w*:\/\/\S+/ # URLs (e.g. https://github.com/org/repo/blob/master/README.md)
|
403
|
+
- !ruby/regexp '/(?:blob|tree)/master/' # e.g. github.com/org/repo/blob/master/README.md, without https://
|
404
|
+
- !ruby/regexp '/origin[ \/]master/' # Legacy default git branch name
|
405
|
+
- !ruby/regexp '/(?<=[a-z])master|master(?=[a-z])/' # "master" substring within a longer word
|
379
406
|
|
380
407
|
Naming/MemoizedInstanceVariableName:
|
381
408
|
Enabled: false
|
@@ -504,7 +531,7 @@ Style/Encoding:
|
|
504
531
|
Enabled: false
|
505
532
|
|
506
533
|
Style/EndlessMethod:
|
507
|
-
Enabled:
|
534
|
+
Enabled: true
|
508
535
|
|
509
536
|
Style/EnvHome:
|
510
537
|
Enabled: false
|
@@ -512,6 +539,9 @@ Style/EnvHome:
|
|
512
539
|
Style/EvalWithLocation:
|
513
540
|
Enabled: false
|
514
541
|
|
542
|
+
Style/ExactRegexpMatch:
|
543
|
+
Enabled: true
|
544
|
+
|
515
545
|
Style/ExpandPathArguments:
|
516
546
|
Enabled: false
|
517
547
|
|
@@ -538,6 +568,7 @@ Style/FormatStringToken:
|
|
538
568
|
|
539
569
|
Style/FrozenStringLiteralComment:
|
540
570
|
SafeAutoCorrect: true
|
571
|
+
EnforcedStyle: always_true
|
541
572
|
Details: 'Add `# frozen_string_literal: true` to the top of the file. Frozen string
|
542
573
|
literals will become the default in a future Ruby version, and we want to make
|
543
574
|
sure we''re ready.'
|
@@ -573,7 +604,7 @@ Style/IfUnlessModifier:
|
|
573
604
|
Enabled: false
|
574
605
|
|
575
606
|
Style/IfWithBooleanLiteralBranches:
|
576
|
-
Enabled:
|
607
|
+
Enabled: true
|
577
608
|
|
578
609
|
Style/InPatternThen:
|
579
610
|
Enabled: true
|
@@ -699,6 +730,11 @@ Style/RandomWithOffset:
|
|
699
730
|
Style/RedundantArgument:
|
700
731
|
Enabled: false
|
701
732
|
|
733
|
+
<% if rubocop_version >= "1.52" %>
|
734
|
+
Style/RedundantArrayConstructor:
|
735
|
+
Enabled: true
|
736
|
+
<% end %>
|
737
|
+
|
702
738
|
Style/RedundantAssignment:
|
703
739
|
Enabled: false
|
704
740
|
|
@@ -711,6 +747,11 @@ Style/RedundantConditional:
|
|
711
747
|
Style/RedundantConstantBase:
|
712
748
|
Enabled: true
|
713
749
|
|
750
|
+
<% if rubocop_version >= "1.53" %>
|
751
|
+
Style/RedundantCurrentDirectoryInPath:
|
752
|
+
Enabled: true
|
753
|
+
<% end %>
|
754
|
+
|
714
755
|
Style/RedundantDoubleSplatHashBraces:
|
715
756
|
Enabled: true
|
716
757
|
|
@@ -723,6 +764,11 @@ Style/RedundantFetchBlock:
|
|
723
764
|
Style/RedundantFileExtensionInRequire:
|
724
765
|
Enabled: false
|
725
766
|
|
767
|
+
<% if rubocop_version >= "1.52" %>
|
768
|
+
Style/RedundantFilterChain:
|
769
|
+
Enabled: true
|
770
|
+
<% end %>
|
771
|
+
|
726
772
|
Style/RedundantHeredocDelimiterQuotes:
|
727
773
|
Enabled: true
|
728
774
|
|
@@ -732,9 +778,19 @@ Style/RedundantInitialize:
|
|
732
778
|
Style/RedundantLineContinuation:
|
733
779
|
Enabled: true
|
734
780
|
|
781
|
+
<% if rubocop_version >= "1.53" %>
|
782
|
+
Style/RedundantRegexpArgument:
|
783
|
+
Enabled: true
|
784
|
+
<% end %>
|
785
|
+
|
735
786
|
Style/RedundantRegexpCharacterClass:
|
736
787
|
Enabled: false
|
737
788
|
|
789
|
+
<% if rubocop_version >= "1.52" %>
|
790
|
+
Style/RedundantRegexpConstructor:
|
791
|
+
Enabled: true
|
792
|
+
<% end %>
|
793
|
+
|
738
794
|
Style/RedundantRegexpEscape:
|
739
795
|
Enabled: false
|
740
796
|
|
@@ -756,12 +812,25 @@ Style/RegexpLiteral:
|
|
756
812
|
Style/RescueStandardError:
|
757
813
|
Enabled: false
|
758
814
|
|
815
|
+
Style/ReturnNil:
|
816
|
+
Enabled: true
|
817
|
+
|
818
|
+
<% if rubocop_version >= "1.53" %>
|
819
|
+
Style/ReturnNilInPredicateMethodDefinition:
|
820
|
+
Enabled: true
|
821
|
+
<% end %>
|
822
|
+
|
759
823
|
Style/SelectByRegexp:
|
760
824
|
Enabled: false
|
761
825
|
|
762
826
|
Style/SingleArgumentDig:
|
763
827
|
Enabled: false
|
764
828
|
|
829
|
+
<% if rubocop_version >= "1.57" %>
|
830
|
+
Style/SingleLineDoEndBlock:
|
831
|
+
Enabled: true
|
832
|
+
<% end %>
|
833
|
+
|
765
834
|
Style/SlicingWithRange:
|
766
835
|
Enabled: false
|
767
836
|
|
@@ -786,6 +855,11 @@ Style/StringLiteralsInInterpolation:
|
|
786
855
|
Style/StructInheritance:
|
787
856
|
Enabled: false
|
788
857
|
|
858
|
+
<% if rubocop_version >= "1.58" %>
|
859
|
+
Style/SuperWithArgsParentheses:
|
860
|
+
Enabled: true
|
861
|
+
<% end %>
|
862
|
+
|
789
863
|
Style/SwapValues:
|
790
864
|
Enabled: false
|
791
865
|
|
@@ -816,5 +890,10 @@ Style/UnpackFirst:
|
|
816
890
|
Style/WordArray:
|
817
891
|
EnforcedStyle: brackets
|
818
892
|
|
893
|
+
<% if rubocop_version >= "1.53" %>
|
894
|
+
Style/YAMLFileRead:
|
895
|
+
Enabled: true
|
896
|
+
<% end %>
|
897
|
+
|
819
898
|
Style/YodaCondition:
|
820
899
|
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.15.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: 2024-02-15 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.51'
|
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.51'
|
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.15.0
|
42
42
|
allowed_push_host: https://rubygems.org
|
43
43
|
post_install_message:
|
44
44
|
rdoc_options: []
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
|
-
rubygems_version: 3.
|
58
|
+
rubygems_version: 3.5.6
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Shopify's style guide for Ruby.
|