armitage-rubocop 1.30.1 → 1.36.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: 39013c8a88384352b39977d079478943d9c065285c4b1c07d00d2af445376af9
4
- data.tar.gz: cdb905adefa131cc4a39ba937e054b1cd7c061869035c62b99054ff91b2f998f
3
+ metadata.gz: b703a99fad9078f6ba20315883261f41413a7d7cf4bfed58f05ae666e624c844
4
+ data.tar.gz: 7ab87e5d2197fe1a33fa2d8e37b5cebf7892c7b6a5f29104ae996552a0c7fd21
5
5
  SHA512:
6
- metadata.gz: '083bbf5e7157666e2968222aa058ea9fa39a5bbf73ba9df7334057602e9a6c88dd43f659a1d8486e463779399c09165ef71837cd2fc026859782936007746b3c'
7
- data.tar.gz: ae1000b825e11b7b631ecc30fe8ac4fe61329494ddd66017cadfc02c0f58e7f4f8d3dbe2c1c1c29a03c5379f64a85c55c44423fde9f71815ffd3441891680dde
6
+ metadata.gz: c6ecb4667b52a7d89ffdbd16fabaaf31e82d9d1838946f2e89cc190061db34fcf344c95bad50ea9111911fb1f5c82a63df023a10db4ea8b98508e8be3d1de0ca
7
+ data.tar.gz: d07ce9c1b2fa61f64c79dd35eb778f25e701f6ba258871281845fb2ace604749022e2a73d6d4b0e7fc21c26c6bdd640a84d1bf2edbdd8a53279251b658e1a341
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- armitage-rubocop (1.26.1.1)
5
- rubocop (= 1.30.1)
6
- rubocop-performance (= 1.14.2)
7
- rubocop-rails (= 2.15.0)
4
+ armitage-rubocop (1.36.0)
5
+ rubocop (= 1.36.0)
6
+ rubocop-performance (= 1.15.0)
7
+ rubocop-rails (= 2.16.1)
8
8
  rubocop-rake (= 0.6.0)
9
- rubocop-rspec (= 2.11.0)
9
+ rubocop-rspec (= 2.13.2)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.0.3)
14
+ activesupport (7.0.4)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
@@ -19,50 +19,53 @@ GEM
19
19
  ast (2.4.2)
20
20
  coderay (1.1.3)
21
21
  concurrent-ruby (1.1.10)
22
- i18n (1.10.0)
22
+ i18n (1.12.0)
23
23
  concurrent-ruby (~> 1.0)
24
+ json (2.6.2)
24
25
  method_source (1.0.0)
25
- minitest (5.16.0)
26
+ minitest (5.16.3)
26
27
  parallel (1.22.1)
27
- parser (3.1.2.0)
28
+ parser (3.1.2.1)
28
29
  ast (~> 2.4.1)
29
30
  pry (0.14.1)
30
31
  coderay (~> 1.1)
31
32
  method_source (~> 1.0)
32
- rack (2.2.3.1)
33
+ rack (3.0.0)
33
34
  rainbow (3.1.1)
34
35
  rake (13.0.6)
35
- regexp_parser (2.5.0)
36
+ regexp_parser (2.6.0)
36
37
  rexml (3.2.5)
37
- rubocop (1.30.1)
38
+ rubocop (1.36.0)
39
+ json (~> 2.3)
38
40
  parallel (~> 1.10)
39
- parser (>= 3.1.0.0)
41
+ parser (>= 3.1.2.1)
40
42
  rainbow (>= 2.2.2, < 4.0)
41
43
  regexp_parser (>= 1.8, < 3.0)
42
44
  rexml (>= 3.2.5, < 4.0)
43
- rubocop-ast (>= 1.18.0, < 2.0)
45
+ rubocop-ast (>= 1.20.1, < 2.0)
44
46
  ruby-progressbar (~> 1.7)
45
47
  unicode-display_width (>= 1.4.0, < 3.0)
