rubocop-shopify 2.15.1 → 2.17.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/rubocop-cli.yml +0 -3
  3. data/rubocop.yml +152 -44
  4. metadata +7 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eabc8ef14da2c1c48ffa6d5a5fc4be36555734429f4dc747f111fef9dbce7a9
4
- data.tar.gz: 435bae5559a688f995d307f2084e8dacb45ccbaa49f0e566732d6c41db09ce28
3
+ metadata.gz: d06ff1a26f6a22415f6d85a90cb43de4d7d92b4cfb05ae5c107a47fd339550f9
4
+ data.tar.gz: ec7c70b47536b44cac83dd6e30266f48c40c1c115b98e0adb41a59598d306920
5
5
  SHA512:
6
- metadata.gz: e1000f7c0ac624de18312c0e7c18478c34c13d8fe9717dd8d237cfbceabbf3aa4b165677a2738f10b8580fa6a4996ddc6c1cdee5477992577b88caabec16ec90
7
- data.tar.gz: 013d1bd026ddbc32bebca7e51446f2dcf2a6e2cc34cf659d03a2e161d809e59aa7439fd58150f38952861c56a72b8e985014c04e0ca3c33d27f315f0f34a0cd6
6
+ metadata.gz: e58145297c9bd16a0036607861312678f31db5c0537786d4edeb15e03fbf91009753118b29faddb6908681b9cafcd908a35cfa8f417e9eac5eab4b8e9234d0b6
7
+ data.tar.gz: 4e4078fa41efb12ca9876c475c96040de7a4187c8d72a849ac3a28abe9cf7403756c7cb9a6ce1d51a8d2b142a37f4f6ed525cc5bb8b9860451c6b99ec7480fe6
data/rubocop-cli.yml CHANGED
@@ -10,9 +10,6 @@ AllCops:
10
10
  Exclude:
11
11
  - 'vendor/**/*'
12
12
 
13
- # Mac OS Catalina ships with 2.6.3
14
- TargetRubyVersion: 2.6
15
-
16
13
  # We disable this at entrypoint.
17
14
  # Due to CLI apps being invoked via an entry point,
18
15
  # we can exclude this from all files
data/rubocop.yml CHANGED
@@ -16,6 +16,11 @@ AllCops:
16
16
  Bundler/OrderedGems:
17
17
  Enabled: false
18
18
 
19
+ <% if rubocop_version >= "1.65" %>
20
+ Gemspec/AddRuntimeDependency:
21
+ Enabled: false
22
+ <% end %>
23
+
19
24
  Gemspec/DeprecatedAttributeAssignment:
20
25
  Enabled: true
21
26
 
@@ -60,6 +65,11 @@ Layout/FirstMethodArgumentLineBreak:
60
65
  Layout/HashAlignment:
61
66
  EnforcedLastArgumentHashStyle: ignore_implicit
62
67
 
68
+ <% if rubocop_version >= "1.67" %>
69
+ Layout/LeadingCommentSpace:
70
+ AllowRBSInlineAnnotation: true
71
+ <% end %>
72
+
63
73
  Layout/LineContinuationLeadingSpace:
64
74
  Enabled: true
65
75
 
@@ -71,9 +81,7 @@ Layout/LineEndStringConcatenationIndentation:
71
81
  EnforcedStyle: indented
72
82
 
73
83
  Layout/LineLength:
74
- AllowedPatterns:
75
- - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
76
- - "\\A\\s*def test_\\w+\\s*\\Z"
84
+ Enabled: false
77
85
 
78
86
  Layout/MultilineArrayLineBreaks:
79
87
  Enabled: true
@@ -111,6 +119,11 @@ Lint/AmbiguousOperatorPrecedence:
111
119
  Lint/AmbiguousRange:
112
120
  Enabled: false
113
121
 
122
+ <% if rubocop_version >= "1.71" %>
123
+ Lint/ArrayLiteralInRegexp:
124
+ Enabled: false
125
+ <% end %>
126
+
114
127
  Lint/BooleanSymbol:
115
128
  Enabled: false
116
129
 
