armitage-rubocop 0.80.1 → 0.81.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/README.md +1 -0
- data/armitage-rubocop.gemspec +3 -3
- data/lib/common/layout.yml +2 -0
- data/lib/common/lint.yml +7 -3
- data/lib/common/metrics.yml +3 -0
- data/lib/common/rails.yml +15 -0
- data/lib/common/style.yml +9 -0
- data/lib/rspec/rspec.yml +5 -1
- 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: 8159110d29b67352668a4d9aa15db0d1651efd61d49c8ede9a2050b32a1b0922
|
4
|
+
data.tar.gz: 8da3c51426956bb78ad96c0315f88a4e6668df00a07ce64655c33f1ffa619514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec0ee4d455607db8b24d841cf499c50123b23aa002dd6c43018340c4eda8ae1714a41f9a50b5a9a9918b3cc5732087b61bea01be58fad52b07110bd6df574e46
|
7
|
+
data.tar.gz: a11bd641444e22f2e06592ef8d3bfab81b1efa042e7742e80c2058b09fbe7f684b02a5b6afc5b058c0727adbf78adf0b7cf91e966bb5749a1f8989b380d88c28
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
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.81.0'
|
8
8
|
|
9
9
|
spec.name = 'armitage-rubocop'
|
10
10
|
spec.license = 'MIT'
|
@@ -22,9 +22,9 @@ 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.81.0'
|
26
26
|
spec.add_dependency 'rubocop-performance', '= 1.5.2'
|
27
|
-
spec.add_dependency 'rubocop-rails', '= 2.
|
27
|
+
spec.add_dependency 'rubocop-rails', '= 2.5.2'
|
28
28
|
spec.add_dependency 'rubocop-rspec', '= 1.38.1'
|
29
29
|
spec.add_dependency 'rubocop-rake', '= 0.5.1'
|
30
30
|
|
data/lib/common/layout.yml
CHANGED
data/lib/common/lint.yml
CHANGED
@@ -54,9 +54,6 @@ Lint/EmptyInterpolation:
|
|
54
54
|
Lint/EmptyWhen:
|
55
55
|
Enabled: false
|
56
56
|
|
57
|
-
Lint/EndInMethod:
|
58
|
-
Enabled: true
|
59
|
-
|
60
57
|
Lint/EnsureReturn:
|
61
58
|
Enabled: true
|
62
59
|
|
@@ -73,6 +70,9 @@ Lint/FloatOutOfRange:
|
|
73
70
|
Lint/FormatParameterMismatch:
|
74
71
|
Enabled: true
|
75
72
|
|
73
|
+
Lint/StructNewOverride:
|
74
|
+
Enabled: true
|
75
|
+
|
76
76
|
Lint/SuppressedException:
|
77
77
|
Enabled: false
|
78
78
|
|
@@ -139,6 +139,9 @@ Lint/PercentStringArray:
|
|
139
139
|
Lint/PercentSymbolArray:
|
140
140
|
Enabled: true
|
141
141
|
|
142
|
+
Lint/RaiseException:
|
143
|
+
Enabled: true
|
144
|
+
|
142
145
|
Lint/RandOne:
|
143
146
|
Enabled: true
|
144
147
|
|
@@ -227,6 +230,7 @@ Lint/UnusedMethodArgument:
|
|
227
230
|
Enabled: false
|
228
231
|
AllowUnusedKeywordArguments: false
|
229
232
|
IgnoreEmptyMethods: true
|
233
|
+
IgnoreNotImplementedMethods: true
|
230
234
|
|
231
235
|
Lint/UriEscapeUnescape:
|
232
236
|
Enabled: false
|
data/lib/common/metrics.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
Metrics/AbcSize:
|
2
2
|
Enabled: true
|
3
3
|
Max: 19
|
4
|
+
IgnoredMethods: []
|
4
5
|
|
5
6
|
Metrics/BlockLength:
|
6
7
|
Enabled: true
|
@@ -25,6 +26,7 @@ Metrics/ClassLength:
|
|
25
26
|
Metrics/CyclomaticComplexity:
|
26
27
|
Enabled: true
|
27
28
|
Max: 10
|
29
|
+
IgnoredMethods: []
|
28
30
|
|
29
31
|
Metrics/MethodLength:
|
30
32
|
Enabled: true
|
@@ -44,3 +46,4 @@ Metrics/ParameterLists:
|
|
44
46
|
Metrics/PerceivedComplexity:
|
45
47
|
Enabled: true
|
46
48
|
Max: 10
|
49
|
+
IgnoredMethods: []
|
data/lib/common/rails.yml
CHANGED
@@ -96,6 +96,12 @@ Rails/HttpStatus:
|
|
96
96
|
Rails/IgnoredSkipActionFilterOption:
|
97
97
|
Enabled: true
|
98
98
|
|
99
|
+
Rails/IndexBy:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Rails/IndexWith:
|
103
|
+
Enabled: true
|
104
|
+
|
99
105
|
Rails/InverseOf:
|
100
106
|
Enabled: true
|
101
107
|
|
@@ -139,6 +145,10 @@ Rails/ReflectionClassName:
|
|
139
145
|
|
140
146
|
Rails/RefuteMethods:
|
141
147
|
Enabled: true
|
148
|
+
EnforcedStyle: assert_not
|
149
|
+
Include:
|
150
|
+
- 'test/**/*'
|
151
|
+
- 'spec/**/*'
|
142
152
|
|
143
153
|
Rails/RelativeDateConstant:
|
144
154
|
Enabled: true
|
@@ -175,6 +185,11 @@ Rails/UniqBeforePluck:
|
|
175
185
|
Enabled: true
|
176
186
|
EnforcedStyle: conservative
|
177
187
|
|
188
|
+
Rails/UniqueValidationWithoutIndex:
|
189
|
+
Enabled: true
|
190
|
+
Include:
|
191
|
+
- app/models/**/*.rb
|
192
|
+
|
178
193
|
Rails/UnknownEnv:
|
179
194
|
Enabled: true
|
180
195
|
Environments:
|
data/lib/common/style.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
Style/AccessModifierDeclarations:
|
2
2
|
Enabled: true
|
3
3
|
EnforcedStyle: group
|
4
|
+
AllowModifiersOnSymbols: true
|
4
5
|
|
5
6
|
Style/Alias:
|
6
7
|
Enabled: true
|
@@ -95,6 +96,10 @@ Style/DefWithParentheses:
|
|
95
96
|
Style/Dir:
|
96
97
|
Enabled: true
|
97
98
|
|
99
|
+
# NOTE: Broken in 0.81.0
|
100
|
+
# Style/DisableCopsWithinSourceCodeDirective:
|
101
|
+
# Enabled: false
|
102
|
+
|
98
103
|
Style/Documentation:
|
99
104
|
Enabled: false
|
100
105
|
|
@@ -135,6 +140,7 @@ Style/Encoding:
|
|
135
140
|
|
136
141
|
Style/EndBlock:
|
137
142
|
Enabled: true
|
143
|
+
AutoCorrect: true
|
138
144
|
|
139
145
|
Style/EvalWithLocation:
|
140
146
|
Enabled: true
|
@@ -511,6 +517,9 @@ Style/TrailingCommaInArrayLiteral:
|
|
511
517
|
Enabled: true
|
512
518
|
EnforcedStyleForMultiline: no_comma
|
513
519
|
|
520
|
+
Style/TrailingCommaInBlockArgs:
|
521
|
+
Enabled: false
|
522
|
+
|
514
523
|
Style/TrailingCommaInHashLiteral:
|
515
524
|
Enabled: true
|
516
525
|
EnforcedStyleForMultiline: no_comma
|
data/lib/rspec/rspec.yml
CHANGED
@@ -181,7 +181,11 @@ RSpec/PredicateMatcher:
|
|
181
181
|
Enabled: true
|
182
182
|
Strict: true
|
183
183
|
EnforcedStyle: explicit
|
184
|
-
AllowedExplicitMatchers:
|
184
|
+
AllowedExplicitMatchers:
|
185
|
+
- be_a
|
186
|
+
- be_empty
|
187
|
+
- have_http_status
|
188
|
+
- have_been_made
|
185
189
|
|
186
190
|
RSpec/ReceiveCounts:
|
187
191
|
Enabled: false
|
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.81.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-04-12 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.81.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.81.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.5.2
|
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.5.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|