armitage-rubocop 0.87.1.2 → 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 +3 -3
- data/lib/common/lint.yml +7 -0
- data/lib/common/style.yml +20 -0
- metadata +6 -6
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,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', '= 0.
|
26
|
-
spec.add_dependency 'rubocop-performance', '= 1.7.
|
25
|
+
spec.add_dependency 'rubocop', '= 0.88.0'
|
26
|
+
spec.add_dependency 'rubocop-performance', '= 1.7.1'
|
27
27
|
spec.add_dependency 'rubocop-rails', '= 2.6.0'
|
28
28
|
spec.add_dependency 'rubocop-rspec', '= 1.42.0'
|
29
29
|
spec.add_dependency 'rubocop-rake', '= 0.5.1'
|
data/lib/common/lint.yml
CHANGED
@@ -34,6 +34,10 @@ Lint/DeprecatedClassMethods:
|
|
34
34
|
Lint/DeprecatedOpenSSLConstant:
|
35
35
|
Enabled: true
|
36
36
|
|
37
|
+
Lint/DisjunctiveAssignmentInConstructor:
|
38
|
+
Enabled: true
|
39
|
+
AutoCorrect: false
|
40
|
+
|
37
41
|
Lint/DuplicateCaseCondition:
|
38
42
|
Enabled: true
|
39
43
|
|
@@ -43,6 +47,9 @@ Lint/DuplicateMethods:
|
|
43
47
|
Lint/DuplicateHashKey:
|
44
48
|
Enabled: true
|
45
49
|
|
50
|
+
Lint/DuplicateElsifCondition:
|
51
|
+
Enabled: true
|
52
|
+
|
46
53
|
Lint/EachWithObjectArgument:
|
47
54
|
Enabled: true
|
48
55
|
|
data/lib/common/style.yml
CHANGED
@@ -11,6 +11,9 @@ Style/Alias:
|
|
11
11
|
Enabled: true
|
12
12
|
EnforcedStyle: prefer_alias_method
|
13
13
|
|
14
|
+
Style/ArrayCoercion:
|
15
|
+
Enabled: true
|
16
|
+
|
14
17
|
Style/AndOr:
|
15
18
|
Enabled: false
|
16
19
|
EnforcedStyle: always
|
@@ -50,6 +53,10 @@ Style/BlockDelimiters:
|
|
50
53
|
Style/CaseEquality:
|
51
54
|
Enabled: true
|
52
55
|
|
56
|
+
Style/CaseLikeIf:
|
57
|
+
Enabled: true
|
58
|
+
AutoCorrect: true
|
59
|
+
|
53
60
|
Style/CharacterLiteral:
|
54
61
|
Enabled: true
|
55
62
|
|
@@ -190,6 +197,15 @@ Style/GuardClause:
|
|
190
197
|
Enabled: false
|
191
198
|
MinBodyLength: 1
|
192
199
|
|
200
|
+
Style/HashAsLastArrayItem:
|
201
|
+
Enabled: true
|
202
|
+
EnforcedStyle: braces
|
203
|
+
AutoCorrect: true
|
204
|
+
|
205
|
+
Style/HashLikeCase:
|
206
|
+
Enabled: false
|
207
|
+
MinBranchesCount: 4
|
208
|
+
|
193
209
|
Style/HashEachMethods:
|
194
210
|
Enabled: true
|
195
211
|
|
@@ -411,6 +427,9 @@ Style/RedundantBegin:
|
|
411
427
|
Style/RedundantConditional:
|
412
428
|
Enabled: true
|
413
429
|
|
430
|
+
Style/RedundantFileExtensionInRequire:
|
431
|
+
Enabled: true
|
432
|
+
|
414
433
|
Style/RedundantFetchBlock:
|
415
434
|
Enabled: true
|
416
435
|
SafeForConstants: true
|
@@ -555,6 +574,7 @@ Style/TrailingCommaInBlockArgs:
|
|
555
574
|
Style/TrailingCommaInHashLiteral:
|
556
575
|
Enabled: true
|
557
576
|
EnforcedStyleForMultiline: no_comma
|
577
|
+
AutoCorrect: true
|
558
578
|
|
559
579
|
Style/TrailingMethodEndStatement:
|
560
580
|
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.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-07-
|
11
|
+
date: 2020-07-19 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.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.7.
|
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.7.
|
40
|
+
version: 1.7.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|