armitage-rubocop 1.58.0 → 1.68.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -1
- data/Gemfile.lock +56 -52
- data/Rakefile +2 -0
- data/armitage-rubocop.gemspec +9 -8
- data/lib/common/gemspec.yml +3 -0
- data/lib/common/layout.yml +5 -0
- data/lib/common/lint.yml +11 -0
- data/lib/common/metrics.yml +1 -0
- data/lib/common/rails.yml +6 -0
- data/lib/common/style.yml +32 -1
- data/lib/rspec/capybara.yml +3 -3
- data/lib/rspec/factory_bot.yml +3 -0
- data/lib/rspec/rspec.yml +29 -4
- data/lib/rubocop.general.yml +1 -0
- data/lib/rubocop.rails.yml +7 -0
- data/lib/rubocop.rspec.yml +2 -1
- metadata +30 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae9426a6400535590524b115bff67cc1ce0fef6b6669f8e977852ae8d50b8a5e
|
4
|
+
data.tar.gz: 4cac0cfe6bf97c87c248a0e59103d3e56687f373d203425eebd108a2f7957deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 791b3020895d5f37a46d14ed8fe04ace02bf32a7b7357ce2d5302f5914112164ad5dc32034889ee7fe10510fae9a6223509b004d5cadebb961b7c8f2c3c0c543
|
7
|
+
data.tar.gz: bca34f5609240e0171dafc3320e38bbca4cfe62c6767f1e708eae54a71f906b88448d0de2fc4f69fd3f058e0654b0cf7cb0771f159c56c4de7429e1f508a05f5
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,96 +1,100 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
armitage-rubocop (1.
|
5
|
-
rubocop (= 1.
|
6
|
-
rubocop-capybara (= 2.
|
7
|
-
rubocop-factory_bot (= 2.
|
8
|
-
rubocop-performance (= 1.
|
9
|
-
rubocop-rails (= 2.
|
4
|
+
armitage-rubocop (1.68.0)
|
5
|
+
rubocop (= 1.68.0)
|
6
|
+
rubocop-capybara (= 2.21.0)
|
7
|
+
rubocop-factory_bot (= 2.26.1)
|
8
|
+
rubocop-performance (= 1.22.1)
|
9
|
+
rubocop-rails (= 2.27.0)
|
10
10
|
rubocop-rake (= 0.6.0)
|
11
|
-
rubocop-rspec (= 2.
|
11
|
+
rubocop-rspec (= 3.2.0)
|
12
|
+
rubocop-rspec_rails (= 2.30.0)
|
12
13
|
|
13
14
|
GEM
|
14
15
|
remote: https://rubygems.org/
|
15
16
|
specs:
|
16
|
-
activesupport (
|
17
|
+
activesupport (8.0.0)
|
17
18
|
base64
|
19
|
+
benchmark (>= 0.3)
|
18
20
|
bigdecimal
|
19
|
-
concurrent-ruby (~> 1.0, >= 1.
|
21
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
20
22
|
connection_pool (>= 2.2.5)
|
21
23
|
drb
|
22
24
|
i18n (>= 1.6, < 2)
|
25
|
+
logger (>= 1.4.2)
|
23
26
|
minitest (>= 5.1)
|
24
|
-
|
25
|
-
tzinfo (~> 2.0)
|
27
|
+
securerandom (>= 0.3)
|
28
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
29
|
+
uri (>= 0.13.1)
|
26
30
|
ast (2.4.2)
|
27
31
|
base64 (0.2.0)
|
28
|
-
|
32
|
+
benchmark (0.4.0)
|
33
|
+
bigdecimal (3.1.8)
|
29
34
|
coderay (1.1.3)
|
30
|
-
concurrent-ruby (1.
|
35
|
+
concurrent-ruby (1.3.4)
|
31
36
|
connection_pool (2.4.1)
|
32
|
-
drb (2.2.
|
33
|
-
|
34
|
-
i18n (1.14.1)
|
37
|
+
drb (2.2.1)
|
38
|
+
i18n (1.14.6)
|
35
39
|
concurrent-ruby (~> 1.0)
|
36
|
-
json (2.
|
40
|
+
json (2.8.1)
|
37
41
|
language_server-protocol (3.17.0.3)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
parallel (1.
|
42
|
-
parser (3.
|
42
|
+
logger (1.6.1)
|
43
|
+
method_source (1.1.0)
|
44
|
+
minitest (5.25.1)
|
45
|
+
parallel (1.26.3)
|
46
|
+
parser (3.3.6.0)
|
43
47
|
ast (~> 2.4.1)
|
44
48
|
racc
|
45
49
|
pry (0.14.2)
|
46
50
|
coderay (~> 1.1)
|
47
51
|
method_source (~> 1.0)
|
48
|
-
racc (1.
|
49
|
-
rack (3.
|
52
|
+
racc (1.8.1)
|
53
|
+
rack (3.1.8)
|
50
54
|
rainbow (3.1.1)
|
51
|
-
rake (13.1
|
52
|
-
regexp_parser (2.
|
53
|
-
|
54
|
-
rubocop (1.58.0)
|
55
|
+
rake (13.2.1)
|
56
|
+
regexp_parser (2.9.2)
|
57
|
+
rubocop (1.68.0)
|
55
58
|
json (~> 2.3)
|
56
59
|
language_server-protocol (>= 3.17.0)
|
57
60
|
parallel (~> 1.10)
|
58
|
-
parser (>= 3.
|
61
|
+
parser (>= 3.3.0.2)
|
59
62
|
rainbow (>= 2.2.2, < 4.0)
|
60
|
-
regexp_parser (>=
|
61
|
-
|
62
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
63
|
+
regexp_parser (>= 2.4, < 3.0)
|
64
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
63
65
|
ruby-progressbar (~> 1.7)
|
64
66
|
unicode-display_width (>= 2.4.0, < 3.0)
|
65
|
-
rubocop-ast (1.
|
66
|
-
parser (>= 3.
|
67
|
-
rubocop-capybara (2.
|
67
|
+
rubocop-ast (1.36.1)
|
68
|
+
parser (>= 3.3.1.0)
|
69
|
+
rubocop-capybara (2.21.0)
|
68
70
|
rubocop (~> 1.41)
|
69
|
-
rubocop-factory_bot (2.
|
70
|
-
rubocop (~> 1.
|
71
|
-
rubocop-performance (1.
|
72
|
-
rubocop (>= 1.
|
73
|
-
rubocop-ast (>=
|
74
|
-
rubocop-rails (2.
|
71
|
+
rubocop-factory_bot (2.26.1)
|
72
|
+
rubocop (~> 1.61)
|
73
|
+
rubocop-performance (1.22.1)
|
74
|
+
rubocop (>= 1.48.1, < 2.0)
|
75
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
76
|
+
rubocop-rails (2.27.0)
|
75
77
|
activesupport (>= 4.2.0)
|
76
78
|
rack (>= 1.1)
|
77
|
-
rubocop (>= 1.
|
78
|
-
rubocop-ast (>= 1.
|
79
|
+
rubocop (>= 1.52.0, < 2.0)
|
80
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
79
81
|
rubocop-rake (0.6.0)
|
80
82
|
rubocop (~> 1.0)
|
81
|
-
rubocop-rspec (2.
|
82
|
-
rubocop (~> 1.
|
83
|
-
|
84
|
-
rubocop
|
83
|
+
rubocop-rspec (3.2.0)
|
84
|
+
rubocop (~> 1.61)
|
85
|
+
rubocop-rspec_rails (2.30.0)
|
86
|
+
rubocop (~> 1.61)
|
87
|
+
rubocop-rspec (~> 3, >= 3.0.1)
|
85
88
|
ruby-progressbar (1.13.0)
|
86
|
-
|
89
|
+
securerandom (0.3.2)
|
87
90
|
tzinfo (2.0.6)
|
88
91
|
concurrent-ruby (~> 1.0)
|
89
|
-
unicode-display_width (2.
|
92
|
+
unicode-display_width (2.6.0)
|
93
|
+
uri (1.0.1)
|
90
94
|
|
91
95
|
PLATFORMS
|
92
|
-
arm64-darwin-
|
93
|
-
|
96
|
+
arm64-darwin-24
|
97
|
+
ruby
|
94
98
|
|
95
99
|
DEPENDENCIES
|
96
100
|
armitage-rubocop!
|
@@ -99,4 +103,4 @@ DEPENDENCIES
|
|
99
103
|
rake (~> 13.1)
|
100
104
|
|
101
105
|
BUNDLED WITH
|
102
|
-
2.
|
106
|
+
2.5.23
|
data/Rakefile
CHANGED
@@ -8,6 +8,7 @@ require 'rubocop'
|
|
8
8
|
require 'rubocop-performance'
|
9
9
|
require 'rubocop-rspec'
|
10
10
|
require 'rubocop-rails'
|
11
|
+
require 'rubocop-rspec_rails'
|
11
12
|
require 'rubocop-rake'
|
12
13
|
require 'rubocop-capybara'
|
13
14
|
require 'rubocop-factory_bot'
|
@@ -18,6 +19,7 @@ RuboCop::RakeTask.new(:rubocop) do |t|
|
|
18
19
|
t.requires << 'rubocop-performance'
|
19
20
|
t.requires << 'rubocop-rails'
|
20
21
|
t.requires << 'rubocop-rspec'
|
22
|
+
t.requires << 'rubocop-rspec_rails'
|
21
23
|
t.requires << 'rubocop-rake'
|
22
24
|
t.requires << 'rubocop-capybara'
|
23
25
|
t.requires << 'rubocop-factory_bot'
|
data/armitage-rubocop.gemspec
CHANGED
@@ -4,9 +4,9 @@ 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.required_ruby_version = '>= 3.
|
7
|
+
spec.required_ruby_version = '>= 3.3'
|
8
8
|
|
9
|
-
spec.version = '1.
|
9
|
+
spec.version = '1.68.0'
|
10
10
|
spec.name = 'armitage-rubocop'
|
11
11
|
spec.license = 'MIT'
|
12
12
|
spec.authors = ['Rustam Ibragimov']
|
@@ -23,13 +23,14 @@ Gem::Specification.new do |spec|
|
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
24
|
end
|
25
25
|
|
26
|
-
spec.add_dependency 'rubocop', '= 1.
|
27
|
-
spec.add_dependency 'rubocop-performance', '= 1.
|
28
|
-
spec.add_dependency 'rubocop-rails', '= 2.
|
29
|
-
spec.add_dependency 'rubocop-rspec', '= 2.
|
26
|
+
spec.add_dependency 'rubocop', '= 1.68.0'
|
27
|
+
spec.add_dependency 'rubocop-performance', '= 1.22.1'
|
28
|
+
spec.add_dependency 'rubocop-rails', '= 2.27.0'
|
29
|
+
spec.add_dependency 'rubocop-rspec', '= 3.2.0'
|
30
|
+
spec.add_dependency 'rubocop-rspec_rails', '= 2.30.0'
|
30
31
|
spec.add_dependency 'rubocop-rake', '= 0.6.0'
|
31
|
-
spec.add_dependency 'rubocop-capybara', '= 2.
|
32
|
-
spec.add_dependency 'rubocop-factory_bot', '= 2.
|
32
|
+
spec.add_dependency 'rubocop-capybara', '= 2.21.0'
|
33
|
+
spec.add_dependency 'rubocop-factory_bot', '= 2.26.1'
|
33
34
|
|
34
35
|
spec.add_development_dependency 'bundler', '~> 2.3'
|
35
36
|
spec.add_development_dependency 'rake', '~> 13.1'
|
data/lib/common/gemspec.yml
CHANGED
data/lib/common/layout.yml
CHANGED
@@ -232,6 +232,8 @@ Layout/LeadingCommentSpace:
|
|
232
232
|
Enabled: true
|
233
233
|
AllowDoxygenCommentStyle: false
|
234
234
|
AllowGemfileRubyComment: true
|
235
|
+
AllowRBSInlineAnnotation: true
|
236
|
+
AllowSteepAnnotation: true
|
235
237
|
|
236
238
|
Layout/LineContinuationLeadingSpace:
|
237
239
|
Enabled: true
|
@@ -402,6 +404,9 @@ Layout/SpaceInsideStringInterpolation:
|
|
402
404
|
Enabled: true
|
403
405
|
EnforcedStyle: no_space
|
404
406
|
|
407
|
+
Lint/ItWithoutArgumentsInBlock:
|
408
|
+
Enabled: false
|
409
|
+
|
405
410
|
Layout/IndentationStyle:
|
406
411
|
Enabled: true
|
407
412
|
EnforcedStyle: spaces
|
data/lib/common/lint.yml
CHANGED
@@ -65,6 +65,9 @@ Lint/DisjunctiveAssignmentInConstructor:
|
|
65
65
|
Enabled: true
|
66
66
|
AutoCorrect: false
|
67
67
|
|
68
|
+
Lint/DuplicateSetElement:
|
69
|
+
Enabled: true
|
70
|
+
|
68
71
|
Lint/DuplicateMatchPattern:
|
69
72
|
Enabled: true
|
70
73
|
|
@@ -75,6 +78,7 @@ Lint/DuplicateBranch:
|
|
75
78
|
Enabled: true
|
76
79
|
IgnoreLiteralBranches: false
|
77
80
|
IgnoreConstantBranches: false
|
81
|
+
IgnoreDuplicateElseBranch: true
|
78
82
|
|
79
83
|
Lint/DuplicateCaseCondition:
|
80
84
|
Enabled: true
|
@@ -185,6 +189,7 @@ Lint/IdentityComparison:
|
|
185
189
|
|
186
190
|
Lint/ImplicitStringConcatenation:
|
187
191
|
Enabled: true
|
192
|
+
AutoCorrect: true
|
188
193
|
|
189
194
|
Lint/IncompatibleIoSelectWithFiberScheduler:
|
190
195
|
Enabled: true
|
@@ -278,6 +283,9 @@ Lint/PercentStringArray:
|
|
278
283
|
Lint/PercentSymbolArray:
|
279
284
|
Enabled: true
|
280
285
|
|
286
|
+
Lint/UselessNumericOperation:
|
287
|
+
Enabled: true
|
288
|
+
|
281
289
|
Lint/UselessElseWithoutRescue:
|
282
290
|
Enabled: true
|
283
291
|
|
@@ -388,6 +396,9 @@ Lint/TrailingCommaInAttributeDeclaration:
|
|
388
396
|
Lint/TripleQuotes:
|
389
397
|
Enabled: false
|
390
398
|
|
399
|
+
Lint/UnescapedBracketInRegexp:
|
400
|
+
Enabled: true
|
401
|
+
|
391
402
|
Lint/UnexpectedBlockArity:
|
392
403
|
Enabled: false
|
393
404
|
|
data/lib/common/metrics.yml
CHANGED
data/lib/common/rails.yml
CHANGED
@@ -132,6 +132,9 @@ Rails/DynamicFindBy:
|
|
132
132
|
AllowedReceivers:
|
133
133
|
- Gem::Specification
|
134
134
|
|
135
|
+
Rails/EnumSyntax:
|
136
|
+
Enabled: true
|
137
|
+
|
135
138
|
Rails/EnumHash:
|
136
139
|
Enabled: true
|
137
140
|
Include:
|
@@ -396,6 +399,9 @@ Rails/UnknownEnv:
|
|
396
399
|
Rails/Validation:
|
397
400
|
Enabled: true
|
398
401
|
|
402
|
+
Rails/WhereRange:
|
403
|
+
Enabled: true
|
404
|
+
|
399
405
|
Rails/WhereNotWithMultipleConditions:
|
400
406
|
Enabled: false
|
401
407
|
|
data/lib/common/style.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
Style/AmbiguousEndlessMethodDefinition:
|
2
|
+
Enabled: true
|
3
|
+
|
1
4
|
Style/AccessorGrouping:
|
2
5
|
Enabled: true
|
3
6
|
EnforcedStyle: separated
|
@@ -6,6 +9,7 @@ Style/AccessModifierDeclarations:
|
|
6
9
|
Enabled: true
|
7
10
|
EnforcedStyle: group
|
8
11
|
AllowModifiersOnSymbols: true
|
12
|
+
AllowModifiersOnAttrs: true
|
9
13
|
|
10
14
|
Style/Alias:
|
11
15
|
Enabled: true
|
@@ -47,6 +51,9 @@ Style/BarePercentLiterals:
|
|
47
51
|
Style/BeginBlock:
|
48
52
|
Enabled: true
|
49
53
|
|
54
|
+
Style/BitwisePredicate:
|
55
|
+
Enabled: false
|
56
|
+
|
50
57
|
Style/BisectedAttrAccessor:
|
51
58
|
Enabled: true
|
52
59
|
|
@@ -112,6 +119,9 @@ Style/ColonMethodCall:
|
|
112
119
|
Style/ColonMethodDefinition:
|
113
120
|
Enabled: true
|
114
121
|
|
122
|
+
Style/CombinableDefined:
|
123
|
+
Enabled: true
|
124
|
+
|
115
125
|
Style/ComparableClamp:
|
116
126
|
Enabled: true
|
117
127
|
|
@@ -354,6 +364,9 @@ Style/InverseMethods:
|
|
354
364
|
Style/IpAddresses:
|
355
365
|
Enabled: false
|
356
366
|
|
367
|
+
Style/KeywordArgumentsMerging:
|
368
|
+
Enabled: true
|
369
|
+
|
357
370
|
Style/KeywordParametersOrder:
|
358
371
|
Enabled: false
|
359
372
|
|
@@ -373,6 +386,9 @@ Style/MagicCommentFormat:
|
|
373
386
|
DirectiveCapitalization: lowercase
|
374
387
|
ValueCapitalization: ~
|
375
388
|
|
389
|
+
Style/MapIntoArray:
|
390
|
+
Enabled: false # NOTE: it is unsafe at the moment
|
391
|
+
|
376
392
|
Style/MapToSet:
|
377
393
|
Enabled: false # NOTE: it is totally unsafe
|
378
394
|
|
@@ -584,6 +600,9 @@ Style/RandomWithOffset:
|
|
584
600
|
Style/ReturnNilInPredicateMethodDefinition:
|
585
601
|
Enabled: true
|
586
602
|
|
603
|
+
Style/RedundantInterpolationUnfreeze:
|
604
|
+
Enabled: true
|
605
|
+
|
587
606
|
Style/RedundantRegexpArgument:
|
588
607
|
Enabled: true
|
589
608
|
|
@@ -686,14 +705,25 @@ Style/RedundantSelfAssignmentBranch:
|
|
686
705
|
Style/SuperWithArgsParentheses:
|
687
706
|
Enabled: true
|
688
707
|
|
708
|
+
Style/SuperArguments:
|
709
|
+
Enabled: true
|
710
|
+
|
689
711
|
Style/SafeNavigation:
|
690
712
|
Enabled: true
|
691
713
|
ConvertCodeThatCanStartToReturnNil: false
|
692
|
-
MaxChainLength:
|
714
|
+
MaxChainLength: 4
|
715
|
+
|
716
|
+
Style/SafeNavigationChainLength:
|
717
|
+
Enabled: true
|
718
|
+
Max: 4
|
693
719
|
|
694
720
|
Style/Sample:
|
695
721
|
Enabled: true
|
696
722
|
|
723
|
+
Style/SendWithLiteralMethodName:
|
724
|
+
Enabled: true
|
725
|
+
AllowSend: true
|
726
|
+
|
697
727
|
Style/SelectByRegexp:
|
698
728
|
Enabled: false
|
699
729
|
|
@@ -784,6 +814,7 @@ Style/SymbolLiteral:
|
|
784
814
|
Style/SymbolProc:
|
785
815
|
Enabled: true
|
786
816
|
AllowMethodsWithArguments: true
|
817
|
+
AllowedPatterns: []
|
787
818
|
AllowComments: false
|
788
819
|
AllowedMethods:
|
789
820
|
- define_method
|
data/lib/rspec/capybara.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
+
Capybara/RedundantWithinFind:
|
2
|
+
Enabled: true
|
3
|
+
|
1
4
|
Capybara/CurrentPathExpectation:
|
2
5
|
Enabled: true
|
3
6
|
|
4
7
|
Capybara/ClickLinkOrButtonStyle:
|
5
8
|
Enabled: true
|
6
9
|
|
7
|
-
RSpec/Capybara/FeatureMethods:
|
8
|
-
Enabled: false
|
9
|
-
|
10
10
|
Capybara/RSpec/PredicateMatcher:
|
11
11
|
Enabled: true
|
12
12
|
Strict: true
|
data/lib/rspec/factory_bot.yml
CHANGED
data/lib/rspec/rspec.yml
CHANGED
@@ -55,6 +55,7 @@ RSpec/DescribedClass:
|
|
55
55
|
Enabled: true
|
56
56
|
SkipBlocks: false
|
57
57
|
EnforcedStyle: described_class
|
58
|
+
OnlyStaticConstants: true
|
58
59
|
|
59
60
|
RSpec/DescribedClassModuleWrapping:
|
60
61
|
Enabled: true
|
@@ -66,6 +67,9 @@ RSpec/Dialect:
|
|
66
67
|
RSpec/Eq:
|
67
68
|
Enabled: true
|
68
69
|
|
70
|
+
RSpec/EmptyOutput:
|
71
|
+
Enabled: true
|
72
|
+
|
69
73
|
RSpec/EmptyExampleGroup:
|
70
74
|
Enabled: true
|
71
75
|
AutoCorrect: true
|
@@ -100,11 +104,14 @@ RSpec/ExampleWithoutDescription:
|
|
100
104
|
EnforcedStyle: always_allow
|
101
105
|
|
102
106
|
RSpec/ExampleWording:
|
103
|
-
Enabled:
|
107
|
+
Enabled: true
|
104
108
|
|
105
109
|
RSpec/ExpectActual:
|
106
110
|
Enabled: true
|
107
111
|
|
112
|
+
RSpec/ExpectInLet:
|
113
|
+
Enabled: true
|
114
|
+
|
108
115
|
RSpec/ExcessiveDocstringSpacing:
|
109
116
|
Enabled: true
|
110
117
|
|
@@ -118,9 +125,6 @@ RSpec/ExpectInHook:
|
|
118
125
|
RSpec/ExpectOutput:
|
119
126
|
Enabled: true
|
120
127
|
|
121
|
-
RSpec/FilePath:
|
122
|
-
Enabled: false
|
123
|
-
|
124
128
|
RSpec/SpecFilePathSuffix:
|
125
129
|
Enabled: false
|
126
130
|
|
@@ -137,6 +141,9 @@ RSpec/HookArgument:
|
|
137
141
|
RSpec/HooksBeforeExamples:
|
138
142
|
Enabled: true
|
139
143
|
|
144
|
+
RSpec/IsExpectedSpecify:
|
145
|
+
Enabled: true
|
146
|
+
|
140
147
|
RSpec/IdenticalEqualityAssertion:
|
141
148
|
Enabled: true
|
142
149
|
|
@@ -201,6 +208,9 @@ RSpec/MessageSpies:
|
|
201
208
|
RSpec/MissingExampleGroupArgument:
|
202
209
|
Enabled: true
|
203
210
|
|
211
|
+
RSpec/MissingExpectationTargetMethod:
|
212
|
+
Enabled: true
|
213
|
+
|
204
214
|
RSpec/MultipleDescribes:
|
205
215
|
Enabled: true
|
206
216
|
|
@@ -244,12 +254,18 @@ RSpec/PredicateMatcher:
|
|
244
254
|
- have_http_status
|
245
255
|
- have_been_made
|
246
256
|
|
257
|
+
RSpec/RemoveConst:
|
258
|
+
Enabled: true
|
259
|
+
|
247
260
|
RSpec/ReceiveMessages:
|
248
261
|
Enabled: true
|
249
262
|
|
250
263
|
RSpec/RedundantAround:
|
251
264
|
Enabled: true
|
252
265
|
|
266
|
+
RSpec/RedundantPredicateMatcher:
|
267
|
+
Enabled: true
|
268
|
+
|
253
269
|
RSpec/ReceiveCounts:
|
254
270
|
Enabled: false
|
255
271
|
|
@@ -271,6 +287,9 @@ RSpec/RepeatedExampleGroupDescription:
|
|
271
287
|
RSpec/RepeatedIncludeExample:
|
272
288
|
Enabled: true
|
273
289
|
|
290
|
+
RSpec/RepeatedSubjectCall:
|
291
|
+
Enabled: false
|
292
|
+
|
274
293
|
RSpec/ReturnFromStub:
|
275
294
|
Enabled: true
|
276
295
|
EnforcedStyle: and_return
|
@@ -310,6 +329,12 @@ RSpec/SubjectDeclaration:
|
|
310
329
|
RSpec/StubbedMock:
|
311
330
|
Enabled: true
|
312
331
|
|
332
|
+
RSpec/StringAsInstanceDoubleConstant:
|
333
|
+
Enabled: false
|
334
|
+
|
335
|
+
RSpec/UndescriptiveLiteralsDescription:
|
336
|
+
Enabled: true
|
337
|
+
|
313
338
|
RSpec/UnspecifiedException:
|
314
339
|
Enabled: true
|
315
340
|
|
data/lib/rubocop.general.yml
CHANGED
data/lib/rubocop.rails.yml
CHANGED
@@ -9,7 +9,14 @@ inherit_from:
|
|
9
9
|
|
10
10
|
AllCops:
|
11
11
|
TargetRailsVersion: ~
|
12
|
+
TargetRubyVersion: ~
|
12
13
|
ActiveSupportExtensionsEnabled: true
|
14
|
+
DefaultFormatter: progress
|
15
|
+
DisplayCopNames: true
|
16
|
+
DisplayStyleGuide: false
|
17
|
+
ExtraDetails: true
|
18
|
+
UseCache: false
|
19
|
+
StringLiteralsFrozenByDefault: true
|
13
20
|
|
14
21
|
Rails:
|
15
22
|
Enabled: true
|
data/lib/rubocop.rspec.yml
CHANGED
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.
|
4
|
+
version: 1.68.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:
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,56 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.68.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.68.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.
|
33
|
+
version: 1.22.1
|
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.22.1
|
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.
|
47
|
+
version: 2.27.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.
|
54
|
+
version: 2.27.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.
|
61
|
+
version: 3.2.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.
|
68
|
+
version: 3.2.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rspec_rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.30.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.30.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rubocop-rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +100,28 @@ dependencies:
|
|
86
100
|
requirements:
|
87
101
|
- - '='
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
103
|
+
version: 2.21.0
|
90
104
|
type: :runtime
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - '='
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.
|
110
|
+
version: 2.21.0
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rubocop-factory_bot
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - '='
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 2.
|
117
|
+
version: 2.26.1
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - '='
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 2.
|
124
|
+
version: 2.26.1
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: bundler
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,14 +215,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
215
|
requirements:
|
202
216
|
- - ">="
|
203
217
|
- !ruby/object:Gem::Version
|
204
|
-
version: '3.
|
218
|
+
version: '3.3'
|
205
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
220
|
requirements:
|
207
221
|
- - ">="
|
208
222
|
- !ruby/object:Gem::Version
|
209
223
|
version: '0'
|
210
224
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
225
|
+
rubygems_version: 3.5.23
|
212
226
|
signing_key:
|
213
227
|
specification_version: 4
|
214
228
|
summary: A set of rubocop settings
|