46
- rubocop-ast (1.18.0)
48
+ rubocop-ast (1.21.0)
47
49
  parser (>= 3.1.1.0)
48
- rubocop-performance (1.14.2)
50
+ rubocop-performance (1.15.0)
49
51
  rubocop (>= 1.7.0, < 2.0)
50
52
  rubocop-ast (>= 0.4.0)
51
- rubocop-rails (2.15.0)
53
+ rubocop-rails (2.16.1)
52
54
  activesupport (>= 4.2.0)
53
55
  rack (>= 1.1)
54
- rubocop (>= 1.7.0, < 2.0)
56
+ rubocop (>= 1.33.0, < 2.0)
55
57
  rubocop-rake (0.6.0)
56
58
  rubocop (~> 1.0)
57
- rubocop-rspec (2.11.0)
58
- rubocop (~> 1.19)
59
+ rubocop-rspec (2.13.2)
60
+ rubocop (~> 1.33)
59
61
  ruby-progressbar (1.11.0)
60
- tzinfo (2.0.4)
62
+ tzinfo (2.0.5)
61
63
  concurrent-ruby (~> 1.0)
62
- unicode-display_width (2.1.0)
64
+ unicode-display_width (2.3.0)
63
65
 
64
66
  PLATFORMS
65
67
  arm64-darwin-21
68
+ x86_64-darwin-19
66
69
 
67
70
  DEPENDENCIES
68
71
  armitage-rubocop!
@@ -71,4 +74,4 @@ DEPENDENCIES
71
74
  rake (~> 13.0)
72
75
 
73
76
  BUNDLED WITH
74
- 2.3.15
77
+ 2.3.23
@@ -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.30.1'
7
+ spec.version = '1.36.0'
8
8
 
9
9
  spec.name = 'armitage-rubocop'
10
10
  spec.license = 'MIT'
@@ -22,10 +22,10 @@ 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.30.1'
26
- spec.add_dependency 'rubocop-performance', '= 1.14.2'
27
- spec.add_dependency 'rubocop-rails', '= 2.15.0'
28
- spec.add_dependency 'rubocop-rspec', '= 2.11.0'
25
+ spec.add_dependency 'rubocop', '= 1.36.0'
26
+ spec.add_dependency 'rubocop-performance', '= 1.15.0'
27
+ spec.add_dependency 'rubocop-rails', '= 2.16.1'
28
+ spec.add_dependency 'rubocop-rspec', '= 2.13.2'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.6.0'
30
30
 
31
31
  spec.add_development_dependency 'bundler', '~> 2.3'
@@ -10,11 +10,6 @@ Gemspec/DependencyVersion:
10
10
  - '**/*.gemspec'
11
11
  AllowedGems: []
12
12
 
13
- Gemspec/DateAssignment:
14
- Enabled: true
15
- Include:
16
- - '**/*.gemspec'
17
-
18
13
  Gemspec/DuplicatedAssignment:
19
14
  Enabled: true
20
15
 
@@ -233,6 +233,16 @@ Layout/LeadingCommentSpace:
233
233
  AllowDoxygenCommentStyle: false
234
234
  AllowGemfileRubyComment: true
235
235
 
236
+ Layout/LineContinuationLeadingSpace:
237
+ Enabled: true
238
+ AutoCorrect: true
239
+ EnforcedStyle: trailing
240
+
241
+ Layout/LineContinuationSpacing:
242
+ Enabled: true
243
+ EnforcedStyle: space
244
+ AutoCorrect: true
245
+
236
246
  Layout/LineLength:
237
247
  Enabled: true
238
248
  AutoCorrect: true
@@ -247,6 +257,9 @@ Layout/LineLength:
247
257
  Exclude:
248
258
  - Gemfile
249
259
 
260
+ Layout/MultilineMethodParameterLineBreaks:
261
+ Enabled: true
262
+
250
263
  Layout/MultilineArrayBraceLayout:
