rubocop-shopify 2.6.0 → 2.10.1

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 +33 -6
  4. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27e2888826f579c69efbf5df48f4f1f40630ae20f9d962cfde7ab86f08dbdeb7
4
- data.tar.gz: 90e1f14c3f766ca65058237f9d28d6157017101709177d4bacf9bdc997e39a3c
3
+ metadata.gz: b3896ec2bc31920668db3e319ca82b9dcd7801bea9fb6ef17ec1de4c7ad0aab9
4
+ data.tar.gz: 21171a1e60227f3e2d6a2e0536800c257bb1c6e4beb560d173236a460c0d3c37
5
5
  SHA512:
6
- metadata.gz: 357cf572615207e7cc87f3fd47a1c0b58a1027eb017691ff1a05f1a081edbed5f88a5c3e70c5a5af603957eb3b56b9d73521fe1bede2ea89880bcdcc7227b149
7
- data.tar.gz: 1e6526dd264bd0cfb29b26f7ca1dadf645ca12ff073cdfcb3108791b09e6a28c38d25589c449b65acec6ec6be27edbc9bf83c4a6c3724952aee96c2da3bd7c28
6
+ metadata.gz: 9aaa1b62c1caf2eae691cecfc15dd1ab03bcaee963662593445e575a24586fcfa2f0e9faf5b4be85b64dbf9cd07056856d15283f9c1fb97e860fb11b1ddd835b
7
+ data.tar.gz: c317c99a4e08450731fa9729bf44b59f43c6b8680fb510b937d20324c33b04911ff0f462837bfd1fdf83872cb91d86192e48d1b0ce513fbc747e25abe9ebc65d
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,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:
@@ -39,6 +39,12 @@ Layout/FirstHashElementIndentation:
39
39
  Layout/HashAlignment:
40
40
  EnforcedLastArgumentHashStyle: ignore_implicit
41
41
 
42
+ Layout/LineContinuationLeadingSpace:
43
+ Enabled: false
44
+
45
+ Layout/LineContinuationSpacing:
46
+ Enabled: false
47
+
42
48
  Layout/LineEndStringConcatenationIndentation:
43
49
  Enabled: true
44
50
  EnforcedStyle: indented
@@ -79,6 +85,9 @@ Lint/BooleanSymbol:
79
85
  Lint/ConstantDefinitionInBlock:
80
86
  Enabled: false
81
87
 
88
+ Lint/ConstantOverwrittenInRescue:
89
+ Enabled: true
90
+
82
91
  Lint/DeprecatedConstants:
83
92
  Enabled: false
84
93
 
@@ -145,9 +154,6 @@ Lint/InterpolationCheck:
145
154
  Lint/LambdaWithoutLiteralBlock:
146
155
  Enabled: false
147
156
 
148
- Lint/MissingCopEnableDirective:
149
- Enabled: false
150
-
151
157
  Lint/MixedRegexpCaptureTypes:
152
158
  Enabled: false
153
159
 
@@ -160,6 +166,9 @@ Lint/NestedPercentLiteral:
160
166
  Lint/NoReturnInBeginEndBlocks:
161
167
  Enabled: false
162
168
 
169
+ Lint/NonAtomicFileOperation:
170
+ Enabled: false
171
+
163
172
  Lint/NonDeterministicRequireOrder:
164
173
  Enabled: false
165
174
 
@@ -196,6 +205,9 @@ Lint/RefinementImportMethods:
196
205
  Lint/RegexpAsCondition:
197
206
  Enabled: false
198
207
 
208
+ Lint/RequireRangeParentheses:
209
+ Enabled: true
210
+
199
211
  Lint/RequireRelativeSelfPath:
200
212
  Enabled: true
201
213
 
@@ -378,6 +390,7 @@ Style/BisectedAttrAccessor:
378
390
 
379
391
  Style/CaseEquality:
380
392
  AllowOnConstant: true
393
+ AllowOnSelfClass: true
381
394
 
382
395
  Style/CaseLikeIf:
383
396
  Enabled: false
@@ -421,6 +434,9 @@ Style/DoubleNegation:
421
434
  Style/EmptyBlockParameter:
422
435
  Enabled: false
423
436
 
437
+ Style/EmptyHeredoc:
438
+ Enabled: true
439
+
424
440
  Style/EmptyLambdaParameter:
425
441
  Enabled: false
426
442
 
@@ -511,12 +527,19 @@ Style/KeywordParametersOrder:
511
527
  Style/Lambda:
512
528
  Enabled: false
513
529
 
530
+ Style/MagicCommentFormat:
531
+ Enabled: true
532
+ ValueCapitalization: lowercase
533
+
534
+ Style/MapCompactWithConditionalBlock:
535
+ Enabled: false
536
+
514
537
  Style/MapToHash:
515
538
  Enabled: false
516
539
 
517
540
  Style/MethodCallWithArgsParentheses:
518
541
  Enabled: true
519
- IgnoredMethods:
542
+ AllowedMethods:
520
543
  - require
521
544
  - require_relative
522
545
  - require_dependency
@@ -686,7 +709,7 @@ Style/TrailingBodyOnMethodDefinition:
686
709
  Enabled: false
687
710
 
688
711
  Style/TrailingCommaInArguments:
689
- Enabled: false
712
+ EnforcedStyleForMultiline: comma
690
713
 
691
714
  Style/TrailingCommaInArrayLiteral:
692
715
  EnforcedStyleForMultiline: consistent_comma
@@ -708,3 +731,7 @@ Style/WordArray:
708
731
 
709
732
  Style/YodaCondition:
710
733
  Enabled: false
734
+
735
+ Style/ClassMethodsDefinitions:
736
+ EnforcedStyle: self_class
737
+ Enabled: true
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.6.0
4
+ version: 2.10.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-05-13 00:00:00.000000000 Z
11
+ date: 2022-09-13 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.29'
19
+ version: '1.35'
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.29'
26
+ version: '1.35'
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.6.0
41
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.10.1
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.