rubocop-shopify 2.13.0 → 2.14.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 +10 -3
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b6e09a0db95b147f0633e6e2f880fa05b677ee238eede6861a77d415c832f47
4
- data.tar.gz: 76feb19bc0816a443256bad56b3ef22de116954e71653ba29b4df5ae08609fd9
3
+ metadata.gz: 63613b7088f4aa93372f9e4feb012d749fb092865ab1a556aff4587e2fb77c3f
4
+ data.tar.gz: b6d3e195b06729ef3d2ef2d5107b8e3a534ce4bc11e521e34dfcc3f44727012a
5
5
  SHA512:
6
- metadata.gz: 8900205892055719bc9c26c5f7f5db89a694980c7504b81fcda65bb32c33d7991d250d3ec17801cd5d65d3b0e619fbee8c8b859351e34b6d6cfd01e62e2e09e8
7
- data.tar.gz: 6d68d0249475511399b23a0164999e5ff7139adf1067148d55d1d5f58767a92406fccd98f5b6f64bd4f229e096241a9afe799fcb9c4d38cfd33a8a14412d204b
6
+ metadata.gz: f0b453ba7067cc1d0e957b6827aa206b26f01178627866abbb1cb25be532f0e1ef98a75838a26f377337a1c635b28d79fb494e79e69b11d8f2afcfae4112275e
7
+ data.tar.gz: fe7eaf1cc8b434d634f480404f73b757fbf3ccf0f48103bae281508f7e554b2a44c8bf6f9a4466e0af8c627c306d92a4b67ebed78efa1482bc54e28795aa13d5
data/rubocop.yml CHANGED
@@ -195,7 +195,7 @@ Lint/NestedPercentLiteral:
195
195
  Enabled: false
196
196
 
197
197
  Lint/NoReturnInBeginEndBlocks:
198
- Enabled: false
198
+ Enabled: true
199
199
 
200
200
  Lint/NonAtomicFileOperation:
201
201
  Enabled: false
@@ -372,8 +372,9 @@ Naming/InclusiveLanguage:
372
372
  - leader
373
373
  AllowedRegex:
374
374
  - !ruby/regexp '/master[_\s\.]key/' # Rails master key
375
- - 'blob/master/'
376
- - 'origin/master'
375
+ - !ruby/regexp /\w*:\/\/\S+/ # URLs (e.g. https://github.com/org/repo/blob/master/README.md)
376
+ - !ruby/regexp '/(?:blob|tree)/master/' # e.g. github.com/org/repo/blob/master/README.md, without https://
377
+ - !ruby/regexp '/origin[ \/]master/' # Legacy default git branch name
377
378
  - 'mastercard'
378
379
  - 'webmaster'
379
380
 
@@ -512,6 +513,9 @@ Style/EnvHome:
512
513
  Style/EvalWithLocation:
513
514
  Enabled: false
514
515
 
516
+ Style/ExactRegexpMatch:
517
+ Enabled: true
518
+
515
519
  Style/ExpandPathArguments:
516
520
  Enabled: false
517
521
 
@@ -756,6 +760,9 @@ Style/RegexpLiteral:
756
760
  Style/RescueStandardError:
757
761
  Enabled: false
758
762
 
763
+ Style/ReturnNil:
764
+ Enabled: true
765
+
759
766
  Style/SelectByRegexp:
760
767
  Enabled: false
761
768
 
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.13.0
4
+ version: 2.14.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-04-11 00:00:00.000000000 Z
11
+ date: 2023-06-09 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.50'
19
+ version: '1.51'
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.50'
26
+ version: '1.51'
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.13.0
41
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.14.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.4.10
58
+ rubygems_version: 3.4.13
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Shopify's style guide for Ruby.