rubocop-shopify 2.4.0 → 2.7.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/rubocop.yml +32 -13
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34017fcf49afc88f15b88b908e95438cc9718dddf0276f75cb379060bfdd5938
4
- data.tar.gz: 26f48c655dc94bcbe27d188c6bd870d86195e4c9e996b6a1e07ce882ff27c1a8
3
+ metadata.gz: be5dcbaaa44d69ac6367eb9a24426028e45ca9eb0bbb3ee33f8053968f9dea7b
4
+ data.tar.gz: 7e3821984de0f2ce6bbec02e78e60c4ba08ef71684e0f6fb6c53dcfdeb8073c9
5
5
  SHA512:
6
- metadata.gz: b77c16b8c19b9791da448d56a518f4ef940655ddc0c0f1cbbbf25906575bb118440af3c89b993a9980db618a43b41be0aca34686bbf8982de91107410e80ca3b
7
- data.tar.gz: d11b5d953a318f61d6b7d420161688ec9fa98cf2869c3b79078e06098932214ecf497f3784e36aef608c419beaea16057cf96f6277a6f73bd5b5068b7cd7cec5
6
+ metadata.gz: 3ad6103f2b7e495d0ceed4d6d1fdc3f3859a954a7b9e3eec1dd685d53bb18a4dd7569457a3790557ac2f129707df284789a9ce2070b0a7eca4222252694bd7fc
7
+ data.tar.gz: 11c5726bf1d4dfcd76f7cd98adb3bfde2f53a1b4ac8efb1285d72ad41357bfc57db370d975b5e08c91d10f455e59b976661bcf920c81a108d4e9ed2d17c7ca51
data/rubocop.yml CHANGED
@@ -12,6 +12,9 @@ Bundler/OrderedGems:
12
12
  Gemspec/DateAssignment:
13
13
  Enabled: true
14
14
 
15
+ Gemspec/DeprecatedAttributeAssignment:
16
+ Enabled: true
17
+
15
18
  Gemspec/RequiredRubyVersion:
16
19
  Enabled: false
17
20
 
@@ -24,9 +27,6 @@ Layout/ArgumentAlignment:
24
27
  Layout/CaseIndentation:
25
28
  EnforcedStyle: end
26
29
 
27
- Layout/EmptyLineAfterGuardClause:
28
- Enabled: false
29
-
30
30
  Layout/EndAlignment:
31
31
  EnforcedStyleAlignWith: variable
32
32
 
@@ -48,7 +48,7 @@ Layout/LineEndStringConcatenationIndentation:
48
48
 
49
49
  Layout/LineLength:
50
50
  IgnoreCopDirectives: false
51
- IgnoredPatterns:
51
+ AllowedPatterns:
52
52
  - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
53
53
 
54
54
  Layout/MultilineMethodCallIndentation:
@@ -193,6 +193,9 @@ Lint/RedundantWithIndex:
193
193
  Lint/RedundantWithObject:
194
194
  Enabled: false
195
195
 
196
+ Lint/RefinementImportMethods:
197
+ Enabled: false
198
+
196
199
  Lint/RegexpAsCondition:
197
200
  Enabled: false
198
201
 
@@ -326,6 +329,7 @@ Naming/InclusiveLanguage:
326
329
  - 'blob/master/'
327
330
  - 'origin/master'
328
331
  - 'mastercard'
332
+ - 'webmaster'
329
333
 
330
334
  Naming/MemoizedInstanceVariableName:
331
335
  Enabled: false
@@ -345,6 +349,9 @@ Naming/RescuedExceptionsVariableName:
345
349
  Naming/VariableNumber:
346
350
  Enabled: false
347
351
 
352
+ Security/CompoundHash:
353
+ Enabled: false
354
+
348
355
  Security/MarshalLoad:
349
356
  Enabled: false
350
357
 
@@ -369,9 +376,6 @@ Style/AndOr:
369
376
  Style/ArgumentsForwarding:
370
377
  Enabled: false
371
378
 
372
- Style/AsciiComments:
373
- Enabled: false
374
-
375
379
  Style/BisectedAttrAccessor:
376
380
  Enabled: false
377
381
 
@@ -432,18 +436,21 @@ Style/Encoding:
432
436
  Style/EndlessMethod:
433
437
  Enabled: false
434
438
 
439
+ Style/EnvHome:
440
+ Enabled: false
441
+
435
442
  Style/EvalWithLocation:
436
443
  Enabled: false
437
444
 
438
445
  Style/ExpandPathArguments:
439
446
  Enabled: false
440
447
 
441
- Style/ExplicitBlockArgument:
442
- Enabled: true
443
-
444
448
  Style/ExponentialNotation:
445
449
  Enabled: false
446
450
 
451
+ Style/FetchEnvVar:
452
+ Enabled: false
453
+
447
454
  Style/FileRead:
448
455
  Enabled: false
449
456
 
@@ -462,9 +469,6 @@ Style/FrozenStringLiteralComment:
462
469
  literals will become the default in a future Ruby version, and we want to make
463
470
  sure we''re ready.'
464
471
 
465
- Style/GlobalStdStream:
466
- Enabled: false
467
-
468
472
  Style/GuardClause:
469
473
  Enabled: false
470
474
 
@@ -483,6 +487,9 @@ Style/HashExcept:
483
487
  Style/HashLikeCase:
484
488
  Enabled: false
485
489
 
490
+ Style/HashSyntax:
491
+ EnforcedShorthandSyntax: either
492
+
486
493
  Style/HashTransformKeys:
487
494
  Enabled: false
488
495
 
@@ -507,6 +514,9 @@ Style/KeywordParametersOrder:
507
514
  Style/Lambda:
508
515
  Enabled: false
509
516
 
517
+ Style/MapCompactWithConditionalBlock:
518
+ Enabled: false
519
+
510
520
  Style/MapToHash:
511
521
  Enabled: false
512
522
 
@@ -558,6 +568,9 @@ Style/NegatedIfElseCondition:
558
568
  Style/NegatedUnless:
559
569
  Enabled: false
560
570
 
571
+ Style/NestedFileDirname:
572
+ Enabled: true
573
+
561
574
  Style/NilLambda:
562
575
  Enabled: false
563
576
 
@@ -576,6 +589,9 @@ Style/NumericLiterals:
576
589
  Style/NumericPredicate:
577
590
  Enabled: false
578
591
 
592
+ Style/ObjectThen:
593
+ Enabled: false
594
+
579
595
  Style/OpenStructUse:
580
596
  Enabled: true
581
597
 
@@ -612,6 +628,9 @@ Style/RedundantFetchBlock:
612
628
  Style/RedundantFileExtensionInRequire:
613
629
  Enabled: false
614
630
 
631
+ Style/RedundantInitialize:
632
+ Enabled: false
633
+
615
634
  Style/RedundantRegexpCharacterClass:
616
635
  Enabled: false
617
636
 
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.0
4
+ version: 2.7.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-05-31 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.24'
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.24'
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.4.0
40
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.7.0
41
41
  allowed_push_host: https://rubygems.org
42
42
  post_install_message:
43
43
  rdoc_options: []
@@ -47,7 +47,7 @@ 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
  - - ">="