251
264
  Enabled: true
252
265
  EnforcedStyle: symmetrical
data/lib/common/lint.yml CHANGED
@@ -2,7 +2,7 @@ Lint/AmbiguousAssignment:
2
2
  Enabled: false
3
3
 
4
4
  Lint/AmbiguousBlockAssociation:
5
- IgnoredMethods: []
5
+ AllowedMethods: []
6
6
  Enabled: true
7
7
 
8
8
  Lint/AmbiguousOperator:
@@ -39,6 +39,9 @@ Lint/ConstantDefinitionInBlock:
39
39
  AllowedMethods:
40
40
  - enums
41
41
 
42
+ Lint/ConstantOverwrittenInRescue:
43
+ Enabled: true
44
+
42
45
  Lint/ConstantResolution:
43
46
  Enabled: false
44
47
  Only: []
@@ -110,6 +113,7 @@ Lint/EmptyInPattern:
110
113
  Lint/EmptyConditionalBody:
111
114
  Enabled: true
112
115
  AllowComments: true
116
+ AutoCorrect: true
113
117
 
114
118
  Lint/EmptyEnsure:
115
119
  Enabled: true
@@ -226,6 +230,9 @@ Lint/NestedPercentLiteral:
226
230
  Lint/NextWithoutAccumulator:
227
231
  Enabled: true
228
232
 
233
+ Lint/NonAtomicFileOperation:
234
+ Enabled: true
235
+
229
236
  Lint/NonDeterministicRequireOrder:
230
237
  Enabled: false
231
238
 
@@ -257,6 +264,9 @@ Lint/PercentStringArray:
257
264
  Lint/PercentSymbolArray:
258
265
  Enabled: true
259
266
 
267
+ Lint/UselessElseWithoutRescue:
268
+ Enabled: true
269
+
260
270
  Lint/UselessRuby2Keywords:
261
271
  Enabled: true
262
272
 
@@ -295,6 +305,9 @@ Lint/RegexpAsCondition:
295
305
  Enabled: true
296
306
  AutoCorrect: true
297
307
 
308
+ Lint/RequireRangeParentheses:
309
+ Enabled: true
310
+
298
311
  Lint/RequireParentheses:
299
312
  Enabled: true
300
313
 
@@ -2,14 +2,14 @@ Metrics/AbcSize:
2
2
  Enabled: true
3
3
  Max: 19
4
4
  CountRepeatedAttributes: true
5
- IgnoredMethods: []
5
+ AllowedMethods: []
6
6
 
7
7
  Metrics/BlockLength:
8
8
  Enabled: true
9
9
  CountComments: false
10
10
  CountAsOne: []
11
11
  Max: 25
12
- IgnoredMethods:
12
+ AllowedMethods:
13
13
  - refine
14
14
  Exclude:
15
15
  - Rakefile
@@ -29,14 +29,14 @@ Metrics/ClassLength:
29
29
  Metrics/CyclomaticComplexity:
30
30
  Enabled: true
31
31
  Max: 10
32
- IgnoredMethods: []
32
+ AllowedMethods: []
33
33
 
34
34
  Metrics/MethodLength:
35
35
  Enabled: true
36
36
  Max: 25
37
37
  CountComments: false
38
38
  CountAsOne: []
39
- IgnoredMethods: []
39
+ AllowedMethods: []
40
40
 
41
41
  Metrics/ModuleLength:
42
42
  Enabled: true
@@ -52,4 +52,4 @@ Metrics/ParameterLists:
52
52
  Metrics/PerceivedComplexity:
53
53
  Enabled: true
54
54
  Max: 10
55
- IgnoredMethods: []
55
+ AllowedMethods: []
@@ -74,6 +74,7 @@ Naming/MethodParameterName:
74
74
  - 'ip'
75
75
  - 'db'
76
76
  - 'os'
77
+ - 'as'
77
78
  ForbiddenNames: []
78
79
 
79
80
  Naming/VariableName:
