armitage-rubocop 1.23.0 → 1.26.1.1

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: 55bed071bbf70dccdff35074b5a97ab60a3cf71d639def4d9db4f8c13130f508
4
- data.tar.gz: 6ca102e44ec17a96852e1ec8d65a325d9f5a502c0b0c1239706e246e17f4f5fa
3
+ metadata.gz: c85fdaa3e491845353e14bb772c02c5b0aa4eb4aeca60059be9cec94175884ea
4
+ data.tar.gz: 6586ec4070318fb4da748321e0be3e9efc1254b7241398ab9addab33461b8d23
5
5
  SHA512:
6
- metadata.gz: 7bb7405b53235b06fedc9685094b9468b45eb7d2b7d9b08e42ca81e7f846e5fd349ee6e648189abdb4a35df08b8accfff1d8b6253efe09b51518d68d382adda8
7
- data.tar.gz: 7a00d9eb867fa8cb747997d38c547bed288a694735cc34d7779af1476c13baf992856d41cb98b8a809608a1bf866e1abaa9c40d040bf6734b3b0f4f3eb56ed50
6
+ metadata.gz: e3f90b27fca2d902da00b86cf83eb8eed9f53f20ff7fdfb3f0211e197df7fbae148fbeb0ef0d24f533939794663134c8f392bf7a174ce56902d62c31592bb7b8
7
+ data.tar.gz: 0a714cea6fd4cec5a91cf992f30ea2fd5be9534d5164d11bc7846b57cdee8ac61c6c92186bb4070fdd97bf4f7dcee97249d27a73fa7e2fd76873724441ee3547
data/Gemfile.lock CHANGED
@@ -1,76 +1,74 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- armitage-rubocop (1.23.0)
5
- rubocop (= 1.23.0)
6
- rubocop-performance (= 1.12.0)
7
- rubocop-rails (= 2.12.4)
4
+ armitage-rubocop (1.26.1.1)
5
+ rubocop (= 1.26.1)
6
+ rubocop-performance (= 1.13.3)
7
+ rubocop-rails (= 2.14.2)
8
8
  rubocop-rake (= 0.6.0)
