armitage-rubocop 0.85.0 → 0.88.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/armitage-rubocop.gemspec +5 -5
- data/lib/common/lint.yml +18 -0
- data/lib/common/naming.yml +1 -0
- data/lib/common/performance.yml +27 -0
- data/lib/common/rails.yml +16 -0
- data/lib/common/style.yml +38 -0
- data/lib/rspec/rspec.yml +8 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 140748b670a47306e4446b79a9c61665e5dcef9f9264af29e3d353d6acdbb0a3
|
4
|
+
data.tar.gz: 3f4d1be7db4045eef7b5315ffbe33666be78226d65b3a88f847b54aa3c6e7f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25f30f612097f816d8e3c47fee8fc6d28bd59c9cd07255d4294582a7b86328ea28b0e2e3520b0587469bbe55cef357de12393ad0139931736e5d50e3f4b6fcad
|
7
|
+
data.tar.gz: c241318e983d388bbe248be699b8968ffd1cbe487d637074ce93e4be3fdc3688a057be58ce8f4671eb5dea6d9ec45d507bf0aafebda4699d6d4178d3bfaa7037
|
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 = '0.
|
7
|
+
spec.version = '0.88.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', '= 0.
|
26
|
-
spec.add_dependency 'rubocop-performance', '= 1.
|
27
|
-
spec.add_dependency 'rubocop-rails', '= 2.
|
28
|
-
spec.add_dependency 'rubocop-rspec', '= 1.
|
25
|
+
spec.add_dependency 'rubocop', '= 0.88.0'
|
26
|
+
spec.add_dependency 'rubocop-performance', '= 1.7.1'
|
27
|
+
spec.add_dependency 'rubocop-rails', '= 2.6.0'
|
28
|
+
spec.add_dependency 'rubocop-rspec', '= 1.42.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
@@ -20,6 +20,11 @@ Lint/BooleanSymbol:
|
|
20
20
|
Lint/CircularArgumentReference:
|
21
21
|
Enabled: true
|
22
22
|
|
23
|
+
Lint/ConstantResolution:
|
24
|
+
Enabled: false
|
25
|
+
Only: []
|
26
|
+
Ignore: []
|
27
|
+
|
23
28
|
Lint/Debugger:
|
24
29
|
Enabled: true
|
25
30
|
|
@@ -29,6 +34,10 @@ Lint/DeprecatedClassMethods:
|
|
29
34
|
Lint/DeprecatedOpenSSLConstant:
|
30
35
|
Enabled: true
|
31
36
|
|
37
|
+
Lint/DisjunctiveAssignmentInConstructor:
|
38
|
+
Enabled: true
|
39
|
+
AutoCorrect: false
|
40
|
+
|
32
41
|
Lint/DuplicateCaseCondition:
|
33
42
|
Enabled: true
|
34
43
|
|
@@ -38,6 +47,9 @@ Lint/DuplicateMethods:
|
|
38
47
|
Lint/DuplicateHashKey:
|
39
48
|
Enabled: true
|
40
49
|
|
50
|
+
Lint/DuplicateElsifCondition:
|
51
|
+
Enabled: true
|
52
|
+
|
41
53
|
Lint/EachWithObjectArgument:
|
42
54
|
Enabled: true
|
43
55
|
|
@@ -99,6 +111,7 @@ Lint/InheritException:
|
|
99
111
|
|
100
112
|
Lint/InterpolationCheck:
|
101
113
|
Enabled: true
|
114
|
+
AutoCorrect: true
|
102
115
|
|
103
116
|
Lint/LiteralAsCondition:
|
104
117
|
Enabled: true
|
@@ -152,6 +165,9 @@ Lint/PercentSymbolArray:
|
|
152
165
|
|
153
166
|
Lint/RaiseException:
|
154
167
|
Enabled: true
|
168
|
+
AutoCorrect: false
|
169
|
+
AllowedImplicitNamespaces:
|
170
|
+
- Gem
|
155
171
|
|
156
172
|
Lint/RandOne:
|
157
173
|
Enabled: true
|
@@ -164,6 +180,7 @@ Lint/RedundantWithObject:
|
|
164
180
|
|
165
181
|
Lint/RegexpAsCondition:
|
166
182
|
Enabled: true
|
183
|
+
AutoCorrect: true
|
167
184
|
|
168
185
|
Lint/RequireParentheses:
|
169
186
|
Enabled: true
|
@@ -185,6 +202,7 @@ Lint/SafeNavigationConsistency:
|
|
185
202
|
|
186
203
|
Lint/SafeNavigationWithEmpty:
|
187
204
|
Enabled: true
|
205
|
+
AutoCorrect: true
|
188
206
|
|
189
207
|
Lint/ScriptPermission:
|
190
208
|
Enabled: true
|
data/lib/common/naming.yml
CHANGED
data/lib/common/performance.yml
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
+
Performance/AncestorsInclude:
|
2
|
+
Enabled: true
|
3
|
+
|
1
4
|
Performance/BindCall:
|
2
5
|
Enabled: true
|
3
6
|
|
7
|
+
Performance/BigDecimalWithNumericArgument:
|
8
|
+
Enabled: true
|
9
|
+
|
4
10
|
Performance/Caller:
|
5
11
|
Enabled: true
|
6
12
|
|
@@ -49,15 +55,24 @@ Performance/FlatMap:
|
|
49
55
|
Performance/InefficientHashSearch:
|
50
56
|
Enabled: true
|
51
57
|
|
58
|
+
Performance/IoReadlines:
|
59
|
+
Enabled: true
|
60
|
+
|
52
61
|
Performance/OpenStruct:
|
53
62
|
Enabled: true
|
54
63
|
|
55
64
|
Performance/RangeInclude:
|
56
65
|
Enabled: true
|
57
66
|
|
67
|
+
Performance/RedundantSortBlock:
|
68
|
+
Enabled: true
|
69
|
+
|
58
70
|
Performance/RedundantBlockCall:
|
59
71
|
Enabled: true
|
60
72
|
|
73
|
+
Performance/RedundantStringChars:
|
74
|
+
Enabled: true
|
75
|
+
|
61
76
|
Performance/RedundantMatch:
|
62
77
|
Enabled: true
|
63
78
|
|
@@ -71,13 +86,25 @@ Performance/RegexpMatch:
|
|
71
86
|
Performance/ReverseEach:
|
72
87
|
Enabled: true
|
73
88
|
|
89
|
+
Performance/ReverseFirst:
|
90
|
+
Enabled: true
|
91
|
+
|
74
92
|
Performance/Size:
|
75
93
|
Enabled: true
|
76
94
|
|
95
|
+
Performance/SortReverse:
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
Performance/Squeeze:
|
99
|
+
Enabled: true
|
100
|
+
|
77
101
|
Performance/StartWith:
|
78
102
|
Enabled: true
|
79
103
|
AutoCorrect: false
|
80
104
|
|
105
|
+
Performance/StringInclude:
|
106
|
+
Enabled: true
|
107
|
+
|
81
108
|
Performance/StringReplacement:
|
82
109
|
Enabled: true
|
83
110
|
|
data/lib/common/rails.yml
CHANGED
@@ -27,6 +27,7 @@ Rails/ApplicationMailer:
|
|
27
27
|
|
28
28
|
Rails/RakeEnvironment:
|
29
29
|
Enabled: true
|
30
|
+
AutoCorrect: true
|
30
31
|
|
31
32
|
Rails/AssertNot:
|
32
33
|
Enabled: true
|
@@ -44,6 +45,9 @@ Rails/BulkChangeTable:
|
|
44
45
|
Rails/CreateTableWithTimestamps:
|
45
46
|
Enabled: false
|
46
47
|
|
48
|
+
Rails/ContentTag:
|
49
|
+
Enabled: true
|
50
|
+
|
47
51
|
Rails/Date:
|
48
52
|
Enabled: true
|
49
53
|
EnforcedStyle: flexible
|
@@ -56,6 +60,12 @@ Rails/DelegateAllowBlank:
|
|
56
60
|
|
57
61
|
Rails/DynamicFindBy:
|
58
62
|
Enabled: true
|
63
|
+
Whitelist:
|
64
|
+
- find_by_sql
|
65
|
+
AllowedMethods:
|
66
|
+
- find_by_sql
|
67
|
+
AllowedReceivers:
|
68
|
+
- Gem::Specification
|
59
69
|
|
60
70
|
Rails/EnumHash:
|
61
71
|
Enabled: true
|
@@ -120,6 +130,9 @@ Rails/Output:
|
|
120
130
|
Rails/OutputSafety:
|
121
131
|
Enabled: false
|
122
132
|
|
133
|
+
Rails/Pick:
|
134
|
+
Enabled: true
|
135
|
+
|
123
136
|
Rails/PluralizationGrammar:
|
124
137
|
Enabled: true
|
125
138
|
|
@@ -137,6 +150,9 @@ Rails/RedundantAllowNil:
|
|
137
150
|
Include:
|
138
151
|
- app/models/**/*.rb
|
139
152
|
|
153
|
+
Rails/RedundantForeignKey:
|
154
|
+
Enabled: false
|
155
|
+
|
140
156
|
Rails/RedundantReceiverInWithOptions:
|
141
157
|
Enabled: true
|
142
158
|
|
data/lib/common/style.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
Style/AccessorGrouping:
|
2
|
+
Enabled: true
|
3
|
+
EnforcedStyle: separated
|
4
|
+
|
1
5
|
Style/AccessModifierDeclarations:
|
2
6
|
Enabled: true
|
3
7
|
EnforcedStyle: group
|
@@ -7,6 +11,9 @@ Style/Alias:
|
|
7
11
|
Enabled: true
|
8
12
|
EnforcedStyle: prefer_alias_method
|
9
13
|
|
14
|
+
Style/ArrayCoercion:
|
15
|
+
Enabled: true
|
16
|
+
|
10
17
|
Style/AndOr:
|
11
18
|
Enabled: false
|
12
19
|
EnforcedStyle: always
|
@@ -31,6 +38,9 @@ Style/BarePercentLiterals:
|
|
31
38
|
Style/BeginBlock:
|
32
39
|
Enabled: true
|
33
40
|
|
41
|
+
Style/BisectedAttrAccessor:
|
42
|
+
Enabled: true
|
43
|
+
|
34
44
|
Style/BlockComments:
|
35
45
|
Enabled: true
|
36
46
|
|
@@ -43,6 +53,10 @@ Style/BlockDelimiters:
|
|
43
53
|
Style/CaseEquality:
|
44
54
|
Enabled: true
|
45
55
|
|
56
|
+
Style/CaseLikeIf:
|
57
|
+
Enabled: true
|
58
|
+
AutoCorrect: true
|
59
|
+
|
46
60
|
Style/CharacterLiteral:
|
47
61
|
Enabled: true
|
48
62
|
|
@@ -183,6 +197,15 @@ Style/GuardClause:
|
|
183
197
|
Enabled: false
|
184
198
|
MinBodyLength: 1
|
185
199
|
|
200
|
+
Style/HashAsLastArrayItem:
|
201
|
+
Enabled: true
|
202
|
+
EnforcedStyle: braces
|
203
|
+
AutoCorrect: true
|
204
|
+
|
205
|
+
Style/HashLikeCase:
|
206
|
+
Enabled: false
|
207
|
+
MinBranchesCount: 4
|
208
|
+
|
186
209
|
Style/HashEachMethods:
|
187
210
|
Enabled: true
|
188
211
|
|
@@ -210,6 +233,7 @@ Style/IfUnlessModifier:
|
|
210
233
|
|
211
234
|
Style/IfUnlessModifierOfIfUnless:
|
212
235
|
Enabled: true
|
236
|
+
AutoCorrect: true
|
213
237
|
|
214
238
|
Style/IfWithSemicolon:
|
215
239
|
Enabled: true
|
@@ -294,6 +318,7 @@ Style/MultilineMethodSignature:
|
|
294
318
|
|
295
319
|
Style/MultilineTernaryOperator:
|
296
320
|
Enabled: false
|
321
|
+
AutoCorrect: true
|
297
322
|
|
298
323
|
Style/MultilineWhenThen:
|
299
324
|
Enabled: true
|
@@ -323,6 +348,7 @@ Style/NestedParenthesizedCalls:
|
|
323
348
|
|
324
349
|
Style/NestedTernaryOperator:
|
325
350
|
Enabled: true
|
351
|
+
AutoCorrect: true
|
326
352
|
|
327
353
|
Style/Next:
|
328
354
|
Enabled: true
|
@@ -392,12 +418,22 @@ Style/RaiseArgs:
|
|
392
418
|
Style/RandomWithOffset:
|
393
419
|
Enabled: true
|
394
420
|
|
421
|
+
Style/RedundantAssignment:
|
422
|
+
Enabled: true
|
423
|
+
|
395
424
|
Style/RedundantBegin:
|
396
425
|
Enabled: true
|
397
426
|
|
398
427
|
Style/RedundantConditional:
|
399
428
|
Enabled: true
|
400
429
|
|
430
|
+
Style/RedundantFileExtensionInRequire:
|
431
|
+
Enabled: true
|
432
|
+
|
433
|
+
Style/RedundantFetchBlock:
|
434
|
+
Enabled: true
|
435
|
+
SafeForConstants: true
|
436
|
+
|
401
437
|
Style/RedundantRegexpCharacterClass:
|
402
438
|
Enabled: true
|
403
439
|
|
@@ -498,6 +534,7 @@ Style/Strip:
|
|
498
534
|
|
499
535
|
Style/StructInheritance:
|
500
536
|
Enabled: true
|
537
|
+
AutoCorrect: true
|
501
538
|
|
502
539
|
Style/SymbolArray:
|
503
540
|
Enabled: true
|
@@ -537,6 +574,7 @@ Style/TrailingCommaInBlockArgs:
|
|
537
574
|
Style/TrailingCommaInHashLiteral:
|
538
575
|
Enabled: true
|
539
576
|
EnforcedStyleForMultiline: no_comma
|
577
|
+
AutoCorrect: true
|
540
578
|
|
541
579
|
Style/TrailingMethodEndStatement:
|
542
580
|
Enabled: true
|
data/lib/rspec/rspec.yml
CHANGED
@@ -233,6 +233,14 @@ RSpec/SubjectStub:
|
|
233
233
|
RSpec/UnspecifiedException:
|
234
234
|
Enabled: true
|
235
235
|
|
236
|
+
RSpec/VariableDefinition:
|
237
|
+
Enabled: true
|
238
|
+
EnforcedStyle: symbols
|
239
|
+
|
240
|
+
RSpec/VariableName:
|
241
|
+
Enabled: true
|
242
|
+
EnforcedStyle: snake_case
|
243
|
+
|
236
244
|
RSpec/VerifiedDoubles:
|
237
245
|
Enabled: false
|
238
246
|
IgnoreNameless: 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: 0.
|
4
|
+
version: 0.88.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: 2020-
|
11
|
+
date: 2020-07-19 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: 0.
|
19
|
+
version: 0.88.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: 0.
|
26
|
+
version: 0.88.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.7.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.7.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.6.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.6.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: 1.
|
61
|
+
version: 1.42.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: 1.
|
68
|
+
version: 1.42.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|