rubocop-shopify 2.7.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +21 -0
  3. data/rubocop.yml +18 -4
  4. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be5dcbaaa44d69ac6367eb9a24426028e45ca9eb0bbb3ee33f8053968f9dea7b
4
- data.tar.gz: 7e3821984de0f2ce6bbec02e78e60c4ba08ef71684e0f6fb6c53dcfdeb8073c9
3
+ metadata.gz: e9421e44b59a1ecaaaad089fc20585b3e0ebb4098573fc2d4c6a191a56276295
4
+ data.tar.gz: 83eac3987d5c8014fc917bd273af585420118669b308dbf97f86ecd45e613c3b
5
5
  SHA512:
6
- metadata.gz: 3ad6103f2b7e495d0ceed4d6d1fdc3f3859a954a7b9e3eec1dd685d53bb18a4dd7569457a3790557ac2f129707df284789a9ce2070b0a7eca4222252694bd7fc
7
- data.tar.gz: 11c5726bf1d4dfcd76f7cd98adb3bfde2f53a1b4ac8efb1285d72ad41357bfc57db370d975b5e08c91d10f455e59b976661bcf920c81a108d4e9ed2d17c7ca51
6
+ metadata.gz: 9e2c05e08cfac80b27607ac6ff87b5df8ddd8f0428cc3fba6421633a1bc94f6d81c3b23a65f3a7988811b26dc3cf503f060324628829893468d69835f4fbb787
7
+ data.tar.gz: bd9567bb9feff7f8da173bda31c42aab68c004dfff01a8809030ef7bf5cc633768dcfcf1cb9d695dc97c448d40a192b01de44538a04b3f37d8d1cbe4c5e4e584
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2015-2022 Shopify Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/rubocop.yml CHANGED
@@ -9,9 +9,6 @@ AllCops:
9
9
  Bundler/OrderedGems:
10
10
  Enabled: false
11
11
 
12
- Gemspec/DateAssignment:
13
- Enabled: true
14
-
15
12
  Gemspec/DeprecatedAttributeAssignment:
16
13
  Enabled: true
17
14
 
@@ -42,6 +39,12 @@ Layout/FirstHashElementIndentation:
42
39
  Layout/HashAlignment:
43
40
  EnforcedLastArgumentHashStyle: ignore_implicit
44
41
 
42
+ Layout/LineContinuationLeadingSpace:
43
+ Enabled: false
44
+
45
+ Layout/LineContinuationSpacing:
46
+ Enabled: false
47
+
45
48
  Layout/LineEndStringConcatenationIndentation:
46
49
  Enabled: true
47
50
  EnforcedStyle: indented
@@ -82,6 +85,9 @@ Lint/BooleanSymbol:
82
85
  Lint/ConstantDefinitionInBlock:
83
86
  Enabled: false
84
87
 
88
+ Lint/ConstantOverwrittenInRescue:
89
+ Enabled: true
90
+
85
91
  Lint/DeprecatedConstants:
86
92
  Enabled: false
87
93
 
@@ -163,6 +169,9 @@ Lint/NestedPercentLiteral:
163
169
  Lint/NoReturnInBeginEndBlocks:
164
170
  Enabled: false
165
171
 
172
+ Lint/NonAtomicFileOperation:
173
+ Enabled: false
174
+
166
175
  Lint/NonDeterministicRequireOrder:
167
176
  Enabled: false
168
177
 
@@ -522,7 +531,7 @@ Style/MapToHash:
522
531
 
523
532
  Style/MethodCallWithArgsParentheses:
524
533
  Enabled: true
525
- IgnoredMethods:
534
+ AllowedMethods:
526
535
  - require
527
536
  - require_relative
528
537
  - require_dependency
@@ -714,3 +723,8 @@ Style/WordArray:
714
723
 
715
724
  Style/YodaCondition:
716
725
  Enabled: false
726
+
727
+ Style/ClassMethodsDefinitions:
728
+ EnforcedStyle: self_class
729
+ Enabled: true
730
+
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.7.0
4
+ version: 2.9.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-05-31 00:00:00.000000000 Z
11
+ date: 2022-08-05 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.30'
19
+ version: '1.33'
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.30'
26
+ version: '1.33'
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
@@ -31,13 +31,14 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - LICENSE.md
34
35
  - rubocop-cli.yml
35
36
  - rubocop.yml
36
37
  homepage: https://shopify.github.io/ruby-style-guide/
37
38
  licenses:
38
39
  - MIT
39
40
  metadata:
40
- source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.7.0
41
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.9.0
41
42
  allowed_push_host: https://rubygems.org
42
43
  post_install_message:
43
44
  rdoc_options: []
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
55
  - !ruby/object:Gem::Version
55
56
  version: '0'
56
57
  requirements: []
57
- rubygems_version: 3.2.20
58
+ rubygems_version: 3.3.3
58
59
  signing_key:
59
60
  specification_version: 4
60
61
  summary: Shopify's style guide for Ruby.