rubocop-shopify 2.5.0 → 2.7.1

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 +26 -14
  3. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 919bdd1ac16cef2b85d4ca1fbaca5286a3e798082b0bdc05449a9caeee55b773
4
- data.tar.gz: 1c330205e8c41176286f07d4a1dd889bc29940b746009b9b387d6382a2f3da5b
3
+ metadata.gz: 67183bad73e56f06e0ab79c7ed978e647d96361df643363466006827aba593e5
4
+ data.tar.gz: 07cbcf6b5aa7eea28ab4490b138a1b173889160d7f3d1982723e6c8ea71f01d7
5
5
  SHA512:
6
- metadata.gz: 567e49decd34e1944f9f96843b68d849bb4bb2a9c8e5cd75402c609a60a1a709c3882f5c7b260ff1b404e32c984a1f129425224a565e2c0d068a120526eeb4c5
7
- data.tar.gz: 2c013458b013c729069ae805bc5cbc234d9351ea3dcf7dab02231c5b155fe4a1d84477e0311a47ad9a93f305c4c6578bad64918a46975aa7046e5498651bf6bf
6
+ metadata.gz: 559f98851327f0aa8ff55943606b56bf5250eea90d694d4ac58002f5e463b6ae79a5c2c6fe355d97643ba4f1774695e166dc008a43edd1e25e881508472cf698
7
+ data.tar.gz: b8da7862cfd8e140d99e3c7ecf38134d9e96a4423880d9d35246ac469bb3b933dda208cd09dbe2c78dea844f75fd1101685bd8cbcb287ac8d92a755e0ca759de
data/rubocop.yml CHANGED
@@ -9,7 +9,7 @@ AllCops:
9
9
  Bundler/OrderedGems:
10
10
  Enabled: false
11
11
 
12
- Gemspec/DateAssignment:
12
+ Gemspec/DeprecatedAttributeAssignment:
13
13
  Enabled: true
14
14
 
15
15
  Gemspec/RequiredRubyVersion:
@@ -24,9 +24,6 @@ Layout/ArgumentAlignment:
24
24
  Layout/CaseIndentation:
25
25
  EnforcedStyle: end
26
26
 
27
- Layout/EmptyLineAfterGuardClause:
28
- Enabled: true
29
-
30
27
  Layout/EndAlignment:
31
28
  EnforcedStyleAlignWith: variable
32
29
 
@@ -48,7 +45,7 @@ Layout/LineEndStringConcatenationIndentation:
48
45
 
49
46
  Layout/LineLength:
50
47
  IgnoreCopDirectives: false
51
- IgnoredPatterns:
48
+ AllowedPatterns:
52
49
  - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
53
50
 
54
51
  Layout/MultilineMethodCallIndentation:
@@ -193,6 +190,9 @@ Lint/RedundantWithIndex:
193
190
  Lint/RedundantWithObject:
194
191
  Enabled: false
195
192
 
193
+ Lint/RefinementImportMethods:
194
+ Enabled: false
195
+
196
196
  Lint/RegexpAsCondition:
197
197
  Enabled: false
198
198
 
@@ -346,6 +346,9 @@ Naming/RescuedExceptionsVariableName:
346
346
  Naming/VariableNumber:
347
347
  Enabled: false
348
348
 
349
+ Security/CompoundHash:
350
+ Enabled: false
351
+
349
352
  Security/MarshalLoad:
350
353
  Enabled: false
351
354
 
@@ -370,9 +373,6 @@ Style/AndOr:
370
373
  Style/ArgumentsForwarding:
371
374
  Enabled: false
372
375
 
373
- Style/AsciiComments:
374
- Enabled: false
375
-
376
376
  Style/BisectedAttrAccessor:
377
377
  Enabled: false
378
378
 
@@ -433,18 +433,21 @@ Style/Encoding:
433
433
  Style/EndlessMethod:
434
434
  Enabled: false
435
435
 
436
+ Style/EnvHome:
437
+ Enabled: false
438
+
436
439
  Style/EvalWithLocation:
437
440
  Enabled: false
438
441
 
439
442
  Style/ExpandPathArguments:
440
443
  Enabled: false
441
444
 
442
- Style/ExplicitBlockArgument:
443
- Enabled: true
444
-
445
445
  Style/ExponentialNotation:
446
446
  Enabled: false
447
447
 
448
+ Style/FetchEnvVar:
449
+ Enabled: false
450
+
448
451
  Style/FileRead:
449
452
  Enabled: false
450
453
 
@@ -463,9 +466,6 @@ Style/FrozenStringLiteralComment:
463
466
  literals will become the default in a future Ruby version, and we want to make
464
467
  sure we''re ready.'
465
468
 
466
- Style/GlobalStdStream:
467
- Enabled: true
468
-
469
469
  Style/GuardClause:
470
470
  Enabled: false
471
471
 
@@ -511,6 +511,9 @@ Style/KeywordParametersOrder:
511
511
  Style/Lambda:
512
512
  Enabled: false
513
513
 
514
+ Style/MapCompactWithConditionalBlock:
515
+ Enabled: false
516
+
514
517
  Style/MapToHash:
515
518
  Enabled: false
516
519
 
@@ -562,6 +565,9 @@ Style/NegatedIfElseCondition:
562
565
  Style/NegatedUnless:
563
566
  Enabled: false
564
567
 
568
+ Style/NestedFileDirname:
569
+ Enabled: true
570
+
565
571
  Style/NilLambda:
566
572
  Enabled: false
567
573
 
@@ -580,6 +586,9 @@ Style/NumericLiterals:
580
586
  Style/NumericPredicate:
581
587
  Enabled: false
582
588
 
589
+ Style/ObjectThen:
590
+ Enabled: false
591
+
583
592
  Style/OpenStructUse:
584
593
  Enabled: true
585
594
 
@@ -616,6 +625,9 @@ Style/RedundantFetchBlock:
616
625
  Style/RedundantFileExtensionInRequire:
617
626
  Enabled: false
618
627
 
628
+ Style/RedundantInitialize:
629
+ Enabled: false
630
+
619
631
  Style/RedundantRegexpCharacterClass:
620
632
  Enabled: false
621
633
 
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.5.0
4
+ version: 2.7.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: 2022-03-04 00:00:00.000000000 Z
11
+ date: 2022-06-27 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.25'
19
+ version: '1.30'
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.25'
26
+ version: '1.30'
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
@@ -37,7 +37,7 @@ homepage: https://shopify.github.io/ruby-style-guide/
37
37
  licenses:
38
38
  - MIT
39
39
  metadata:
40
- source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.5.0
40
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.7.1
41
41
  allowed_push_host: https://rubygems.org
42
42
  post_install_message:
43
43
  rdoc_options: []
@@ -47,14 +47,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: '0'
50
+ version: 2.7.0
51
51
  required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  requirements: []
57
- rubygems_version: 3.2.20
57
+ rubygems_version: 3.3.3
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Shopify's style guide for Ruby.