data/lib/common/rails.yml CHANGED
@@ -375,3 +375,24 @@ Rails/WhereExists:
375
375
 
376
376
  Rails/WhereNot:
377
377
  Enabled: false
378
+
379
+ Rails/FreezeTime:
380
+ Enabled: true
381
+
382
+ Rails/WhereMissing:
383
+ Enabled: false
384
+
385
+ Rails/RootPathnameMethods:
386
+ Enabled: true
387
+
388
+ Rails/TopLevelHashWithIndifferentAccess:
389
+ Enabled: true
390
+
391
+ Rails/ActionControllerFlashBeforeRender:
392
+ Enabled: true
393
+
394
+ Rails/ActiveSupportOnLoad:
395
+ Enabled: true
396
+
397
+ Rails/ToSWithArgument:
398
+ Enabled: true
data/lib/common/style.yml CHANGED
@@ -57,6 +57,7 @@ Style/BlockDelimiters:
57
57
  Style/CaseEquality:
58
58
  Enabled: true
59
59
  AllowOnConstant: false
60
+ AllowOnSelfClass: false
60
61
  AutoCorrect: true
61
62
 
62
63
  Style/CaseLikeIf:
@@ -75,7 +76,7 @@ Style/ClassCheck:
75
76
 
76
77
  Style/ClassEqualityComparison:
77
78
  Enabled: true
78
- IgnoredMethods:
79
+ AllowedMethods:
79
80
  - ==
80
81
  - equal?
81
82
  - eql?
@@ -158,6 +159,9 @@ Style/EachForSimpleLoop:
158
159
  Style/EachWithObject:
159
160
  Enabled: true
160
161
 
162
+ Style/EmptyHeredoc:
163
+ Enabled: true
164
+
161
165
  Style/EmptyBlockParameter:
162
166
  Enabled: true
163
167
 
@@ -167,6 +171,7 @@ Style/EmptyCaseCondition:
167
171
  Style/EmptyElse:
168
172
  Enabled: true
169
173
  EnforcedStyle: empty
174
+ AllowComments: true
170
175
 
171
176
  Style/EmptyLambdaParameter:
172
177
  Enabled: true
@@ -210,7 +215,7 @@ Style/ExplicitBlockArgument:
210
215
  Enabled: true
211
216
 
212
217
  Style/FetchEnvVar:
213
- Enabled: false
218
+ Enabled: true
214
219
 
215
220
  Style/FileRead:
216
221
  Enabled: false
@@ -234,7 +239,7 @@ Style/FormatStringToken:
234
239
  Enabled: true
235
240
  MaxUnannotatedPlaceholdersAllowed: 1
236
241
  EnforcedStyle: annotated
237
- IgnoredMethods: []
242
+ AllowedMethods: []
238
243
 
239
244
  Style/FrozenStringLiteralComment:
240
245
  Enabled: true
@@ -334,6 +339,12 @@ Style/LambdaCall:
334
339
  Style/LineEndConcatenation:
335
340
  Enabled: true
336
341
 
342
+ Style/MagicCommentFormat:
343
+ Enabled: true
344
+ EnforcedStyle: snake_case
345
+ DirectiveCapitalization: lowercase
346
+ ValueCapitalization: ~
347
+
337
348
  Style/MapCompactWithConditionalBlock:
338
349
  Enabled: true
339
350
 
@@ -472,12 +483,13 @@ Style/NumericLiterals:
472
483
  Enabled: true
473
484
  Strict: false
474
485
  AllowedNumbers: []
486
+ AllowedPatterns: []
475
487
 
476
488
  Style/NumericPredicate:
477
489
  Enabled: false # strongly situative cop
478
490
  EnforcedStyle: comparison
479
491
  AutoCorrect: true
480
- IgnoredMethods: []
492
+ AllowedMethods: []
481
493
 
482
494
  Style/ObjectThen:
483
495
  Enabled: true
