armitage-rubocop 0.85.1 → 0.87.1
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 +4 -4
- data/lib/common/lint.yml +11 -0
- data/lib/common/naming.yml +1 -0
- data/lib/common/performance.yml +24 -0
- data/lib/common/style.yml +18 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 493f5291c89baad7d9a9026748facfaf3ed2c55d5647b48dba493cf96faddc07
|
4
|
+
data.tar.gz: b8eac86e6a5aa70299828d5830c2f17bda6950441186419290c8c86924b4aa0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dac5e57caa33ac60acdee5b9c8bb2d9fe9b1058d31e60feb6eb9193793f71ea331550eb6f6bee4a778b1fb114a54b1daa3100278f5b77039615c151253d61aa
|
7
|
+
data.tar.gz: e93d8c930f8fa0a9596155190e30713635b60d6dfc78dccb55bc2e7b518f3749c1e184008cb18d31a1b7778ad2bc75a277025d9482104784f98241f6c0d0aa70
|
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.87.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', '= 0.
|
26
|
-
spec.add_dependency 'rubocop-performance', '= 1.
|
25
|
+
spec.add_dependency 'rubocop', '= 0.87.1'
|
26
|
+
spec.add_dependency 'rubocop-performance', '= 1.7.0'
|
27
27
|
spec.add_dependency 'rubocop-rails', '= 2.6.0'
|
28
|
-
spec.add_dependency 'rubocop-rspec', '= 1.
|
28
|
+
spec.add_dependency 'rubocop-rspec', '= 1.41.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
|
|
@@ -99,6 +104,7 @@ Lint/InheritException:
|
|
99
104
|
|
100
105
|
Lint/InterpolationCheck:
|
101
106
|
Enabled: true
|
107
|
+
AutoCorrect: true
|
102
108
|
|
103
109
|
Lint/LiteralAsCondition:
|
104
110
|
Enabled: true
|
@@ -152,6 +158,9 @@ Lint/PercentSymbolArray:
|
|
152
158
|
|
153
159
|
Lint/RaiseException:
|
154
160
|
Enabled: true
|
161
|
+
AutoCorrect: false
|
162
|
+
AllowedImplicitNamespaces:
|
163
|
+
- Gem
|
155
164
|
|
156
165
|
Lint/RandOne:
|
157
166
|
Enabled: true
|
@@ -164,6 +173,7 @@ Lint/RedundantWithObject:
|
|
164
173
|
|
165
174
|
Lint/RegexpAsCondition:
|
166
175
|
Enabled: true
|
176
|
+
AutoCorrect: true
|
167
177
|
|
168
178
|
Lint/RequireParentheses:
|
169
179
|
Enabled: true
|
@@ -185,6 +195,7 @@ Lint/SafeNavigationConsistency:
|
|
185
195
|
|
186
196
|
Lint/SafeNavigationWithEmpty:
|
187
197
|
Enabled: true
|
198
|
+
AutoCorrect: true
|
188
199
|
|
189
200
|
Lint/ScriptPermission:
|
190
201
|
Enabled: true
|
data/lib/common/naming.yml
CHANGED
data/lib/common/performance.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
Performance/AncestorsInclude:
|
2
|
+
Enabled: true
|
3
|
+
|
1
4
|
Performance/BindCall:
|
2
5
|
Enabled: true
|
3
6
|
|
@@ -49,15 +52,24 @@ Performance/FlatMap:
|
|
49
52
|
Performance/InefficientHashSearch:
|
50
53
|
Enabled: true
|
51
54
|
|
55
|
+
Performance/IoReadlines:
|
56
|
+
Enabled: true
|
57
|
+
|
52
58
|
Performance/OpenStruct:
|
53
59
|
Enabled: true
|
54
60
|
|
55
61
|
Performance/RangeInclude:
|
56
62
|
Enabled: true
|
57
63
|
|
64
|
+
Performance/RedundantSortBlock:
|
65
|
+
Enabled: true
|
66
|
+
|
58
67
|
Performance/RedundantBlockCall:
|
59
68
|
Enabled: true
|
60
69
|
|
70
|
+
Performance/RedundantStringChars:
|
71
|
+
Enabled: true
|
72
|
+
|
61
73
|
Performance/RedundantMatch:
|
62
74
|
Enabled: true
|
63
75
|
|
@@ -71,13 +83,25 @@ Performance/RegexpMatch:
|
|
71
83
|
Performance/ReverseEach:
|
72
84
|
Enabled: true
|
73
85
|
|
86
|
+
Performance/ReverseFirst:
|
87
|
+
Enabled: true
|
88
|
+
|
74
89
|
Performance/Size:
|
75
90
|
Enabled: true
|
76
91
|
|
92
|
+
Performance/SortReverse:
|
93
|
+
Enabled: true
|
94
|
+
|
95
|
+
Performance/Squeeze:
|
96
|
+
Enabled: true
|
97
|
+
|
77
98
|
Performance/StartWith:
|
78
99
|
Enabled: true
|
79
100
|
AutoCorrect: false
|
80
101
|
|
102
|
+
Performance/StringInclude:
|
103
|
+
Enabled: true
|
104
|
+
|
81
105
|
Performance/StringReplacement:
|
82
106
|
Enabled: true
|
83
107
|
|
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
|
@@ -31,6 +35,9 @@ Style/BarePercentLiterals:
|
|
31
35
|
Style/BeginBlock:
|
32
36
|
Enabled: true
|
33
37
|
|
38
|
+
Style/BisectedAttrAccessor:
|
39
|
+
Enabled: true
|
40
|
+
|
34
41
|
Style/BlockComments:
|
35
42
|
Enabled: true
|
36
43
|
|
@@ -210,6 +217,7 @@ Style/IfUnlessModifier:
|
|
210
217
|
|
211
218
|
Style/IfUnlessModifierOfIfUnless:
|
212
219
|
Enabled: true
|
220
|
+
AutoCorrect: true
|
213
221
|
|
214
222
|
Style/IfWithSemicolon:
|
215
223
|
Enabled: true
|
@@ -294,6 +302,7 @@ Style/MultilineMethodSignature:
|
|
294
302
|
|
295
303
|
Style/MultilineTernaryOperator:
|
296
304
|
Enabled: false
|
305
|
+
AutoCorrect: true
|
297
306
|
|
298
307
|
Style/MultilineWhenThen:
|
299
308
|
Enabled: true
|
@@ -323,6 +332,7 @@ Style/NestedParenthesizedCalls:
|
|
323
332
|
|
324
333
|
Style/NestedTernaryOperator:
|
325
334
|
Enabled: true
|
335
|
+
AutoCorrect: true
|
326
336
|
|
327
337
|
Style/Next:
|
328
338
|
Enabled: true
|
@@ -392,12 +402,19 @@ Style/RaiseArgs:
|
|
392
402
|
Style/RandomWithOffset:
|
393
403
|
Enabled: true
|
394
404
|
|
405
|
+
Style/RedundantAssignment:
|
406
|
+
Enabled: true
|
407
|
+
|
395
408
|
Style/RedundantBegin:
|
396
409
|
Enabled: true
|
397
410
|
|
398
411
|
Style/RedundantConditional:
|
399
412
|
Enabled: true
|
400
413
|
|
414
|
+
Style/RedundantFetchBlock:
|
415
|
+
Enabled: true
|
416
|
+
SafeForConstants: true
|
417
|
+
|
401
418
|
Style/RedundantRegexpCharacterClass:
|
402
419
|
Enabled: true
|
403
420
|
|
@@ -498,6 +515,7 @@ Style/Strip:
|
|
498
515
|
|
499
516
|
Style/StructInheritance:
|
500
517
|
Enabled: true
|
518
|
+
AutoCorrect: true
|
501
519
|
|
502
520
|
Style/SymbolArray:
|
503
521
|
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: 0.
|
4
|
+
version: 0.87.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: 2020-
|
11
|
+
date: 2020-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.87.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: 0.
|
26
|
+
version: 0.87.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.
|
33
|
+
version: 1.7.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.
|
40
|
+
version: 1.7.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.41.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.41.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|