@@ -120,6 +133,16 @@ Lint/ConstantDefinitionInBlock:
120
133
  Lint/ConstantOverwrittenInRescue:
121
134
  Enabled: true
122
135
 
136
+ <% if rubocop_version >= "1.70" %>
137
+ Lint/ConstantReassignment:
138
+ Enabled: false
139
+ <% end %>
140
+
141
+ <% if rubocop_version >= "1.72" %>
142
+ Lint/CopDirectiveSyntax:
143
+ Enabled: false
144
+ <% end %>
145
+
123
146
  Lint/DeprecatedConstants:
124
147
  Enabled: false
125
148
 
@@ -150,6 +173,11 @@ Lint/DuplicateRequire:
150
173
  Lint/DuplicateRescueException:
151
174
  Enabled: false
152
175
 
176
+ <% if rubocop_version >= "1.67" %>
177
+ Lint/DuplicateSetElement:
178
+ Enabled: false
179
+ <% end %>
180
+
153
181
  Lint/EmptyBlock:
154
182
  Enabled: false
155
183
 
@@ -180,6 +208,11 @@ Lint/FloatComparison:
180
208
  Lint/HashCompareByIdentity:
181
209
  Enabled: false
182
210
 
211
+ <% if rubocop_version >= "1.69" %>
212
+ Lint/HashNewWithKeywordArgumentsAsDefault:
213
+ Enabled: false
214
+ <% end %>
215
+
183
216
  Lint/IdentityComparison:
184
217
  Enabled: false
185
218
 
@@ -189,23 +222,17 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
189
222
  Lint/InterpolationCheck:
190
223
  Enabled: false
191
224
 
192
- <% if rubocop_version >= "1.59" %>
193
225
  Lint/ItWithoutArgumentsInBlock:
194
226
  Enabled: true
195
- <% end %>
196
227
 
197
228
  Lint/LambdaWithoutLiteralBlock:
198
229
  Enabled: false
199
230
 
200
- <% if rubocop_version >= "1.58" %>
201
231
  Lint/LiteralAssignmentInCondition:
202
232
  Enabled: true
203
- <% end %>
204
233
 
205
- <% if rubocop_version >= "1.53" %>
206
234
  Lint/MixedCaseRange:
207
235
  Enabled: true
208
- <% end %>
209
236
 
210
237
  Lint/MixedRegexpCaptureTypes:
211
238
  Enabled: false
@@ -228,6 +255,11 @@ Lint/NonDeterministicRequireOrder:
228
255
  Lint/NumberedParameterAssignment:
229
256
  Enabled: false
230
257
 
258
+ <% if rubocop_version >= "1.69" %>
259
+ Lint/NumericOperationWithConstantResult:
260
+ Enabled: false
261
+ <% end %>
262
+
231
263
  Lint/OrAssignmentToConstant:
232
264
  Enabled: false
233
265
 
@@ -240,10 +272,8 @@ Lint/RaiseException:
240
272
  Lint/RedundantDirGlobSort:
241
273
  Enabled: false
242
274
 
243
- <% if rubocop_version >= "1.53" %>
244
275
  Lint/RedundantRegexpQuantifiers:
245
276
  Enabled: true
246
- <% end %>
247
277
 
248
278
  Lint/RedundantRequireStatement:
249
279
  Enabled: false
@@ -251,6 +281,11 @@ Lint/RedundantRequireStatement:
251
281
  Lint/RedundantSafeNavigation:
252
282
  Enabled: false
253
283
 
284
+ <% if rubocop_version >= "1.72" %>
285
+ Lint/RedundantTypeConversion:
286
+ Enabled: false
287
+ <% end %>
288
+
254
289
  Lint/RedundantWithIndex:
255
290
  Enabled: false
256
291
 
@@ -296,9 +331,19 @@ Lint/ShadowedArgument:
296
331
  Lint/ShadowingOuterLocalVariable:
297
332
  Enabled: false
298
333
 
334
+ <% if rubocop_version >= "1.70" %>
335
+ Lint/SharedMutableDefault:
336
+ Enabled: false
337
+ <% end %>
338
+
299
339
  Lint/StructNewOverride:
300
340
  Enabled: false
301
341
 
