rubocop-shopify 2.12.0 → 2.13.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 +26 -4
- 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: 3b6e09a0db95b147f0633e6e2f880fa05b677ee238eede6861a77d415c832f47
|
4
|
+
data.tar.gz: 76feb19bc0816a443256bad56b3ef22de116954e71653ba29b4df5ae08609fd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8900205892055719bc9c26c5f7f5db89a694980c7504b81fcda65bb32c33d7991d250d3ec17801cd5d65d3b0e619fbee8c8b859351e34b6d6cfd01e62e2e09e8
|
7
|
+
data.tar.gz: 6d68d0249475511399b23a0164999e5ff7139adf1067148d55d1d5f58767a92406fccd98f5b6f64bd4f229e096241a9afe799fcb9c4d38cfd33a8a14412d204b
|
data/rubocop.yml
CHANGED
@@ -64,9 +64,9 @@ Layout/LineEndStringConcatenationIndentation:
|
|
64
64
|
EnforcedStyle: indented
|
65
65
|
|
66
66
|
Layout/LineLength:
|
67
|
-
IgnoreCopDirectives: false
|
68
67
|
AllowedPatterns:
|
69
68
|
- "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
|
69
|
+
- "\\A\\s*def test_\\w+\\s*\\Z"
|
70
70
|
|
71
71
|
Layout/MultilineArrayLineBreaks:
|
72
72
|
Enabled: true
|
@@ -131,6 +131,9 @@ Lint/DuplicateElsifCondition:
|
|
131
131
|
Lint/DuplicateMagicComment:
|
132
132
|
Enabled: true
|
133
133
|
|
134
|
+
Lint/DuplicateMatchPattern:
|
135
|
+
Enabled: true
|
136
|
+
|
134
137
|
Lint/DuplicateRegexpCharacterClassElement:
|
135
138
|
Enabled: false
|
136
139
|
|
@@ -326,6 +329,9 @@ Metrics/BlockLength:
|
|
326
329
|
Metrics/ClassLength:
|
327
330
|
Enabled: false
|
328
331
|
|
332
|
+
Metrics/CollectionLiteralLength:
|
333
|
+
Enabled: true
|
334
|
+
|
329
335
|
Metrics/CyclomaticComplexity:
|
330
336
|
Enabled: false
|
331
337
|
|
@@ -374,6 +380,10 @@ Naming/InclusiveLanguage:
|
|
374
380
|
Naming/MemoizedInstanceVariableName:
|
375
381
|
Enabled: false
|
376
382
|
|
383
|
+
Naming/MethodName:
|
384
|
+
AllowedPatterns:
|
385
|
+
- '\Atest_'
|
386
|
+
|
377
387
|
Naming/MethodParameterName:
|
378
388
|
Enabled: false
|
379
389
|
|
@@ -410,9 +420,6 @@ Style/AccessorGrouping:
|
|
410
420
|
Style/Alias:
|
411
421
|
EnforcedStyle: prefer_alias_method
|
412
422
|
|
413
|
-
Style/AndOr:
|
414
|
-
EnforcedStyle: always
|
415
|
-
|
416
423
|
Style/ArgumentsForwarding:
|
417
424
|
Enabled: false
|
418
425
|
|
@@ -457,12 +464,18 @@ Style/ComparableClamp:
|
|
457
464
|
Style/ConcatArrayLiterals:
|
458
465
|
Enabled: true
|
459
466
|
|
467
|
+
Style/DataInheritance:
|
468
|
+
Enabled: true
|
469
|
+
|
460
470
|
Style/DateTime:
|
461
471
|
Enabled: true
|
462
472
|
|
463
473
|
Style/Dir:
|
464
474
|
Enabled: false
|
465
475
|
|
476
|
+
Style/DirEmpty:
|
477
|
+
Enabled: true
|
478
|
+
|
466
479
|
Style/DocumentDynamicEvalDefinition:
|
467
480
|
Enabled: false
|
468
481
|
|
@@ -508,6 +521,9 @@ Style/ExponentialNotation:
|
|
508
521
|
Style/FetchEnvVar:
|
509
522
|
Enabled: false
|
510
523
|
|
524
|
+
Style/FileEmpty:
|
525
|
+
Enabled: true
|
526
|
+
|
511
527
|
Style/FileRead:
|
512
528
|
Enabled: false
|
513
529
|
|
@@ -707,9 +723,15 @@ Style/RedundantFetchBlock:
|
|
707
723
|
Style/RedundantFileExtensionInRequire:
|
708
724
|
Enabled: false
|
709
725
|
|
726
|
+
Style/RedundantHeredocDelimiterQuotes:
|
727
|
+
Enabled: true
|
728
|
+
|
710
729
|
Style/RedundantInitialize:
|
711
730
|
Enabled: false
|
712
731
|
|
732
|
+
Style/RedundantLineContinuation:
|
733
|
+
Enabled: true
|
734
|
+
|
713
735
|
Style/RedundantRegexpCharacterClass:
|
714
736
|
Enabled: false
|
715
737
|
|
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.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-
|
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.
|
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.
|
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.
|
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.
|
58
|
+
rubygems_version: 3.4.10
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Shopify's style guide for Ruby.
|