armitage-rubocop 1.26.1.1 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c85fdaa3e491845353e14bb772c02c5b0aa4eb4aeca60059be9cec94175884ea
4
- data.tar.gz: 6586ec4070318fb4da748321e0be3e9efc1254b7241398ab9addab33461b8d23
3
+ metadata.gz: 39013c8a88384352b39977d079478943d9c065285c4b1c07d00d2af445376af9
4
+ data.tar.gz: cdb905adefa131cc4a39ba937e054b1cd7c061869035c62b99054ff91b2f998f
5
5
  SHA512:
6
- metadata.gz: e3f90b27fca2d902da00b86cf83eb8eed9f53f20ff7fdfb3f0211e197df7fbae148fbeb0ef0d24f533939794663134c8f392bf7a174ce56902d62c31592bb7b8
7
- data.tar.gz: 0a714cea6fd4cec5a91cf992f30ea2fd5be9534d5164d11bc7846b57cdee8ac61c6c92186bb4070fdd97bf4f7dcee97249d27a73fa7e2fd76873724441ee3547
6
+ metadata.gz: '083bbf5e7157666e2968222aa058ea9fa39a5bbf73ba9df7334057602e9a6c88dd43f659a1d8486e463779399c09165ef71837cd2fc026859782936007746b3c'
7
+ data.tar.gz: ae1000b825e11b7b631ecc30fe8ac4fe61329494ddd66017cadfc02c0f58e7f4f8d3dbe2c1c1c29a03c5379f64a85c55c44423fde9f71815ffd3441891680dde
data/Gemfile.lock CHANGED
@@ -2,16 +2,16 @@ PATH
2
2
  remote: .
3
3
  specs:
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)
5
+ rubocop (= 1.30.1)
6
+ rubocop-performance (= 1.14.2)
7
+ rubocop-rails (= 2.15.0)
8
8
  rubocop-rake (= 0.6.0)
