rubocop-shopify 2.11.1 → 2.13.0

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 +42 -8
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abebcc9f7a47e8f2a5f64841561d43e4d0055566762ac7d8488eb91143673af6
4
- data.tar.gz: c9ad11b0cde28e1f5dd9f9d65fe78670a20c24e251ec9cc1eefc224b95af6fe5
3
+ metadata.gz: 3b6e09a0db95b147f0633e6e2f880fa05b677ee238eede6861a77d415c832f47
4
+ data.tar.gz: 76feb19bc0816a443256bad56b3ef22de116954e71653ba29b4df5ae08609fd9
5
5
  SHA512:
6
- metadata.gz: 13865ee2ece3d2e84eff8b9c952f5239a90800c77289ce2e4cd0bc83c83e0a55edced7783212de88a63f04f52cb81777209a58aeaa8243dbb6a29cc4d57a65d8
7
- data.tar.gz: 9c086e67a99c20fb969a2e5da20896699813c3f88f36870180ce6a0322dc7f64dc9fccfdbc0c59c99bb6d52d1d20be2b0d3eeabb31c3a158bdd5293e3e5467dd
6
+ metadata.gz: 8900205892055719bc9c26c5f7f5db89a694980c7504b81fcda65bb32c33d7991d250d3ec17801cd5d65d3b0e619fbee8c8b859351e34b6d6cfd01e62e2e09e8
7
+ data.tar.gz: 6d68d0249475511399b23a0164999e5ff7139adf1067148d55d1d5f58767a92406fccd98f5b6f64bd4f229e096241a9afe799fcb9c4d38cfd33a8a14412d204b
data/rubocop.yml CHANGED
@@ -12,6 +12,9 @@ Bundler/OrderedGems:
12
12
  Gemspec/DeprecatedAttributeAssignment:
13
13
  Enabled: true
14
14
 
15
+ Gemspec/DevelopmentDependencies:
16
+ Enabled: false
17
+
15
18
  Gemspec/RequireMFA:
16
19
  Enabled: false
17
20
 
@@ -61,9 +64,9 @@ Layout/LineEndStringConcatenationIndentation:
61
64
  EnforcedStyle: indented
62
65
 
63
66
  Layout/LineLength:
64
- IgnoreCopDirectives: false
65
67
  AllowedPatterns:
66
68
  - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
69
+ - "\\A\\s*def test_\\w+\\s*\\Z"
67
70
 
68
71
  Layout/MultilineArrayLineBreaks:
69
72
  Enabled: true
@@ -128,6 +131,9 @@ Lint/DuplicateElsifCondition:
128
131
  Lint/DuplicateMagicComment:
129
132
  Enabled: true
130
133
 
134
+ Lint/DuplicateMatchPattern:
135
+ Enabled: true
136
+
131
137
  Lint/DuplicateRegexpCharacterClassElement:
132
138
  Enabled: false
133
139
 
@@ -305,6 +311,9 @@ Lint/UriRegexp:
305
311
  Lint/UselessMethodDefinition:
306
312
  Enabled: false
307
313
 
314
+ Lint/UselessRescue:
315
+ Enabled: true
316
+
308
317
  Lint/UselessRuby2Keywords:
309
318
  Enabled: true
310
319
 
@@ -320,6 +329,9 @@ Metrics/BlockLength:
320
329
  Metrics/ClassLength:
321
330
  Enabled: false
322
331
 
332
+ Metrics/CollectionLiteralLength:
333
+ Enabled: true
334
+
323
335
  Metrics/CyclomaticComplexity:
324
336
  Enabled: false
325
337
 
@@ -368,6 +380,10 @@ Naming/InclusiveLanguage:
368
380
  Naming/MemoizedInstanceVariableName:
369
381
  Enabled: false
370
382
 
383
+ Naming/MethodName:
384
+ AllowedPatterns:
385
+ - '\Atest_'
386
+
371
387
  Naming/MethodParameterName:
372
388
  Enabled: false
373
389
 
@@ -404,12 +420,12 @@ Style/AccessorGrouping:
404
420
  Style/Alias:
405
421
  EnforcedStyle: prefer_alias_method
406
422
 
407
- Style/AndOr:
408
- EnforcedStyle: always
409
-
410
423
  Style/ArgumentsForwarding:
411
424
  Enabled: false
412
425
 
426
+ Style/ArrayIntersect:
427
+ Enabled: true
428
+
413
429
  Style/BisectedAttrAccessor:
414
430
  Enabled: false
415
431
 
@@ -442,15 +458,24 @@ Style/CommandLiteral:
442
458
  Style/CommentedKeyword:
443
459
  Enabled: false
444
460
 
461
+ Style/ComparableClamp:
462
+ Enabled: true
463
+
445
464
  Style/ConcatArrayLiterals:
446
465
  Enabled: true
447
466
 
467
+ Style/DataInheritance:
468
+ Enabled: true
469
+
448
470
  Style/DateTime:
449
471
  Enabled: true
450
472
 
451
473
  Style/Dir:
452
474
  Enabled: false
453
475
 
476
+ Style/DirEmpty:
477
+ Enabled: true
478
+
454
479
  Style/DocumentDynamicEvalDefinition:
455
480
  Enabled: false
456
481
 
@@ -496,6 +521,9 @@ Style/ExponentialNotation:
496
521
  Style/FetchEnvVar:
497
522
  Enabled: false
498
523
 
524
+ Style/FileEmpty:
525
+ Enabled: true
526
+
499
527
  Style/FileRead:
500
528
  Enabled: false
501
529
 
@@ -553,6 +581,9 @@ Style/InPatternThen:
553
581
  Style/InverseMethods:
554
582
  Enabled: false
555
583
 
584
+ Style/InvertibleUnlessCondition:
585
+ Enabled: true
586
+
556
587
  Style/KeywordParametersOrder:
557
588
  Enabled: false
558
589
 
@@ -648,7 +679,7 @@ Style/OpenStructUse:
648
679
  Enabled: true
649
680
 
650
681
  Style/OperatorMethodCall:
651
- Enabled: false
682
+ Enabled: true
652
683
 
653
684
  Style/OptionalBooleanParameter:
654
685
  Enabled: false
@@ -692,9 +723,15 @@ Style/RedundantFetchBlock:
692
723
  Style/RedundantFileExtensionInRequire:
693
724
  Enabled: false
694
725
 
726
+ Style/RedundantHeredocDelimiterQuotes:
727
+ Enabled: true
728
+
695
729
  Style/RedundantInitialize:
696
730
  Enabled: false
697
731
 
732
+ Style/RedundantLineContinuation:
733
+ Enabled: true
734
+
698
735
  Style/RedundantRegexpCharacterClass:
699
736
  Enabled: false
700
737
 
@@ -781,6 +818,3 @@ Style/WordArray:
781
818
 
782
819
  Style/YodaCondition:
783
820
  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.11.1
4
+ version: 2.13.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: 2023-01-02 00:00:00.000000000 Z
11
+ date: 2023-04-11 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.42'
19
+ version: '1.50'
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.42'
26
+ version: '1.50'
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.11.1
41
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.13.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.3.3
58
+ rubygems_version: 3.4.10
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Shopify's style guide for Ruby.