9
- rubocop-rspec (= 2.6.0)
9
+ rubocop-rspec (= 2.9.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (6.1.4.1)
14
+ activesupport (7.0.2.3)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
18
18
  tzinfo (~> 2.0)
19
- zeitwerk (~> 2.3)
20
19
  ast (2.4.2)
21
20
  coderay (1.1.3)
22
- concurrent-ruby (1.1.9)
23
- i18n (1.8.11)
21
+ concurrent-ruby (1.1.10)
22
+ i18n (1.10.0)
24
23
  concurrent-ruby (~> 1.0)
25
24
  method_source (1.0.0)
26
- minitest (5.14.4)
27
- parallel (1.21.0)
28
- parser (3.0.3.1)
25
+ minitest (5.15.0)
26
+ parallel (1.22.1)
27
+ parser (3.1.1.0)
29
28
  ast (~> 2.4.1)
30
29
  pry (0.14.1)
31
30
  coderay (~> 1.1)
32
31
  method_source (~> 1.0)
33
32
  rack (2.2.3)
34
- rainbow (3.0.0)
33
+ rainbow (3.1.1)
35
34
  rake (13.0.6)
36
- regexp_parser (2.1.1)
35
+ regexp_parser (2.2.1)
37
36
  rexml (3.2.5)
38
- rubocop (1.23.0)
37
+ rubocop (1.26.1)
39
38
  parallel (~> 1.10)
40
- parser (>= 3.0.0.0)
39
+ parser (>= 3.1.0.0)
41
40
  rainbow (>= 2.2.2, < 4.0)
42
41
  regexp_parser (>= 1.8, < 3.0)
43
42
  rexml
44
- rubocop-ast (>= 1.12.0, < 2.0)
43
+ rubocop-ast (>= 1.16.0, < 2.0)
45
44
  ruby-progressbar (~> 1.7)
46
45
  unicode-display_width (>= 1.4.0, < 3.0)
47
- rubocop-ast (1.13.0)
48
- parser (>= 3.0.1.1)
49
- rubocop-performance (1.12.0)
46
+ rubocop-ast (1.16.0)
47
+ parser (>= 3.1.1.0)
48
+ rubocop-performance (1.13.3)
50
49
  rubocop (>= 1.7.0, < 2.0)
51
50
  rubocop-ast (>= 0.4.0)
52
- rubocop-rails (2.12.4)
51
+ rubocop-rails (2.14.2)
53
52
  activesupport (>= 4.2.0)
54
53
  rack (>= 1.1)
55
54
  rubocop (>= 1.7.0, < 2.0)
56
55
  rubocop-rake (0.6.0)
57
56
  rubocop (~> 1.0)
58
- rubocop-rspec (2.6.0)
57
+ rubocop-rspec (2.9.0)
59
58
  rubocop (~> 1.19)
60
59
  ruby-progressbar (1.11.0)
61
60
  tzinfo (2.0.4)
62
61
  concurrent-ruby (~> 1.0)
63
62
  unicode-display_width (2.1.0)
64
- zeitwerk (2.5.1)
65
63
 
66
64
  PLATFORMS
67
- x86_64-darwin-21
65
+ arm64-darwin-21
68
66
 
69
67
  DEPENDENCIES
70
68
  armitage-rubocop!
71
- bundler (~> 2.2)
69
+ bundler (~> 2.3)
72
70
  pry (~> 0.14)
73
71
  rake (~> 13.0)
74
72
 
75
73
  BUNDLED WITH
76
- 2.2.31
74
+ 2.3.10
data/Rakefile CHANGED
@@ -22,7 +22,6 @@ end
22
22
  ARMITAGE_RUBOCOP_PATH = Pathname.new(__FILE__).join('../.rubocop.yml')
23
23
  NON_CHECKABLE_COPS = %w[Rails].freeze # NOTE: Global "Rails" cop has only `Enabled` option
24
24
 
25
- # rubocop:disable Rails/RakeEnvironment
26
25
  namespace :armitage_rubocop do
27
26
  desc 'Full armitage-rubocop build (code style, cops validation, yaml validation)'
28
27
  task :build do
@@ -93,6 +92,4 @@ namespace :armitage_rubocop do
93
92
  end
94
93
  end
95
94
  end
96
- # rubocop:enable Rails/RakeEnvironment
97
-
98
95
  task default: :rubocop
@@ -4,7 +4,7 @@ lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.version = '1.23.0'
7
+ spec.version = '1.26.1.1'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,13 +22,13 @@ Gem::Specification.new do |spec|
22
22
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
23
  end
24
24
 
25
- spec.add_dependency 'rubocop', '= 1.23.0'
26
- spec.add_dependency 'rubocop-performance', '= 1.12.0'
27
- spec.add_dependency 'rubocop-rails', '= 2.12.4'
28
- spec.add_dependency 'rubocop-rspec', '= 2.6.0'
25
+ spec.add_dependency 'rubocop', '= 1.26.1'
26
+ spec.add_dependency 'rubocop-performance', '= 1.13.3'
27
+ spec.add_dependency 'rubocop-rails', '= 2.14.2'
28
+ spec.add_dependency 'rubocop-rspec', '= 2.9.0'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.6.0'
30
30
 
31
- spec.add_development_dependency 'bundler', '~> 2.2'
31
+ spec.add_development_dependency 'bundler', '~> 2.3'
32
32
  spec.add_development_dependency 'rake', '~> 13.0'
33
33
  spec.add_development_dependency 'pry', '~> 0.14'
34
34
  end
@@ -35,7 +35,7 @@ Lint/RequireRelativeSelfPath:
35
35
 
36
36
  Layout/RedundantLineBreak:
37
37
  InspectBlocks: false
38
- Enabled: true
38
+ Enabled: false
39
39
 
40
40
  Layout/BlockAlignment:
41
41
  Enabled: true
@@ -74,6 +74,7 @@ Layout/ClosingParenthesisIndentation:
74
74
 
75
75
  Layout/CommentIndentation:
76
76
  Enabled: true
77
+ AllowForAlignment: true
77
78
 
78
79
  Layout/ConditionPosition:
79
80
  Enabled: true
@@ -47,6 +47,11 @@ Naming/RescuedExceptionsVariableName:
47
47
  Enabled: true
48
48
  PreferredName: error
49
49
 
50
+ Naming/BlockForwarding:
51
+ Enabled: true
52
+ EnforcedStyle: explicit
53
+ BlockForwardingName: block
54
+
50
55
  Naming/BlockParameterName:
51
56
  Enabled: true
52
57
  MinNameLength: 1
@@ -135,6 +135,9 @@ Performance/StartWith:
135
135
  Enabled: true
136
136
  AutoCorrect: false
137
137
 
138
+ Performance/StringIdentifierArgument:
139
+ Enabled: true
140
+
138
141
  Performance/StringInclude:
139
142
  Enabled: true
140
143
 
@@ -144,6 +147,7 @@ Performance/StringReplacement:
144
147
  Performance/Sum:
145
148
  Enabled: true
146
149
  AutoCorrect: true
150
+ OnlySumOrWithInitialValue: false
147
151
 
148
152
  Performance/TimesMap:
149
153
  Enabled: true
data/lib/common/rails.yml CHANGED
@@ -1,6 +1,9 @@
1
1
  Rails/AddColumnIndex:
2
2
  Enabled: false # NOTE: cop works incorrectly with `Sequel` (sequel supports :index in add_column)
3
3
 
4
+ Rails/ActionControllerTestCase:
5
+ Enabled: true
6
+
4
7
  Rails/ActionFilter:
5
8
  Enabled: true
6
9
  EnforcedStyle: action
@@ -78,9 +81,24 @@ Rails/BulkChangeTable:
78
81
  Rails/CreateTableWithTimestamps:
79
82
  Enabled: false
80
83
 
84
+ Rails/CompactBlank:
85
+ Enabled: false
86
+
81
87
  Rails/ContentTag:
82
88
  Enabled: true
83
89
 
90
+ Rails/DuplicateAssociation:
91
+ Enabled: true
92
+
93
+ Rails/DuplicateScope:
94
+ Enabled: true
95
+
96
+ Rails/DurationArithmetic:
97
+ Enabled: false
98
+
99
+ Rails/DeprecatedActiveModelErrorsMethods:
100
+ Enabled: true
101
+
84
102
  Rails/Date:
85
103
  Enabled: true
86
104
  EnforcedStyle: flexible
@@ -149,6 +167,15 @@ Rails/HttpPositionalArguments:
149
167
  Rails/HttpStatus:
150
168
  Enabled: false
151
169
 
170
+ Rails/I18nLocaleTexts:
171
+ Enabled: false
172
+
173
+ Rails/I18nLazyLookup:
174
+ Enabled: false
175
+
176
+ Rails/MigrationClassName:
177
+ Enabled: true
178
+
152
179
  Rails/I18nLocaleAssignment:
153
180
  Enabled: false
154
181
 
@@ -217,6 +244,9 @@ Rails/Presence:
217
244
  Rails/Present:
218
245
  Enabled: true
219
246
 
247
+ Rails/RootJoinChain:
248
+ Enabled: true
249
+
220
250
  Rails/ReadWriteAttribute:
221
251
  Enabled: true
222
252
 
@@ -225,6 +255,9 @@ Rails/RedundantAllowNil:
225
255
  Include:
226
256
  - app/models/**/*.rb
227
257
 
258
+ Rails/RedundantPresenceValidationOnBelongsTo:
259
+ Enabled: true
260
+
228
261
  Rails/RedundantForeignKey:
229
262
  Enabled: false
230
263
 
@@ -243,7 +276,6 @@ Rails/RefuteMethods:
243
276
 
244
277
  Rails/RelativeDateConstant:
245
278
  Enabled: true
246
- AutoCorrect: false
247
279
 
248
280
  Rails/RenderInline:
249
281
  Enabled: false
@@ -272,6 +304,9 @@ Rails/SaveBang:
272
304
  Rails/ScopeArgs:
273
305
  Enabled: true
274
306
 
307
+ Rails/SchemaComment:
308
+ Enabled: false
309
+
275
310
  Rails/ShortI18n:
276
311
  Enabled: true
277
312
  EnforcedStyle: conservative
@@ -285,6 +320,9 @@ Rails/SquishedSQLHeredocs:
285
320
  Rails/RedundantTravelBack:
286
321
  Enabled: false # NOTE: can affect the readability
287
322
 
323
+ Rails/TableNameAssignment:
324
+ Enabled: false
325
+
288
326
  Rails/TimeZone:
289
327
  Enabled: true
290
328
  EnforcedStyle: flexible
@@ -292,6 +330,9 @@ Rails/TimeZone:
292
330
  Rails/TimeZoneAssignment:
293
331
  Enabled: false
294
332
 
333
+ Rails/TransactionExitStatement:
334
+ Enabled: true
335
+
295
336
  Rails/UniqBeforePluck:
296
337
  Enabled: true
297
338
  EnforcedStyle: conservative
data/lib/common/style.yml CHANGED
@@ -206,6 +206,12 @@ Style/ExponentialNotation:
206
206
  Style/ExplicitBlockArgument:
207
207
  Enabled: true
208
208
 
209
+ Style/FileRead:
210
+ Enabled: false
211
+
212
+ Style/FileWrite:
213
+ Enabled: false
214
+
209
215
  Style/FloatDivision:
210
216
  Enabled: false
211
217
 
@@ -263,6 +269,7 @@ Style/HashSyntax:
263
269
  EnforcedStyle: ruby19
264
270
  UseHashRocketsWithSymbolValues: false
265
271
  PreferHashRocketsForNonAlnumEndingSymbols: false
272
+ EnforcedShorthandSyntax: either
266
273
 
267
274
  Style/HashTransformKeys:
268
275
  Enabled: false
@@ -320,6 +327,9 @@ Style/LambdaCall:
320
327
  Style/LineEndConcatenation:
321
328
  Enabled: true
322
329
 
330
+ Style/MapToHash:
331
+ Enabled: true
332
+
323
333
  Style/MethodCallWithArgsParentheses:
324
334
  Enabled: false # NOTE: experimental!
325
335
  EnforcedStyle: require_parentheses
@@ -405,6 +415,9 @@ Style/NegatedUnless:
405
415
  Style/NegatedWhile:
406
416
  Enabled: true
407
417
 
418
+ Style/NestedFileDirname:
419
+ Enabled: false # NOTE: switch to "true" if you work with Ruby 3.1 or higher
420
+
408
421
  Style/NestedModifier:
409
422
  Enabled: true
410
423
 
@@ -446,7 +459,9 @@ Style/NumericLiteralPrefix:
446
459
  EnforcedOctalStyle: zero_with_o
447
460
 
448
461
  Style/NumericLiterals:
449
- Enabled: false
462
+ Enabled: true
463
+ Strict: false
464
+ AllowedNumbers: []
450
465
 
451
466
  Style/NumericPredicate:
452
467
  Enabled: false # strongly situative cop
@@ -7,3 +7,6 @@ RSpec/FactoryBot/CreateList:
7
7
 
8
8
  RSpec/FactoryBot/FactoryClassName:
9
9
  Enabled: true
10
+
11
+ RSpec/FactoryBot/SyntaxMethods:
12
+ Enabled: true
data/lib/rspec/rspec.yml CHANGED
@@ -13,9 +13,15 @@ RSpec/AroundBlock:
13
13
  RSpec/Be:
14
14
  Enabled: true
15
15
 
16
+ RSpec/BeNil:
17
+ Enabled: true
18
+
16
19
  RSpec/BeEql:
17
20
  Enabled: true
18
21
 
22
+ RSpec/BeEq:
23
+ Enabled: true
24
+
19
25
  RSpec/BeforeAfterAll:
20
26
  Enabled: false
21
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armitage-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.26.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.23.0
19
+ version: 1.26.1
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.23.0
26
+ version: 1.26.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.12.0
33
+ version: 1.13.3
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.12.0
40
+ version: 1.13.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.12.4
47
+ version: 2.14.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.12.4
54
+ version: 2.14.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.6.0
61
+ version: 2.9.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 2.6.0
68
+ version: 2.9.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.2'
89
+ version: '2.3'
90
90
  type: :development
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.2'
96
+ version: '2.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.2.22
183
+ rubygems_version: 3.3.10
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: A set of rubocop settings