342
+ <% if rubocop_version >= "1.72" %>
343
+ Lint/SuppressedExceptionInNumberConversion:
344
+ Enabled: false
345
+ <% end %>
346
+
302
347
  Lint/SymbolConversion:
303
348
  Enabled: false
304
349
 
@@ -317,6 +362,11 @@ Lint/TrailingCommaInAttributeDeclaration:
317
362
  Lint/TripleQuotes:
318
363
  Enabled: false
319
364
 
365
+ <% if rubocop_version >= "1.68" %>
366
+ Lint/UnescapedBracketInRegexp:
367
+ Enabled: false
368
+ <% end %>
369
+
320
370
  Lint/UnexpectedBlockArity:
321
371
  Enabled: false
322
372
 
@@ -335,9 +385,24 @@ Lint/UriEscapeUnescape:
335
385
  Lint/UriRegexp:
336
386
  Enabled: false
337
387
 
388
+ <% if rubocop_version >= "1.72" %>
389
+ Lint/UselessConstantScoping:
390
+ Enabled: false
391
+ <% end %>
392
+
393
+ <% if rubocop_version >= "1.69" %>
394
+ Lint/UselessDefined:
395
+ Enabled: false
396
+ <% end %>
397
+
338
398
  Lint/UselessMethodDefinition:
339
399
  Enabled: false
340
400
 
401
+ <% if rubocop_version >= "1.66" %>
402
+ Lint/UselessNumericOperation:
403
+ Enabled: false
404
+ <% end %>
405
+
341
406
  Lint/UselessRescue:
342
407
  Enabled: true
343
408
 
@@ -389,21 +454,6 @@ Naming/HeredocDelimiterCase:
389
454
  Naming/HeredocDelimiterNaming:
390
455
  Enabled: false
391
456
 
392
- Naming/InclusiveLanguage:
393
- Enabled: true
394
- FlaggedTerms:
395
- master:
396
- Suggestions:
397
- - main
398
- - primary
399
- - leader
400
- AllowedRegex:
401
- - !ruby/regexp '/master[_\s\.]key/' # Rails master key
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
406
-
407
457
  Naming/MemoizedInstanceVariableName:
408
458
  Enabled: false
409
459
 
@@ -414,7 +464,11 @@ Naming/MethodName:
414
464
  Naming/MethodParameterName:
415
465
  Enabled: false
416
466
 
467
+ <% if rubocop_version >= "1.76" %>
468
+ Naming/PredicatePrefix:
469
+ <% else %>
417
470
  Naming/PredicateName:
471
+ <% end %>
418
472
  NamePrefix:
419
473
  - is_
420
474
  ForbiddenPrefixes:
@@ -447,6 +501,11 @@ Style/AccessorGrouping:
447
501
  Style/Alias:
448
502
  EnforcedStyle: prefer_alias_method
449
503
 
504
+ <% if rubocop_version >= "1.68" %>
505
+ Style/AmbiguousEndlessMethodDefinition:
506
+ Enabled: false
507
+ <% end %>
508
+
450
509
  Style/ArgumentsForwarding:
451
510
  Enabled: false
452
511
 
@@ -456,6 +515,11 @@ Style/ArrayIntersect:
456
515
  Style/BisectedAttrAccessor:
457
516
  Enabled: false
458
517
 
518
+ <% if rubocop_version >= "1.68" %>
519
+ Style/BitwisePredicate:
520
+ Enabled: false
521
+ <% end %>
522
+
459
523
  Style/CaseEquality:
460
524
  AllowOnConstant: true
461
525
  AllowOnSelfClass: true
@@ -476,6 +540,11 @@ Style/CollectionCompact:
476
540
  Style/ColonMethodDefinition:
477
541
  Enabled: false
478
542
 
543
+ <% if rubocop_version >= "1.68" %>
544
+ Style/CombinableDefined:
545
+ Enabled: false
546
+ <% end %>
547
+
479
548
  Style/CombinableLoops:
480
549
  Enabled: false
481
550
 
@@ -497,6 +566,11 @@ Style/DataInheritance:
497
566
  Style/DateTime:
498
567
  Enabled: true
499
568
 
