armitage-rubocop 0.82.0.2 → 0.83.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 +2 -2
- data/lib/common/layout.yml +5 -0
- data/lib/common/lint.yml +10 -3
- data/lib/common/style.yml +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '079a5cd3b52832506fb37b97fe3f548e8d5e993502c30936d06e9c9c9d50cb8b'
|
4
|
+
data.tar.gz: 27377dcf4675b9b611ef0834c284843d946e5d260595b381fe79c0a98fad193d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 966d1e9845d6065260ab3e6f425a8b38b12f57104b10ce71bd661eb3857bd51e57b815850903f9f27a68b2f873130b341b126cbb9beda4622f78b42bcc672fce
|
7
|
+
data.tar.gz: 13ac3c3269bd87875f11f7cf97b0fb356ddaa6c30a79e87506f056abcbb8719a303345112c12e64567b3ebe393a13a0dddd338725ca31ece093faa898d2a07d7
|
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.83.0'
|
8
8
|
|
9
9
|
spec.name = 'armitage-rubocop'
|
10
10
|
spec.license = 'MIT'
|
@@ -22,7 +22,7 @@ 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.
|
25
|
+
spec.add_dependency 'rubocop', '= 0.83.0'
|
26
26
|
spec.add_dependency 'rubocop-performance', '= 1.5.2'
|
27
27
|
spec.add_dependency 'rubocop-rails', '= 2.5.2'
|
28
28
|
spec.add_dependency 'rubocop-rspec', '= 1.39.0'
|
data/lib/common/layout.yml
CHANGED
@@ -64,6 +64,7 @@ Layout/CommentIndentation:
|
|
64
64
|
|
65
65
|
Layout/ConditionPosition:
|
66
66
|
Enabled: true
|
67
|
+
AutoCorrect: true
|
67
68
|
|
68
69
|
Layout/DefEndAlignment:
|
69
70
|
Enabled: true
|
@@ -89,6 +90,10 @@ Layout/EmptyLineAfterGuardClause:
|
|
89
90
|
Layout/EmptyLineAfterMagicComment:
|
90
91
|
Enabled: true
|
91
92
|
|
93
|
+
# NOTE: coming soon
|
94
|
+
# Layout/EmptyLineAroundAttributeAccessor:
|
95
|
+
# Enabled: true
|
96
|
+
|
92
97
|
Layout/EmptyLineBetweenDefs:
|
93
98
|
Enabled: true
|
94
99
|
NumberOfEmptyLines: 1
|
data/lib/common/lint.yml
CHANGED
@@ -53,9 +53,11 @@ Lint/EmptyInterpolation:
|
|
53
53
|
|
54
54
|
Lint/EmptyWhen:
|
55
55
|
Enabled: false
|
56
|
+
AllowComments: true
|
56
57
|
|
57
58
|
Lint/EnsureReturn:
|
58
59
|
Enabled: true
|
60
|
+
AutoCorrect: false
|
59
61
|
|
60
62
|
Lint/ErbNewArguments:
|
61
63
|
Enabled: true
|
@@ -131,10 +133,9 @@ Lint/NumberConversion:
|
|
131
133
|
Lint/OrderedMagicComments:
|
132
134
|
Enabled: true
|
133
135
|
|
134
|
-
# WARNING!!!
|
135
136
|
Lint/ParenthesesAsGroupedExpression:
|
136
|
-
Enabled:
|
137
|
-
|
137
|
+
Enabled: true
|
138
|
+
AutoCorrect: true
|
138
139
|
|
139
140
|
Lint/PercentStringArray:
|
140
141
|
Enabled: true
|
@@ -243,6 +244,12 @@ Lint/UriRegexp:
|
|
243
244
|
|
244
245
|
Lint/UselessAccessModifier:
|
245
246
|
Enabled: true
|
247
|
+
ContextCreatingMethods: []
|
248
|
+
MethodCreatingMethods:
|
249
|
+
- delegate
|
250
|
+
- def_delegator
|
251
|
+
- def_delegators
|
252
|
+
AutoCorrect: true
|
246
253
|
|
247
254
|
Lint/UselessAssignment:
|
248
255
|
Enabled: true
|
data/lib/common/style.yml
CHANGED
@@ -212,6 +212,7 @@ Style/IfUnlessModifierOfIfUnless:
|
|
212
212
|
|
213
213
|
Style/IfWithSemicolon:
|
214
214
|
Enabled: true
|
215
|
+
AutoCorrect: true
|
215
216
|
|
216
217
|
Style/ImplicitRuntimeError:
|
217
218
|
Enabled: false
|
@@ -457,6 +458,9 @@ Style/SingleLineMethods:
|
|
457
458
|
Exclude:
|
458
459
|
- spec/**/*
|
459
460
|
|
461
|
+
Style/SlicingWithRange:
|
462
|
+
Enabled: true
|
463
|
+
|
460
464
|
Style/SpecialGlobalVars:
|
461
465
|
Enabled: true
|
462
466
|
|
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.83.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-05-
|
11
|
+
date: 2020-05-16 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: 0.
|
19
|
+
version: 0.83.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.83.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|