9
- rubocop-rspec (= 2.9.0)
9
+ rubocop-rspec (= 2.11.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (7.0.2.3)
14
+ activesupport (7.0.3)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
@@ -22,39 +22,39 @@ GEM
22
22
  i18n (1.10.0)
23
23
  concurrent-ruby (~> 1.0)
24
24
  method_source (1.0.0)
25
- minitest (5.15.0)
25
+ minitest (5.16.0)
26
26
  parallel (1.22.1)
27
- parser (3.1.1.0)
27
+ parser (3.1.2.0)
28
28
  ast (~> 2.4.1)
29
29
  pry (0.14.1)
30
30
  coderay (~> 1.1)
31
31
  method_source (~> 1.0)
32
- rack (2.2.3)
32
+ rack (2.2.3.1)
33
33
  rainbow (3.1.1)
34
34
  rake (13.0.6)
35
- regexp_parser (2.2.1)
35
+ regexp_parser (2.5.0)
36
36
  rexml (3.2.5)
37
- rubocop (1.26.1)
37
+ rubocop (1.30.1)
38
38
  parallel (~> 1.10)
39
39
  parser (>= 3.1.0.0)
40
40
  rainbow (>= 2.2.2, < 4.0)
41
41
  regexp_parser (>= 1.8, < 3.0)
42
- rexml
43
- rubocop-ast (>= 1.16.0, < 2.0)
42
+ rexml (>= 3.2.5, < 4.0)
43
+ rubocop-ast (>= 1.18.0, < 2.0)
44
44
  ruby-progressbar (~> 1.7)
45
45
  unicode-display_width (>= 1.4.0, < 3.0)
46
- rubocop-ast (1.16.0)
46
+ rubocop-ast (1.18.0)
47
47
  parser (>= 3.1.1.0)
48
- rubocop-performance (1.13.3)
48
+ rubocop-performance (1.14.2)
49
49
  rubocop (>= 1.7.0, < 2.0)
50
50
  rubocop-ast (>= 0.4.0)
51
- rubocop-rails (2.14.2)
51
+ rubocop-rails (2.15.0)
52
52
  activesupport (>= 4.2.0)
53
53
  rack (>= 1.1)
54
54
  rubocop (>= 1.7.0, < 2.0)
55
55
  rubocop-rake (0.6.0)
56
56
  rubocop (~> 1.0)
57
- rubocop-rspec (2.9.0)
57
+ rubocop-rspec (2.11.0)
58
58
  rubocop (~> 1.19)
59
59
  ruby-progressbar (1.11.0)
60
60
  tzinfo (2.0.4)
@@ -71,4 +71,4 @@ DEPENDENCIES
71
71
  rake (~> 13.0)
72
72
 
73
73
  BUNDLED WITH
74
- 2.3.10
74
+ 2.3.15
data/Rakefile CHANGED
@@ -22,6 +22,7 @@ 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
25
26
  namespace :armitage_rubocop do
26
27
  desc 'Full armitage-rubocop build (code style, cops validation, yaml validation)'
27
28
  task :build do
@@ -92,4 +93,6 @@ namespace :armitage_rubocop do
92
93
  end
93
94
  end
94
95
  end
96
+ # rubocop:enable Rails/RakeEnvironment
97
+
95
98
  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.26.1.1'
7
+ spec.version = '1.30.1'
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.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'
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'
29
29
  spec.add_dependency 'rubocop-rake', '= 0.6.0'
30
30
 
31
31
  spec.add_development_dependency 'bundler', '~> 2.3'
@@ -1,3 +1,15 @@
1
+ Gemspec/DeprecatedAttributeAssignment:
2
+ Enabled: true
3
+ Include:
4
+ - '**/*.gemspec'
5
+
6
+ Gemspec/DependencyVersion:
7
+ Enabled: true
8
+ EnforcedStyle: required
9
+ Include:
10
+ - '**/*.gemspec'
11
+ AllowedGems: []
12
+
1
13
  Gemspec/DateAssignment:
2
14
  Enabled: true
3
15
  Include:
@@ -220,7 +220,7 @@ Layout/IndentationConsistency:
220
220
  Layout/IndentationWidth:
221
221
  Enabled: true
222
222
  Width: 2
223
- IgnoredPatterns: []
223
+ AllowedPatterns: []
224
224
 
225
225
  Layout/InitialIndentation:
226
226
  Enabled: true
@@ -243,7 +243,7 @@ Layout/LineLength:
243
243
  - http
244
244
  - https
245
245
  IgnoreCopDirectives: false
246
- IgnoredPatterns: []
246
+ AllowedPatterns: []
247
247
  Exclude:
248
248
  - Gemfile
249
249
 
data/lib/common/lint.yml CHANGED
@@ -79,6 +79,7 @@ Lint/DuplicateElsifCondition:
79
79
 
80
80
  Lint/DuplicateRequire:
81
81
  Enabled: true
82
+ AutoCorrect: true
82
83
 
83
84
  Lint/DuplicateRegexpCharacterClassElement:
84
85
  Enabled: true
@@ -271,6 +272,9 @@ Lint/RandOne:
271
272
  Lint/RedundantDirGlobSort:
272
273
  Enabled: true
273
274
 
275
+ Lint/RefinementImportMethods:
276
+ Enabled: true
277
+
274
278
  Lint/RedundantSafeNavigation:
275
279
  Enabled: true
276
280
  AllowedMethods:
@@ -410,12 +414,8 @@ Lint/UselessAccessModifier:
410
414
  Lint/UselessAssignment:
411
415
  Enabled: true
412
416
 
413
- Lint/UselessElseWithoutRescue:
414
- Enabled: true
415
-
416
417
  Lint/UselessMethodDefinition:
417
418
  Enabled: true
418
- AllowComments: true
419
419
 
420
420
  Lint/UselessSetterCall:
421
421
  Enabled: true
@@ -83,7 +83,7 @@ Naming/VariableName:
83
83
 
84
84
  Naming/VariableNumber:
85
85
  Enabled: true
86
- EnforcedStyle: snake_case
86
+ EnforcedStyle: normalcase
87
87
  CheckMethodNames: true
88
88
  CheckSymbols: true
89
89
  AllowedIdentifiers: []
data/lib/common/rails.yml CHANGED
@@ -87,6 +87,9 @@ Rails/CompactBlank:
87
87
  Rails/ContentTag:
88
88
  Enabled: true
89
89
 
90
+ Rails/DotSeparatedKeys:
91
+ Enabled: true
92
+
90
93
  Rails/DuplicateAssociation:
91
94
  Enabled: true
92
95
 
@@ -98,6 +101,7 @@ Rails/DurationArithmetic:
98
101
 
99
102
  Rails/DeprecatedActiveModelErrorsMethods:
100
103
  Enabled: true
104
+ AutoCorrect: true
101
105
 
102
106
  Rails/Date:
103
107
  Enabled: true
@@ -244,6 +248,9 @@ Rails/Presence:
244
248
  Rails/Present:
245
249
  Enabled: true
246
250
 
251
+ Rails/RootPublicPath:
252
+ Enabled: true
253
+
247
254
  Rails/RootJoinChain:
248
255
  Enabled: true
249
256
 
@@ -317,6 +324,9 @@ Rails/SkipsModelValidations:
317
324
  Rails/SquishedSQLHeredocs:
318
325
  Enabled: true
319
326
 
327
+ Rails/StripHeredoc:
328
+ Enabled: true
329
+
320
330
  Rails/RedundantTravelBack:
321
331
  Enabled: false # NOTE: can affect the readability
322
332
 
@@ -330,6 +340,9 @@ Rails/TimeZone:
330
340
  Rails/TimeZoneAssignment:
331
341
  Enabled: false
332
342
 
343
+ Rails/ToFormattedS:
344
+ Enabled: true
345
+
333
346
  Rails/TransactionExitStatement:
334
347
  Enabled: true
335
348
 
@@ -1,3 +1,6 @@
1
+ Security/CompoundHash:
2
+ Enabled: false
3
+
1
4
  Security/Eval:
2
5
  Enabled: false
3
6
 
data/lib/common/style.yml CHANGED
@@ -189,6 +189,9 @@ Style/EndBlock:
189
189
  Enabled: true
190
190
  AutoCorrect: true
191
191
 
192
+ Style/EnvHome:
193
+ Enabled: true
194
+
192
195
  Style/EvalWithLocation:
193
196
  Enabled: true
194
197
  AutoCorrect: true
@@ -206,6 +209,9 @@ Style/ExponentialNotation:
206
209
  Style/ExplicitBlockArgument:
207
210
  Enabled: true
208
211
 
212
+ Style/FetchEnvVar:
213
+ Enabled: false
214
+
209
215
  Style/FileRead:
210
216
  Enabled: false
211
217
 
@@ -244,6 +250,7 @@ Style/GlobalStdStream:
244
250
  Style/GuardClause:
245
251
  Enabled: false
246
252
  MinBodyLength: 1
253
+ AllowConsecutiveConditionals: false
247
254
 
248
255
  Style/HashAsLastArrayItem:
249
256
  Enabled: true
@@ -327,6 +334,9 @@ Style/LambdaCall:
327
334
  Style/LineEndConcatenation:
328
335
  Enabled: true
329
336
 
337
+ Style/MapCompactWithConditionalBlock:
338
+ Enabled: true
339
+
330
340
  Style/MapToHash:
331
341
  Enabled: true
332
342
 
@@ -469,6 +479,10 @@ Style/NumericPredicate:
469
479
  AutoCorrect: true
470
480
  IgnoredMethods: []
471
481
 
482
+ Style/ObjectThen:
483
+ Enabled: true
484
+ EnforcedStyle: then
485
+
472
486
  Style/OneLineConditional:
473
487
  Enabled: true
474
488
 
@@ -536,6 +550,10 @@ Style/RedundantFetchBlock:
536
550
  Enabled: true
537
551
  SafeForConstants: true
538
552
 
553
+ Style/RedundantInitialize:
554
+ Enabled: true
555
+ AllowComments: true
556
+
539
557
  Style/RedundantRegexpCharacterClass:
540
558
  Enabled: true
541
559
 
@@ -582,6 +600,7 @@ Style/RedundantSelfAssignmentBranch:
582
600
  Style/SafeNavigation:
583
601
  Enabled: true
584
602
  ConvertCodeThatCanStartToReturnNil: false
603
+ MaxChainLength: 3
585
604
 
586
605
  Style/Sample:
587
606
  Enabled: true
@@ -620,6 +639,8 @@ Style/SlicingWithRange:
620
639
 
621
640
  Style/SpecialGlobalVars:
622
641
  Enabled: true
642
+ RequireEnglish: true
643
+ EnforcedStyle: use_english_names
623
644
 
624
645
  Style/StaticClass:
625
646
  Enabled: true
@@ -668,11 +689,12 @@ Style/SymbolLiteral:
668
689
  Enabled: true
669
690
 
670
691
  Style/SymbolProc:
692
+ Enabled: true
671
693
  AllowMethodsWithArguments: true
694
+ AllowComments: false
672
695
  IgnoredMethods:
673
696
  - respond_to
674
697
  - define_method
675
- Enabled: true
676
698
 
677
699
  Style/SwapValues:
678
700
  Enabled: true
data/lib/rspec/rspec.yml CHANGED
@@ -14,13 +14,11 @@ RSpec/Be:
14
14
  Enabled: true
15
15
 
16
16
  RSpec/BeNil:
17
- Enabled: true
17
+ Enabled: false
18
+ EnforcedStyle: be
18
19
 
19
20
  RSpec/BeEql:
20
- Enabled: true
21
-
22
- RSpec/BeEq:
23
- Enabled: true
21
+ Enabled: false
24
22
 
25
23
  RSpec/BeforeAfterAll:
26
24
  Enabled: false
@@ -269,6 +267,10 @@ RSpec/VerifiedDoubles:
269
267
  IgnoreNameless: true
270
268
  IgnoreSymbolicNames: false
271
269
 
270
+ RSpec/VerifiedDoubleReference:
271
+ Enabled: true
272
+ EnforcedStyle: constant
273
+
272
274
  RSpec/VoidExpect:
273
275
  Enabled: true
274
276
 
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.26.1.1
4
+ version: 1.30.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: 2022-04-07 00:00:00.000000000 Z
11
+ date: 2022-06-18 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.26.1
19
+ version: 1.30.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.26.1
26
+ version: 1.30.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.13.3
33
+ version: 1.14.2
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.13.3
40
+ version: 1.14.2
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.14.2
47
+ version: 2.15.0
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.14.2
54
+ version: 2.15.0
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.9.0
61
+ version: 2.11.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.9.0
68
+ version: 2.11.0
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.10
183
+ rubygems_version: 3.3.11
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: A set of rubocop settings