569
+ <% if rubocop_version >= "1.69" %>
570
+ Style/DigChain:
571
+ Enabled: false
572
+ <% end %>
573
+
500
574
  Style/Dir:
501
575
  Enabled: false
502
576
 
@@ -554,9 +628,19 @@ Style/FetchEnvVar:
554
628
  Style/FileEmpty:
555
629
  Enabled: true
556
630
 
631
+ <% if rubocop_version >= "1.69" %>
632
+ Style/FileNull:
633
+ Enabled: false
634
+ <% end %>
635
+
557
636
  Style/FileRead:
558
637
  Enabled: false
559
638
 
639
+ <% if rubocop_version >= "1.69" %>
640
+ Style/FileTouch:
641
+ Enabled: false
642
+ <% end %>
643
+
560
644
  Style/FileWrite:
561
645
  Enabled: false
562
646
 
@@ -591,8 +675,10 @@ Style/HashExcept:
591
675
  Style/HashLikeCase:
592
676
  Enabled: false
593
677
 
594
- Style/HashSyntax:
595
- EnforcedShorthandSyntax: either
678
+ <% if rubocop_version >= "1.71" %>
679
+ Style/HashSlice:
680
+ Enabled: false
681
+ <% end %>
596
682
 
597
683
  Style/HashTransformKeys:
598
684
  Enabled: false
@@ -615,6 +701,16 @@ Style/InverseMethods:
615
701
  Style/InvertibleUnlessCondition:
616
702
  Enabled: true
617
703
 
704
+ <% if rubocop_version >= "1.70" %>
705
+ Style/ItAssignment:
706
+ Enabled: false
707
+ <% end %>
708
+
709
+ <% if rubocop_version >= "1.68" %>
710
+ Style/KeywordArgumentsMerging:
711
+ Enabled: false
712
+ <% end %>
713
+
618
714
  Style/KeywordParametersOrder:
619
715
  Enabled: false
620
716
 
@@ -628,6 +724,11 @@ Style/MagicCommentFormat:
628
724
  Style/MapCompactWithConditionalBlock:
629
725
  Enabled: false
630
726
 
727
+ <% if rubocop_version >= "1.63" %>
728
+ Style/MapIntoArray:
729
+ Enabled: false
730
+ <% end %>
731
+
631
732
  Style/MapToHash:
632
733
  Enabled: false
633
734
 
@@ -730,10 +831,8 @@ Style/RandomWithOffset:
730
831
  Style/RedundantArgument:
731
832
  Enabled: false
732
833
 
733
- <% if rubocop_version >= "1.52" %>
734
834
  Style/RedundantArrayConstructor:
735
835
  Enabled: true
736
- <% end %>
737
836
 
738
837
  Style/RedundantAssignment:
739
838
  Enabled: false
@@ -747,10 +846,8 @@ Style/RedundantConditional:
747
846
  Style/RedundantConstantBase:
748
847
  Enabled: true
749
848
 
750
- <% if rubocop_version >= "1.53" %>
751
849
  Style/RedundantCurrentDirectoryInPath:
752
850
  Enabled: true
753
- <% end %>
754
851
 
755
852
  Style/RedundantDoubleSplatHashBraces:
756
853
  Enabled: true
@@ -764,9 +861,12 @@ Style/RedundantFetchBlock:
764
861
  Style/RedundantFileExtensionInRequire:
765
862
  Enabled: false
766
863
 
767
- <% if rubocop_version >= "1.52" %>
768
864
  Style/RedundantFilterChain:
769
865
  Enabled: true
866
+
867
+ <% if rubocop_version >= "1.72" %>
868
+ Style/RedundantFormat:
869
+ Enabled: false
770
870
  <% end %>
771
871
 
772
872
  Style/RedundantHeredocDelimiterQuotes:
@@ -775,21 +875,22 @@ Style/RedundantHeredocDelimiterQuotes:
775
875
  Style/RedundantInitialize:
776
876
  Enabled: false
777
877
 
878
+ <% if rubocop_version >= "1.66" %>
879
+ Style/RedundantInterpolationUnfreeze:
880
+ Enabled: false
881
+ <% end %>
882
+
778
883
  Style/RedundantLineContinuation:
