armitage-rubocop 1.2.0 → 1.3.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 +3 -3
- data/lib/common/lint.yml +9 -0
- data/lib/common/naming.yml +3 -0
- data/lib/common/performance.yml +16 -0
- data/lib/common/style.yml +7 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fea71e911b6cc9479c86d2437befcf1e73c435da8faac6925aea6fd42bea49a0
|
4
|
+
data.tar.gz: b3668511d94edc22244f8103914722cc960ebf0a1e8d7af1358d3639aa32dbba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1c96bcac6f1bb54b0a040a6639c1577b2cf3409b099fa1c459fb70121906cef3ae9bb864eafb1ad5f621079f6229baffc415746921ace1765f776b1d2749cd1
|
7
|
+
data.tar.gz: e1114919a49bb3da37243776be9d65120d55597c9def152a25cb1da8d593282ec20d9bb3f0e807b51d0a1c5ce14fb4ab9945bb97d72c3f53cd08b24898375a70
|
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 = '1.
|
7
|
+
spec.version = '1.3.1'
|
8
8
|
|
9
9
|
spec.name = 'armitage-rubocop'
|
10
10
|
spec.license = 'MIT'
|
@@ -22,8 +22,8 @@ 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
|
-
spec.add_dependency 'rubocop-performance', '= 1.
|
25
|
+
spec.add_dependency 'rubocop', '= 1.3.1'
|
26
|
+
spec.add_dependency 'rubocop-performance', '= 1.9.0'
|
27
27
|
spec.add_dependency 'rubocop-rails', '= 2.8.1'
|
28
28
|
spec.add_dependency 'rubocop-rspec', '= 2.0.0'
|
29
29
|
spec.add_dependency 'rubocop-rake', '= 0.5.1'
|
data/lib/common/lint.yml
CHANGED
@@ -25,6 +25,8 @@ Lint/CircularArgumentReference:
|
|
25
25
|
|
26
26
|
Lint/ConstantDefinitionInBlock:
|
27
27
|
Enabled: false
|
28
|
+
AllowedMethods:
|
29
|
+
- enums
|
28
30
|
|
29
31
|
Lint/ConstantResolution:
|
30
32
|
Enabled: false
|
@@ -44,6 +46,9 @@ Lint/DisjunctiveAssignmentInConstructor:
|
|
44
46
|
Enabled: true
|
45
47
|
AutoCorrect: false
|
46
48
|
|
49
|
+
Lint/DuplicateBranch:
|
50
|
+
Enabled: true
|
51
|
+
|
47
52
|
Lint/DuplicateCaseCondition:
|
48
53
|
Enabled: true
|
49
54
|
|
@@ -76,6 +81,10 @@ Lint/EmptyBlock:
|
|
76
81
|
Enabled: true
|
77
82
|
AllowComments: true
|
78
83
|
|
84
|
+
Lint/EmptyClass:
|
85
|
+
Enabled: false
|
86
|
+
AllowComments: true
|
87
|
+
|
79
88
|
Lint/EmptyConditionalBody:
|
80
89
|
Enabled: true
|
81
90
|
AllowComments: true
|
data/lib/common/naming.yml
CHANGED
data/lib/common/performance.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
Performance/ArraySemiInfiniteRangeSlice:
|
2
|
+
Enabled: true
|
3
|
+
|
1
4
|
Performance/AncestorsInclude:
|
2
5
|
Enabled: true
|
3
6
|
|
@@ -7,8 +10,13 @@ Performance/BindCall:
|
|
7
10
|
Performance/BigDecimalWithNumericArgument:
|
8
11
|
Enabled: true
|
9
12
|
|
13
|
+
Performance/BlockGivenWithExplicitBlock:
|
14
|
+
Enabled: false
|
15
|
+
AutoCorrect: true
|
16
|
+
|
10
17
|
Performance/Caller:
|
11
18
|
Enabled: true
|
19
|
+
AutoCorrect: true
|
12
20
|
|
13
21
|
Performance/CaseWhenSplat:
|
14
22
|
Enabled: true
|
@@ -27,6 +35,9 @@ Performance/CollectionLiteralInLoop:
|
|
27
35
|
Enabled: true
|
28
36
|
MinSize: 1
|
29
37
|
|
38
|
+
Performance/ConstantRegexp:
|
39
|
+
Enabled: true
|
40
|
+
|
30
41
|
Performance/Count:
|
31
42
|
Enabled: true
|
32
43
|
SafeAutoCorrect: false
|
@@ -62,6 +73,9 @@ Performance/InefficientHashSearch:
|
|
62
73
|
Performance/IoReadlines:
|
63
74
|
Enabled: true
|
64
75
|
|
76
|
+
Performance/MethodObjectAsBlock:
|
77
|
+
Enabled: true
|
78
|
+
|
65
79
|
Performance/OpenStruct:
|
66
80
|
Enabled: true
|
67
81
|
|
@@ -114,6 +128,7 @@ Performance/StringReplacement:
|
|
114
128
|
|
115
129
|
Performance/Sum:
|
116
130
|
Enabled: true
|
131
|
+
AutoCorrect: true
|
117
132
|
|
118
133
|
Performance/TimesMap:
|
119
134
|
Enabled: true
|
@@ -121,6 +136,7 @@ Performance/TimesMap:
|
|
121
136
|
|
122
137
|
Performance/UnfreezeString:
|
123
138
|
Enabled: true
|
139
|
+
AutoCorrect: true
|
124
140
|
|
125
141
|
Performance/UriDefaultParser:
|
126
142
|
Enabled: true
|
data/lib/common/style.yml
CHANGED
@@ -262,6 +262,7 @@ Style/IdenticalConditionalBranches:
|
|
262
262
|
Style/IfInsideElse:
|
263
263
|
Enabled: true
|
264
264
|
AllowIfModifier: true
|
265
|
+
AutoCorrect: true
|
265
266
|
|
266
267
|
Style/IfUnlessModifier:
|
267
268
|
Enabled: false
|
@@ -397,6 +398,9 @@ Style/NilComparison:
|
|
397
398
|
Enabled: true
|
398
399
|
EnforcedStyle: comparison
|
399
400
|
|
401
|
+
Style/NilLambda:
|
402
|
+
Enabled: false
|
403
|
+
|
400
404
|
Style/NonNilCheck:
|
401
405
|
Enabled: true
|
402
406
|
IncludeSemanticChanges: false
|
@@ -557,6 +561,9 @@ Style/SlicingWithRange:
|
|
557
561
|
Style/SpecialGlobalVars:
|
558
562
|
Enabled: true
|
559
563
|
|
564
|
+
Style/StaticClass:
|
565
|
+
Enabled: true
|
566
|
+
|
560
567
|
Style/StabbyLambdaParentheses:
|
561
568
|
Enabled: true
|
562
569
|
EnforcedStyle: require_parentheses
|
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.3.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-
|
11
|
+
date: 2020-11-18 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: 1.
|
19
|
+
version: 1.3.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
|
+
version: 1.3.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.9.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.9.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
|
-
rubygems_version: 3.1
|
182
|
+
rubygems_version: 3.2.0.rc.1
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: A set of rubocop settings
|