simplycop 2.9.1 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplycop_lint.yml +15 -0
- data/.simplycop_style.yml +12 -0
- data/catalog-info.yaml +1 -1
- data/lib/simplycop/version.rb +1 -1
- data/simplycop.gemspec +5 -5
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa3d209afb718a162c5c6e9023e4e9e59645000caf030f52f5ad8b2b2763b27e
|
4
|
+
data.tar.gz: 115052ebec89d2837fe8d4ca6e538dd1f15ce504cefca2a08a9f4d8478c1f92a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bcbe41264c0020b16a704ca2790c2a8c7b3f8e3177965a3a12d4df3a7d51f86fe0d441dcc685d481bb3407a56425d71e391184766b54915f54aaaa84e61480e
|
7
|
+
data.tar.gz: 297d0b10dddd66f7591a40a6b2ae12604af3d8e96419c22ed160cf3a2023a1f6a49d6eea9bb3284b9176bcaa0d1f7fc19354cacebaac73e8fb520b0baa0daba8
|
data/.simplycop_lint.yml
CHANGED
@@ -42,6 +42,9 @@ Lint/ConstantDefinitionInBlock:
|
|
42
42
|
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
43
43
|
Enabled: true
|
44
44
|
|
45
|
+
Lint/ConstantReassignment:
|
46
|
+
Enabled: true
|
47
|
+
|
45
48
|
# Set to false as 10000s of fails on Rater and Chopin if enabled
|
46
49
|
# Rubocop docs suggest enabling only for constants that may cause concern
|
47
50
|
# so enable and set these if required
|
@@ -147,6 +150,9 @@ Lint/FormatParameterMismatch:
|
|
147
150
|
Lint/HashCompareByIdentity:
|
148
151
|
Enabled: true
|
149
152
|
|
153
|
+
Lint/HashNewWithKeywordArgumentsAsDefault:
|
154
|
+
Enabled: true
|
155
|
+
|
150
156
|
Lint/HeredocMethodCallPosition:
|
151
157
|
Enabled: true
|
152
158
|
|
@@ -230,6 +236,9 @@ Lint/NumberConversion:
|
|
230
236
|
Lint/NumberedParameterAssignment:
|
231
237
|
Enabled: true
|
232
238
|
|
239
|
+
Lint/NumericOperationWithConstantResult:
|
240
|
+
Enabled: true
|
241
|
+
|
233
242
|
Lint/OrAssignmentToConstant:
|
234
243
|
Enabled: true
|
235
244
|
|
@@ -336,6 +345,9 @@ Lint/ShadowedException:
|
|
336
345
|
Lint/ShadowingOuterLocalVariable:
|
337
346
|
Enabled: true
|
338
347
|
|
348
|
+
Lint/SharedMutableDefault:
|
349
|
+
Enabled: true
|
350
|
+
|
339
351
|
Lint/StructNewOverride:
|
340
352
|
Enabled: true
|
341
353
|
|
@@ -402,6 +414,9 @@ Lint/UselessAccessModifier:
|
|
402
414
|
Lint/UselessAssignment:
|
403
415
|
Enabled: true
|
404
416
|
|
417
|
+
Lint/UselessDefined:
|
418
|
+
Enabled: true
|
419
|
+
|
405
420
|
Lint/UselessElseWithoutRescue:
|
406
421
|
Enabled: true
|
407
422
|
|
data/.simplycop_style.yml
CHANGED
@@ -146,6 +146,9 @@ Style/DateTime:
|
|
146
146
|
Style/DefWithParentheses:
|
147
147
|
Enabled: true
|
148
148
|
|
149
|
+
Style/DigChain:
|
150
|
+
Enabled: true
|
151
|
+
|
149
152
|
Style/Dir:
|
150
153
|
Enabled: true
|
151
154
|
|
@@ -259,6 +262,12 @@ Style/FormatStringToken:
|
|
259
262
|
Style/FrozenStringLiteralComment:
|
260
263
|
Enabled: false
|
261
264
|
|
265
|
+
Style/FileNull:
|
266
|
+
Enabled: true
|
267
|
+
|
268
|
+
Style/FileTouch:
|
269
|
+
Enabled: false
|
270
|
+
|
262
271
|
Style/GlobalStdStream:
|
263
272
|
Enabled: true
|
264
273
|
|
@@ -338,6 +347,9 @@ Style/IpAddresses:
|
|
338
347
|
# Enabled: true
|
339
348
|
# Exclude: [*spec.rb]
|
340
349
|
|
350
|
+
Style/ItAssignment:
|
351
|
+
Enabled: true
|
352
|
+
|
341
353
|
Style/KeywordArgumentsMerging:
|
342
354
|
Enabled: true
|
343
355
|
|
data/catalog-info.yaml
CHANGED
@@ -10,7 +10,7 @@ metadata:
|
|
10
10
|
simplybusiness.com/bnw-app-name: simplycop
|
11
11
|
simplybusiness.com/sast-scanning: enabled
|
12
12
|
rubygems.org/name: simplycop
|
13
|
-
rubygems.org/current-version: 2.
|
13
|
+
rubygems.org/current-version: 2.11.0
|
14
14
|
spec:
|
15
15
|
type: library
|
16
16
|
lifecycle: production
|
data/lib/simplycop/version.rb
CHANGED
data/simplycop.gemspec
CHANGED
@@ -17,13 +17,13 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency 'rubocop', '1.
|
21
|
-
spec.add_dependency 'rubocop-ast', '1.
|
20
|
+
spec.add_dependency 'rubocop', '1.70.0'
|
21
|
+
spec.add_dependency 'rubocop-ast', '1.37.0'
|
22
22
|
spec.add_dependency 'rubocop-capybara', '2.21.0'
|
23
23
|
spec.add_dependency 'rubocop-factory_bot', '2.26.1'
|
24
|
-
spec.add_dependency 'rubocop-performance', '1.23.
|
25
|
-
spec.add_dependency 'rubocop-rails', '2.
|
26
|
-
spec.add_dependency 'rubocop-rspec', '3.
|
24
|
+
spec.add_dependency 'rubocop-performance', '1.23.1'
|
25
|
+
spec.add_dependency 'rubocop-rails', '2.28.0'
|
26
|
+
spec.add_dependency 'rubocop-rspec', '3.3.0'
|
27
27
|
spec.add_dependency 'rubocop-rspec_rails', '2.30.0'
|
28
28
|
spec.add_development_dependency 'bundler', '>= 2.2.15'
|
29
29
|
spec.add_development_dependency 'rake', '>= 12.3.3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplycop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.70.0
|
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.
|
26
|
+
version: 1.70.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-ast
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.37.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.37.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-capybara
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,42 +72,42 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.23.
|
75
|
+
version: 1.23.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.23.
|
82
|
+
version: 1.23.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
89
|
+
version: 2.28.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.
|
96
|
+
version: 2.28.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
103
|
+
version: 3.3.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.
|
110
|
+
version: 3.3.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop-rspec_rails
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|