779
884
  Enabled: true
780
885
 
781
- <% if rubocop_version >= "1.53" %>
782
886
  Style/RedundantRegexpArgument:
783
887
  Enabled: true
784
- <% end %>
785
888
 
786
889
  Style/RedundantRegexpCharacterClass:
787
890
  Enabled: false
788
891
 
789
- <% if rubocop_version >= "1.52" %>
790
892
  Style/RedundantRegexpConstructor:
791
893
  Enabled: true
792
- <% end %>
793
894
 
794
895
  Style/RedundantRegexpEscape:
795
896
  Enabled: false
@@ -815,21 +916,27 @@ Style/RescueStandardError:
815
916
  Style/ReturnNil:
816
917
  Enabled: true
817
918
 
818
- <% if rubocop_version >= "1.53" %>
819
919
  Style/ReturnNilInPredicateMethodDefinition:
820
920
  Enabled: true
921
+
922
+ <% if rubocop_version >= "1.68" %>
923
+ Style/SafeNavigationChainLength:
924
+ Enabled: false
821
925
  <% end %>
822
926
 
823
927
  Style/SelectByRegexp:
824
928
  Enabled: false
825
929
 
930
+ <% if rubocop_version >= "1.64" %>
931
+ Style/SendWithLiteralMethodName:
932
+ Enabled: false
933
+ <% end %>
934
+
826
935
  Style/SingleArgumentDig:
827
936
  Enabled: false
828
937
 
829
- <% if rubocop_version >= "1.57" %>
830
938
  Style/SingleLineDoEndBlock:
831
939
  Enabled: true
832
- <% end %>
833
940
 
834
941
  Style/SlicingWithRange:
835
942
  Enabled: false
@@ -855,10 +962,13 @@ Style/StringLiteralsInInterpolation:
855
962
  Style/StructInheritance:
856
963
  Enabled: false
857
964
 
858
- <% if rubocop_version >= "1.58" %>
965
+ <% if rubocop_version >= "1.64" %>
966
+ Style/SuperArguments:
967
+ Enabled: false
968
+ <% end %>
969
+
859
970
  Style/SuperWithArgsParentheses:
860
971
  Enabled: true
861
- <% end %>
862
972
 
863
973
  Style/SwapValues:
864
974
  Enabled: false
@@ -890,10 +1000,8 @@ Style/UnpackFirst:
890
1000
  Style/WordArray:
891
1001
  EnforcedStyle: brackets
892
1002
 
893
- <% if rubocop_version >= "1.53" %>
894
1003
  Style/YAMLFileRead:
895
1004
  Enabled: true
896
- <% end %>
897
1005
 
898
1006
  Style/YodaCondition:
899
1007
  Enabled: false
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.1
4
+ version: 2.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify Engineering
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rubocop
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '1.51'
18
+ version: '1.62'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '1.51'
25
+ version: '1.62'
27
26
  description: Gem containing the rubocop.yml config that corresponds to the implementation
28
27
  of the Shopify's style guide for Ruby.
29
28
  email: gems@shopify.com
@@ -41,9 +40,8 @@ homepage: https://shopify.github.io/ruby-style-guide/
41
40
  licenses:
42
41
  - MIT
43
42
  metadata:
44
- source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.15.1
43
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.17.1
45
44
  allowed_push_host: https://rubygems.org
46
- post_install_message:
47
45
  rdoc_options: []
48
46
  require_paths:
49
47
  - lib
@@ -51,15 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
49
  requirements:
52
50
  - - ">="
53
51
  - !ruby/object:Gem::Version
54
- version: 2.7.0
52
+ version: 3.1.0
55
53
  required_rubygems_version: !ruby/object:Gem::Requirement
56
54
  requirements:
57
55
  - - ">="
58
56
  - !ruby/object:Gem::Version
59
57
  version: '0'
60
58
  requirements: []
61
- rubygems_version: 3.5.6
62
- signing_key:
59
+ rubygems_version: 3.6.9
63
60
  specification_version: 4
64
61
  summary: Shopify's style guide for Ruby.
65
62
  test_files: []