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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96ea2ae5ddc2723a3cfe5acbc78a1344951e1735c2487b3122082eafec7f0823
4
- data.tar.gz: acc94e81ee442aab70047b5d391167ce5c7e0adfc89f062e1cd147390e1694d7
3
+ metadata.gz: aa3d209afb718a162c5c6e9023e4e9e59645000caf030f52f5ad8b2b2763b27e
4
+ data.tar.gz: 115052ebec89d2837fe8d4ca6e538dd1f15ce504cefca2a08a9f4d8478c1f92a
5
5
  SHA512:
6
- metadata.gz: 91fb2e9de477b0ce343f32a07b36e494c9bc78339179b92ddfcbeea85e42dc6c4198562998e5ca20afb4e5ae3eb1d57a5d2da6a1ac92dfed78ba4995668e4907
7
- data.tar.gz: 591fb6e3403d8b3f1f159d97fb64ba48936a396420ca81fea93d07a8b0407955ee1dc32d7a6343af5cd2817c5caa69c3ae79a2db918dfd10f9116c925472c67f
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.9.1
13
+ rubygems.org/current-version: 2.11.0
14
14
  spec:
15
15
  type: library
16
16
  lifecycle: production
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '2.9.1'
10
+ VERSION = '2.11.0'
11
11
  end
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.68.0'
21
- spec.add_dependency 'rubocop-ast', '1.36.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.0'
25
- spec.add_dependency 'rubocop-rails', '2.27.0'
26
- spec.add_dependency 'rubocop-rspec', '3.2.0'
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.9.1
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-02 00:00:00.000000000 Z
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.68.0
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.68.0
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.36.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.36.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.0
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.0
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.27.0
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.27.0
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.2.0
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.2.0
110
+ version: 3.3.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-rspec_rails
113
113
  requirement: !ruby/object:Gem::Requirement