armitage-rubocop 0.93.1 → 1.2.0
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 +4 -4
- data/Rakefile +1 -1
- data/armitage-rubocop.gemspec +3 -3
- data/lib/common/lint.yml +16 -0
- data/lib/common/naming.yml +2 -0
- data/lib/common/style.yml +22 -3
- data/lib/rspec/capybara.yml +3 -3
- data/lib/rspec/factory_bot.yml +3 -3
- data/lib/rspec/rails.yml +1 -1
- data/lib/rspec/rspec.yml +6 -3
- data/lib/rubocop.rspec.yml +13 -13
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f224eff3263b19fd9dd64b5783d656806e0def874f3c708376baa3ea44ea9b73
|
4
|
+
data.tar.gz: 4e20193c21cb9f90e9e87569b6db63592ead287053c23468a3cd7a20c8a7554e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2c1e6486619014452d5150e85e4c2924bd245536309bb7a33235c8f3ac847c9a0c4509eb0e86ada8a16ddd91df56283fb10214bd2a23d15425e12e31084d6b9
|
7
|
+
data.tar.gz: b5f736c62c0f55de2841628ab21489e01b2938f68de3b25722ebc442f6c43983497f95fd5ce1bc8121ac4a232112d0619f086b4cb117ead908300217dd42810f
|
data/Rakefile
CHANGED
@@ -5,9 +5,9 @@ require 'rubocop/rake_task'
|
|
5
5
|
require 'open3'
|
6
6
|
require 'yaml'
|
7
7
|
require 'rubocop'
|
8
|
+
require 'rubocop-rspec'
|
8
9
|
require 'rubocop-rails'
|
9
10
|
require 'rubocop-performance'
|
10
|
-
require 'rubocop-rspec'
|
11
11
|
require 'rubocop-rake'
|
12
12
|
|
13
13
|
RuboCop::RakeTask.new(:rubocop) do |t|
|
data/armitage-rubocop.gemspec
CHANGED
@@ -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 = '
|
7
|
+
spec.version = '1.2.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', '=
|
25
|
+
spec.add_dependency 'rubocop', '= 1.2.0'
|
26
26
|
spec.add_dependency 'rubocop-performance', '= 1.8.1'
|
27
27
|
spec.add_dependency 'rubocop-rails', '= 2.8.1'
|
28
|
-
spec.add_dependency 'rubocop-rspec', '=
|
28
|
+
spec.add_dependency 'rubocop-rspec', '= 2.0.0'
|
29
29
|
spec.add_dependency 'rubocop-rake', '= 0.5.1'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler'
|
data/lib/common/lint.yml
CHANGED
@@ -59,6 +59,9 @@ Lint/DuplicateElsifCondition:
|
|
59
59
|
Lint/DuplicateRequire:
|
60
60
|
Enabled: true
|
61
61
|
|
62
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
63
|
+
Enabled: true
|
64
|
+
|
62
65
|
Lint/EachWithObjectArgument:
|
63
66
|
Enabled: true
|
64
67
|
|
@@ -67,6 +70,11 @@ Lint/DuplicateRescueException:
|
|
67
70
|
|
68
71
|
Lint/ElseLayout:
|
69
72
|
Enabled: true
|
73
|
+
AutoCorrect: true
|
74
|
+
|
75
|
+
Lint/EmptyBlock:
|
76
|
+
Enabled: true
|
77
|
+
AllowComments: true
|
70
78
|
|
71
79
|
Lint/EmptyConditionalBody:
|
72
80
|
Enabled: true
|
@@ -163,6 +171,7 @@ Lint/MissingSuper:
|
|
163
171
|
|
164
172
|
Lint/MultipleComparison:
|
165
173
|
Enabled: true
|
174
|
+
AllowMethodComparison: true
|
166
175
|
|
167
176
|
Lint/NestedMethodDefinition:
|
168
177
|
Enabled: true
|
@@ -271,6 +280,9 @@ Lint/RedundantStringCoercion:
|
|
271
280
|
Lint/Syntax:
|
272
281
|
Enabled: true
|
273
282
|
|
283
|
+
Lint/ToEnumArguments:
|
284
|
+
Enabled: false
|
285
|
+
|
274
286
|
Lint/ToJSON:
|
275
287
|
Enabled: true
|
276
288
|
|
@@ -283,6 +295,9 @@ Lint/TrailingCommaInAttributeDeclaration:
|
|
283
295
|
Lint/UnderscorePrefixedVariableName:
|
284
296
|
Enabled: false
|
285
297
|
|
298
|
+
Lint/UnmodifiedReduceAccumulator:
|
299
|
+
Enabled: true
|
300
|
+
|
286
301
|
Lint/UnifiedInteger:
|
287
302
|
Enabled: true
|
288
303
|
|
@@ -342,6 +357,7 @@ Lint/UselessMethodDefinition:
|
|
342
357
|
|
343
358
|
Lint/UselessSetterCall:
|
344
359
|
Enabled: true
|
360
|
+
AutoCorrect: true
|
345
361
|
|
346
362
|
Lint/UselessTimes:
|
347
363
|
Enabled: true
|
data/lib/common/naming.yml
CHANGED
@@ -7,6 +7,7 @@ Naming/AsciiIdentifiers:
|
|
7
7
|
|
8
8
|
Naming/BinaryOperatorParameterName:
|
9
9
|
Enabled: false
|
10
|
+
AutoCorrect: true
|
10
11
|
|
11
12
|
Naming/ClassAndModuleCamelCase:
|
12
13
|
Enabled: true
|
@@ -24,6 +25,7 @@ Naming/FileName:
|
|
24
25
|
Naming/HeredocDelimiterCase:
|
25
26
|
Enabled: true
|
26
27
|
EnforcedStyle: uppercase
|
28
|
+
AutoCorrect: true
|
27
29
|
|
28
30
|
Naming/HeredocDelimiterNaming:
|
29
31
|
Enabled: false
|
data/lib/common/style.yml
CHANGED
@@ -11,12 +11,16 @@ Style/Alias:
|
|
11
11
|
Enabled: true
|
12
12
|
EnforcedStyle: prefer_alias_method
|
13
13
|
|
14
|
+
Style/AndOr:
|
15
|
+
Enabled: false
|
16
|
+
EnforcedStyle: always
|
17
|
+
|
14
18
|
Style/ArrayCoercion:
|
15
19
|
Enabled: true
|
16
20
|
|
17
|
-
Style/
|
21
|
+
Style/ArgumentsForwarding:
|
18
22
|
Enabled: false
|
19
|
-
|
23
|
+
AllowOnlyRestArgument: true
|
20
24
|
|
21
25
|
Style/ArrayJoin:
|
22
26
|
Enabled: true
|
@@ -86,6 +90,9 @@ Style/ClassMethodsDefinitions:
|
|
86
90
|
Style/ClassVars:
|
87
91
|
Enabled: true
|
88
92
|
|
93
|
+
Style/CollectionCompact:
|
94
|
+
Enabled: true
|
95
|
+
|
89
96
|
Style/CollectionMethods:
|
90
97
|
Enabled: false
|
91
98
|
|
@@ -130,6 +137,9 @@ Style/Dir:
|
|
130
137
|
Style/DisableCopsWithinSourceCodeDirective:
|
131
138
|
Enabled: false
|
132
139
|
|
140
|
+
Style/DocumentDynamicEvalDefinition:
|
141
|
+
Enabled: false
|
142
|
+
|
133
143
|
Style/Documentation:
|
134
144
|
Enabled: false
|
135
145
|
|
@@ -138,6 +148,7 @@ Style/DocumentationMethod:
|
|
138
148
|
|
139
149
|
Style/DoubleNegation:
|
140
150
|
Enabled: false
|
151
|
+
AutoCorrect: true
|
141
152
|
EnforcedStyle: allowed_in_returns
|
142
153
|
|
143
154
|
Style/EachForSimpleLoop:
|
@@ -203,6 +214,7 @@ Style/FormatString:
|
|
203
214
|
|
204
215
|
Style/FormatStringToken:
|
205
216
|
Enabled: true
|
217
|
+
MaxUnannotatedPlaceholdersAllowed: 1
|
206
218
|
EnforcedStyle: annotated
|
207
219
|
|
208
220
|
Style/FrozenStringLiteralComment:
|
@@ -347,7 +359,7 @@ Style/MultilineWhenThen:
|
|
347
359
|
Enabled: true
|
348
360
|
|
349
361
|
Style/MultipleComparison:
|
350
|
-
Enabled:
|
362
|
+
Enabled: false
|
351
363
|
|
352
364
|
Style/MutableConstant:
|
353
365
|
Enabled: true
|
@@ -356,6 +368,9 @@ Style/NegatedIf:
|
|
356
368
|
Enabled: true
|
357
369
|
EnforcedStyle: both
|
358
370
|
|
371
|
+
Style/NegatedIfElseCondition:
|
372
|
+
Enabled: false
|
373
|
+
|
359
374
|
Style/NegatedUnless:
|
360
375
|
Enabled: false
|
361
376
|
EnforcedStyle: both
|
@@ -442,6 +457,7 @@ Style/Proc:
|
|
442
457
|
Style/RaiseArgs:
|
443
458
|
Enabled: true
|
444
459
|
EnforcedStyle: exploded
|
460
|
+
AllowedCompactTypes: []
|
445
461
|
|
446
462
|
Style/RandomWithOffset:
|
447
463
|
Enabled: true
|
@@ -583,6 +599,9 @@ Style/SymbolLiteral:
|
|
583
599
|
Style/SymbolProc:
|
584
600
|
Enabled: true
|
585
601
|
|
602
|
+
Style/SwapValues:
|
603
|
+
Enabled: true
|
604
|
+
|
586
605
|
Style/TernaryParentheses:
|
587
606
|
Enabled: true
|
588
607
|
EnforcedStyle: require_parentheses_when_complex
|
data/lib/rspec/capybara.yml
CHANGED
data/lib/rspec/factory_bot.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
FactoryBot/AttributeDefinedStatically:
|
1
|
+
RSpec/FactoryBot/AttributeDefinedStatically:
|
2
2
|
Enabled: false
|
3
3
|
|
4
|
-
FactoryBot/CreateList:
|
4
|
+
RSpec/FactoryBot/CreateList:
|
5
5
|
Enabled: true
|
6
6
|
EnforcedStyle: create_list
|
7
7
|
|
8
|
-
FactoryBot/FactoryClassName:
|
8
|
+
RSpec/FactoryBot/FactoryClassName:
|
9
9
|
Enabled: true
|
data/lib/rspec/rails.yml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
Rails/HttpStatus:
|
1
|
+
RSpec/Rails/HttpStatus:
|
2
2
|
Enabled: false
|
data/lib/rspec/rspec.yml
CHANGED
@@ -120,9 +120,6 @@ RSpec/InstanceVariable:
|
|
120
120
|
Enabled: true
|
121
121
|
AssignmentOnly: false
|
122
122
|
|
123
|
-
RSpec/InvalidPredicateMatcher:
|
124
|
-
Enabled: true
|
125
|
-
|
126
123
|
RSpec/ItBehavesLike:
|
127
124
|
Enabled: true
|
128
125
|
EnforcedStyle: it_behaves_like
|
@@ -211,6 +208,9 @@ RSpec/RepeatedExampleGroupBody:
|
|
211
208
|
RSpec/RepeatedExampleGroupDescription:
|
212
209
|
Enabled: true
|
213
210
|
|
211
|
+
RSpec/RepeatedIncludeExample:
|
212
|
+
Enabled: true
|
213
|
+
|
214
214
|
RSpec/ReturnFromStub:
|
215
215
|
Enabled: true
|
216
216
|
EnforcedStyle: and_return
|
@@ -233,6 +233,9 @@ RSpec/SingleArgumentMessageChain:
|
|
233
233
|
RSpec/SubjectStub:
|
234
234
|
Enabled: true
|
235
235
|
|
236
|
+
RSpec/StubbedMock:
|
237
|
+
Enabled: true
|
238
|
+
|
236
239
|
RSpec/UnspecifiedException:
|
237
240
|
Enabled: true
|
238
241
|
|
data/lib/rubocop.rspec.yml
CHANGED
@@ -6,16 +6,16 @@ inherit_from:
|
|
6
6
|
- ./rspec/rails.yml
|
7
7
|
- ./rspec/rspec.yml
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
9
|
+
RSpec:
|
10
|
+
Include:
|
11
|
+
- _spec.rb
|
12
|
+
- "(?:^|/)spec/"
|
13
|
+
|
14
|
+
RSpec/FactoryBot:
|
15
|
+
Include:
|
16
|
+
- spec/factories.rb
|
17
|
+
- spec/factories/**/*.rb
|
18
|
+
- spec/support/factories.rb
|
19
|
+
- spec/support/factories/**/*.rb
|
20
|
+
- features/support/factires.rb
|
21
|
+
- features/support/factories/**/*.rb
|
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:
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.2.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:
|
26
|
+
version: 1.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.0.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:
|
68
|
+
version: 2.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,7 +164,7 @@ homepage: https://github.com/0exp/armitage
|
|
164
164
|
licenses:
|
165
165
|
- MIT
|
166
166
|
metadata: {}
|
167
|
-
post_install_message:
|
167
|
+
post_install_message:
|
168
168
|
rdoc_options: []
|
169
169
|
require_paths:
|
170
170
|
- lib
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubygems_version: 3.1.2
|
183
|
-
signing_key:
|
183
|
+
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: A set of rubocop settings
|
186
186
|
test_files: []
|