@@ -692,7 +704,7 @@ Style/SymbolProc:
692
704
  Enabled: true
693
705
  AllowMethodsWithArguments: true
694
706
  AllowComments: false
695
- IgnoredMethods:
707
+ AllowedMethods:
696
708
  - respond_to
697
709
  - define_method
698
710
 
@@ -6,3 +6,9 @@ RSpec/Capybara/FeatureMethods:
6
6
 
7
7
  RSpec/Capybara/VisibilityMatcher:
8
8
  Enabled: true
9
+
10
+ RSpec/Capybara/SpecificMatcher:
11
+ Enabled: false
12
+
13
+ RSpec/Capybara/SpecificFinders:
14
+ Enabled: false
data/lib/rspec/rails.yml CHANGED
@@ -3,3 +3,6 @@ RSpec/Rails/HttpStatus:
3
3
 
4
4
  RSpec/Rails/AvoidSetupHook:
5
5
  Enabled: true
6
+
7
+ RSpec/Rails/HaveHttpStatus:
8
+ Enabled: false
data/lib/rspec/rspec.yml CHANGED
@@ -23,6 +23,10 @@ RSpec/BeEql:
23
23
  RSpec/BeforeAfterAll:
24
24
  Enabled: false
25
25
 
26
+ RSpec/ChangeByZero:
27
+ Enabled: true
28
+ NegatedMatcher: nil
29
+
26
30
  RSpec/ContextMethod:
27
31
  Enabled: false
28
32
 
@@ -52,10 +56,14 @@ RSpec/Dialect:
52
56
 
53
57
  RSpec/EmptyExampleGroup:
54
58
  Enabled: true
59
+ AutoCorrect: true
55
60
 
56
61
  RSpec/EmptyHook:
57
62
  Enabled: true
58
63
 
64
+ RSpec/NoExpectationExample:
65
+ Enabled: false
66
+
59
67
  RSpec/EmptyLineAfterExampleGroup:
60
68
  Enabled: true
61
69
 
@@ -67,6 +75,7 @@ RSpec/EmptyLineAfterFinalLet:
67
75
 
68
76
  RSpec/EmptyLineAfterHook:
69
77
  Enabled: true
78
+ AllowConsecutiveOneLiners: true
70
79
 
71
80
  RSpec/EmptyLineAfterSubject:
72
81
  Enabled: true
@@ -226,6 +235,10 @@ RSpec/ReturnFromStub:
226
235
  Enabled: true
227
236
  EnforcedStyle: and_return
228
237
 
238
+ RSpec/ClassCheck:
239
+ Enabled: true
240
+ EnforcedStyle: be_a
241
+
229
242
  RSpec/ScatteredLet:
230
243
  Enabled: true
231
244
 
@@ -260,7 +273,7 @@ RSpec/VariableDefinition:
260
273
  RSpec/VariableName:
261
274
  Enabled: true
262
275
  EnforcedStyle: snake_case
263
- IgnoredPatterns: []
276
+ AllowedPatterns: []
264
277
 
265
278
  RSpec/VerifiedDoubles:
266
279
  Enabled: false
@@ -8,6 +8,7 @@ inherit_from:
8
8
 
9
9
  AllCops:
10
10
  TargetRailsVersion: ~
11
+ ActiveSupportExtensionsEnabled: true
11
12
 
12
13
  Rails:
13
14
  Enabled: true
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.30.1
4
+ version: 1.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Ibragimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-18 00:00:00.000000000 Z
11
+ date: 2022-10-06 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.30.1
19
+ version: 1.36.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.30.1
26
+ version: 1.36.0
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.14.2
33
+ version: 1.15.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.14.2
40
+ version: 1.15.0
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.15.0
47
+ version: 2.16.1
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.15.0
54
+ version: 2.16.1
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.11.0
61
+ version: 2.13.2
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.11.0
68
+ version: 2.13.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  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.3.11
183
+ rubygems_version: 3.1.2
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: A set of rubocop settings