rubocop-shopify 2.7.1 → 2.10.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 +29 -5
  4. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67183bad73e56f06e0ab79c7ed978e647d96361df643363466006827aba593e5
4
- data.tar.gz: 07cbcf6b5aa7eea28ab4490b138a1b173889160d7f3d1982723e6c8ea71f01d7
3
+ metadata.gz: 46f4e1d6da6a36a4429dac8cf1be8c25399eff8fc5342f63220fc5972cdb1967
4
+ data.tar.gz: b8e0d43da3be02a6ce82b5e3f0982e690f34e301fc26a2d0a47fb28739a61049
5
5
  SHA512:
6
- metadata.gz: 559f98851327f0aa8ff55943606b56bf5250eea90d694d4ac58002f5e463b6ae79a5c2c6fe355d97643ba4f1774695e166dc008a43edd1e25e881508472cf698
7
- data.tar.gz: b8da7862cfd8e140d99e3c7ecf38134d9e96a4423880d9d35246ac469bb3b933dda208cd09dbe2c78dea844f75fd1101685bd8cbcb287ac8d92a755e0ca759de
6
+ metadata.gz: df5a35e26c81bacc9d5f2b46795415d5be5e3b5af717ec70e960a192e5f8473f00e2dbc6383a1e40d824365f338756c33e5a981fa42fc16fc8dbf4b78bedc67d
7
+ data.tar.gz: 1a8609bb7ed4afc1cca98572e847534e1accd1c57e5a5c0d977e26ca6ad949a2fc35d34575a6c735fac76670e94bee8249193e0a53b5841632a6cecec02b4b93
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
@@ -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,6 +527,10 @@ Style/KeywordParametersOrder:
511
527
  Style/Lambda:
512
528
  Enabled: false
513
529
 
530
+ Style/MagicCommentFormat:
531
+ Enabled: true
532
+ ValueCapitalization: lowercase
533
+
514
534
  Style/MapCompactWithConditionalBlock:
515
535
  Enabled: false
516
536
 
@@ -519,7 +539,7 @@ Style/MapToHash:
519
539
 
520
540
  Style/MethodCallWithArgsParentheses:
521
541
  Enabled: true
522
- IgnoredMethods:
542
+ AllowedMethods:
523
543
  - require
524
544
  - require_relative
525
545
  - require_dependency
@@ -689,7 +709,7 @@ Style/TrailingBodyOnMethodDefinition:
689
709
  Enabled: false
690
710
 
691
711
  Style/TrailingCommaInArguments:
692
- Enabled: false
712
+ EnforcedStyleForMultiline: consistent_comma
693
713
 
694
714
  Style/TrailingCommaInArrayLiteral:
695
715
  EnforcedStyleForMultiline: consistent_comma
@@ -711,3 +731,7 @@ Style/WordArray:
711
731
 
712
732
  Style/YodaCondition:
713
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.7.1
4
+ version: 2.10.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-06-27 00:00:00.000000000 Z
11
+ date: 2022-09-12 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.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.30'
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.7.1
41
+ source_code_uri: https://github.com/Shopify/ruby-style-guide/tree/v2.10.0
41
42
  allowed_push_host: https://rubygems.org
42
43
  post_install_message:
43
44
  rdoc_options: []