armitage-rubocop 0.87.1.2 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/armitage-rubocop.gemspec +5 -5
- data/lib/common/layout.yml +11 -0
- data/lib/common/lint.yml +56 -4
- data/lib/common/performance.yml +7 -0
- data/lib/common/rails.yml +61 -0
- data/lib/common/style.yml +61 -7
- data/lib/rspec/rspec.yml +4 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc0557d76b3ad87b560318672e7d972683e28746c2940bb53f4c2e927bfa304
|
4
|
+
data.tar.gz: 211abc70c147c6d5b27d3953daf4980d8265f795db6a857723bda539daec31eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c060c8bd643347ebad317d6a43ecfabda9db037c2c109f0efe1c8e6abab9abb6ff539eadb194da313dac137e9e737fe565ddca77275095f202119cfcaf31a316
|
7
|
+
data.tar.gz: 971daba115f8495e949e3bce691586de6db7d28f42b291efda6f19361976b676f4ba5171f2021e18fd423b03236951f86d283644060c04bf259568586e18eae9
|
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.92.0'
|
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.
|
27
|
-
spec.add_dependency 'rubocop-rails', '= 2.
|
28
|
-
spec.add_dependency 'rubocop-rspec', '= 1.
|
25
|
+
spec.add_dependency 'rubocop', '= 0.92.0'
|
26
|
+
spec.add_dependency 'rubocop-performance', '= 1.8.1'
|
27
|
+
spec.add_dependency 'rubocop-rails', '= 2.8.1'
|
28
|
+
spec.add_dependency 'rubocop-rspec', '= 1.43.2'
|
29
29
|
spec.add_dependency 'rubocop-rake', '= 0.5.1'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'bundler'
|
data/lib/common/layout.yml
CHANGED
@@ -24,6 +24,11 @@ Layout/ParameterAlignment:
|
|
24
24
|
EnforcedStyle: with_first_parameter
|
25
25
|
IndentationWidth: ~
|
26
26
|
|
27
|
+
Layout/BeginEndAlignment:
|
28
|
+
Enabled: true
|
29
|
+
EnforcedStyleAlignWith: start_of_line
|
30
|
+
Severity: warning
|
31
|
+
|
27
32
|
Layout/BlockAlignment:
|
28
33
|
Enabled: true
|
29
34
|
EnforcedStyleAlignWith: either
|
@@ -90,6 +95,9 @@ Layout/EmptyLineAfterGuardClause:
|
|
90
95
|
Layout/EmptyLineAfterMagicComment:
|
91
96
|
Enabled: true
|
92
97
|
|
98
|
+
Layout/EmptyLineAfterMultilineCondition:
|
99
|
+
Enabled: false
|
100
|
+
|
93
101
|
Layout/EmptyLinesAroundAttributeAccessor:
|
94
102
|
Enabled: true
|
95
103
|
AllowAliasSyntax: true
|
@@ -367,6 +375,9 @@ Layout/IndentationStyle:
|
|
367
375
|
EnforcedStyle: spaces
|
368
376
|
IndentationWidth: 2
|
369
377
|
|
378
|
+
Layout/SpaceAroundMethodCallOperator:
|
379
|
+
Enabled: true
|
380
|
+
|
370
381
|
Layout/TrailingEmptyLines:
|
371
382
|
Enabled: true
|
372
383
|
EnforcedStyle: final_newline
|
data/lib/common/lint.yml
CHANGED
@@ -14,12 +14,18 @@ Lint/AssignmentInCondition:
|
|
14
14
|
Lint/BigDecimalNew:
|
15
15
|
Enabled: true
|
16
16
|
|
17
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
18
|
+
Enabled: true
|
19
|
+
|
17
20
|
Lint/BooleanSymbol:
|
18
21
|
Enabled: false
|
19
22
|
|
20
23
|
Lint/CircularArgumentReference:
|
21
24
|
Enabled: true
|
22
25
|
|
26
|
+
Lint/ConstantDefinitionInBlock:
|
27
|
+
Enabled: false
|
28
|
+
|
23
29
|
Lint/ConstantResolution:
|
24
30
|
Enabled: false
|
25
31
|
Only: []
|
@@ -34,6 +40,10 @@ Lint/DeprecatedClassMethods:
|
|
34
40
|
Lint/DeprecatedOpenSSLConstant:
|
35
41
|
Enabled: true
|
36
42
|
|
43
|
+
Lint/DisjunctiveAssignmentInConstructor:
|
44
|
+
Enabled: true
|
45
|
+
AutoCorrect: false
|
46
|
+
|
37
47
|
Lint/DuplicateCaseCondition:
|
38
48
|
Enabled: true
|
39
49
|
|
@@ -43,12 +53,25 @@ Lint/DuplicateMethods:
|
|
43
53
|
Lint/DuplicateHashKey:
|
44
54
|
Enabled: true
|
45
55
|
|
56
|
+
Lint/DuplicateElsifCondition:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
Lint/DuplicateRequire:
|
60
|
+
Enabled: true
|
61
|
+
|
46
62
|
Lint/EachWithObjectArgument:
|
47
63
|
Enabled: true
|
48
64
|
|
65
|
+
Lint/DuplicateRescueException:
|
66
|
+
Enabled: true
|
67
|
+
|
49
68
|
Lint/ElseLayout:
|
50
69
|
Enabled: true
|
51
70
|
|
71
|
+
Lint/EmptyConditionalBody:
|
72
|
+
Enabled: true
|
73
|
+
AllowComments: true
|
74
|
+
|
52
75
|
Lint/EmptyEnsure:
|
53
76
|
Enabled: true
|
54
77
|
AutoCorrect: true
|
@@ -56,6 +79,10 @@ Lint/EmptyEnsure:
|
|
56
79
|
Lint/EmptyExpression:
|
57
80
|
Enabled: true
|
58
81
|
|
82
|
+
Lint/EmptyFile:
|
83
|
+
Enabled: true
|
84
|
+
AllowComments: true
|
85
|
+
|
59
86
|
Lint/EmptyInterpolation:
|
60
87
|
Enabled: true
|
61
88
|
|
@@ -65,7 +92,6 @@ Lint/EmptyWhen:
|
|
65
92
|
|
66
93
|
Lint/EnsureReturn:
|
67
94
|
Enabled: true
|
68
|
-
AutoCorrect: false
|
69
95
|
|
70
96
|
Lint/ErbNewArguments:
|
71
97
|
Enabled: true
|
@@ -77,10 +103,13 @@ Lint/FlipFlop:
|
|
77
103
|
Lint/FloatOutOfRange:
|
78
104
|
Enabled: true
|
79
105
|
|
106
|
+
Lint/FloatComparison:
|
107
|
+
Enabled: false
|
108
|
+
|
80
109
|
Lint/FormatParameterMismatch:
|
81
110
|
Enabled: true
|
82
111
|
|
83
|
-
|
112
|
+
Lint/SelfAssignment:
|
84
113
|
Enabled: true
|
85
114
|
|
86
115
|
Lint/StructNewOverride:
|
@@ -92,6 +121,9 @@ Lint/SuppressedException:
|
|
92
121
|
Lint/HeredocMethodCallPosition:
|
93
122
|
Enabled: true
|
94
123
|
|
124
|
+
Lint/IdentityComparison:
|
125
|
+
Enabled: false
|
126
|
+
|
95
127
|
Lint/ImplicitStringConcatenation:
|
96
128
|
Enabled: true
|
97
129
|
|
@@ -114,6 +146,7 @@ Lint/LiteralInInterpolation:
|
|
114
146
|
|
115
147
|
Lint/Loop:
|
116
148
|
Enabled: true
|
149
|
+
AutoCorrect: true
|
117
150
|
|
118
151
|
Lint/MissingCopEnableDirective:
|
119
152
|
Enabled: true
|
@@ -122,6 +155,9 @@ Lint/MixedRegexpCaptureTypes:
|
|
122
155
|
Enabled: true
|
123
156
|
# NOTE: if you use named captures - numbered captures will be ignored. it is bad. validate it.
|
124
157
|
|
158
|
+
Lint/MissingSuper:
|
159
|
+
Enabled: false
|
160
|
+
|
125
161
|
Lint/MultipleComparison:
|
126
162
|
Enabled: true
|
127
163
|
|
@@ -146,6 +182,9 @@ Lint/NumberConversion:
|
|
146
182
|
Lint/OrderedMagicComments:
|
147
183
|
Enabled: true
|
148
184
|
|
185
|
+
Lint/OutOfRangeRegexpRef:
|
186
|
+
Enabled: true
|
187
|
+
|
149
188
|
Lint/ParenthesesAsGroupedExpression:
|
150
189
|
Enabled: true
|
151
190
|
AutoCorrect: true
|
@@ -222,12 +261,21 @@ Lint/Syntax:
|
|
222
261
|
Lint/ToJSON:
|
223
262
|
Enabled: true
|
224
263
|
|
264
|
+
Lint/TopLevelReturnWithArgument:
|
265
|
+
Enabled: true
|
266
|
+
|
267
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
268
|
+
Enabled: true
|
269
|
+
|
225
270
|
Lint/UnderscorePrefixedVariableName:
|
226
271
|
Enabled: false
|
227
272
|
|
228
273
|
Lint/UnifiedInteger:
|
229
274
|
Enabled: true
|
230
275
|
|
276
|
+
Lint/UnreachableLoop:
|
277
|
+
Enabled: true
|
278
|
+
|
231
279
|
Lint/RedundantCopDisableDirective:
|
232
280
|
Enabled: true
|
233
281
|
|
@@ -272,15 +320,19 @@ Lint/UselessAccessModifier:
|
|
272
320
|
Lint/UselessAssignment:
|
273
321
|
Enabled: true
|
274
322
|
|
275
|
-
Lint/
|
323
|
+
Lint/UselessElseWithoutRescue:
|
276
324
|
Enabled: true
|
277
325
|
|
278
|
-
Lint/
|
326
|
+
Lint/UselessMethodDefinition:
|
279
327
|
Enabled: true
|
328
|
+
AllowComments: true
|
280
329
|
|
281
330
|
Lint/UselessSetterCall:
|
282
331
|
Enabled: true
|
283
332
|
|
333
|
+
Lint/UselessTimes:
|
334
|
+
Enabled: true
|
335
|
+
|
284
336
|
Lint/Void:
|
285
337
|
Enabled: true
|
286
338
|
CheckForMethodsWithNoSideEffects: false
|
data/lib/common/performance.yml
CHANGED
@@ -23,6 +23,10 @@ Performance/ChainArrayAllocation:
|
|
23
23
|
Performance/CompareWithBlock:
|
24
24
|
Enabled: true
|
25
25
|
|
26
|
+
Performance/CollectionLiteralInLoop:
|
27
|
+
Enabled: true
|
28
|
+
MinSize: 1
|
29
|
+
|
26
30
|
Performance/Count:
|
27
31
|
Enabled: true
|
28
32
|
SafeAutoCorrect: false
|
@@ -108,6 +112,9 @@ Performance/StringInclude:
|
|
108
112
|
Performance/StringReplacement:
|
109
113
|
Enabled: true
|
110
114
|
|
115
|
+
Performance/Sum:
|
116
|
+
Enabled: true
|
117
|
+
|
111
118
|
Performance/TimesMap:
|
112
119
|
Enabled: true
|
113
120
|
AutoCorrect: false
|
data/lib/common/rails.yml
CHANGED
@@ -5,6 +5,11 @@ Rails/ActionFilter:
|
|
5
5
|
Rails/ActiveRecordAliases:
|
6
6
|
Enabled: true
|
7
7
|
|
8
|
+
Rails/ActiveRecordCallbacksOrder:
|
9
|
+
Enabled: true
|
10
|
+
Include:
|
11
|
+
- app/models/**/*.rb
|
12
|
+
|
8
13
|
Rails/ActiveRecordOverride:
|
9
14
|
Enabled: true
|
10
15
|
Include:
|
@@ -13,6 +18,9 @@ Rails/ActiveRecordOverride:
|
|
13
18
|
Rails/ActiveSupportAliases:
|
14
19
|
Enabled: true
|
15
20
|
|
21
|
+
Rails/AfterCommitOverride:
|
22
|
+
Enabled: true
|
23
|
+
|
16
24
|
Rails/ApplicationJob:
|
17
25
|
Enabled: true
|
18
26
|
|
@@ -52,6 +60,9 @@ Rails/Date:
|
|
52
60
|
Enabled: true
|
53
61
|
EnforcedStyle: flexible
|
54
62
|
|
63
|
+
Rails/DefaultScope:
|
64
|
+
Enabled: false
|
65
|
+
|
55
66
|
Rails/Delegate:
|
56
67
|
Enabled: false
|
57
68
|
|
@@ -88,6 +99,9 @@ Rails/FilePath:
|
|
88
99
|
Rails/FindBy:
|
89
100
|
Enabled: true
|
90
101
|
|
102
|
+
Rails/FindById:
|
103
|
+
Enabled: true
|
104
|
+
|
91
105
|
Rails/FindEach:
|
92
106
|
Enabled: true
|
93
107
|
|
@@ -112,6 +126,9 @@ Rails/IndexBy:
|
|
112
126
|
Rails/IndexWith:
|
113
127
|
Enabled: true
|
114
128
|
|
129
|
+
Rails/Inquiry:
|
130
|
+
Enabled: false
|
131
|
+
|
115
132
|
Rails/InverseOf:
|
116
133
|
Enabled: true
|
117
134
|
|
@@ -121,9 +138,22 @@ Rails/LexicallyScopedActionFilter:
|
|
121
138
|
Rails/LinkToBlank:
|
122
139
|
Enabled: true
|
123
140
|
|
141
|
+
Rails/MailerName:
|
142
|
+
Enabled: true
|
143
|
+
# mailer views are mapped to the mailer class with Mailer postfix in the name of a class
|
144
|
+
|
145
|
+
Rails/MatchRoute:
|
146
|
+
Enabled: true
|
147
|
+
|
148
|
+
Rails/NegateInclude:
|
149
|
+
Enabled: true
|
150
|
+
|
124
151
|
Rails/NotNullColumn:
|
125
152
|
Enabled: true
|
126
153
|
|
154
|
+
Rails/OrderById:
|
155
|
+
Enabled: false
|
156
|
+
|
127
157
|
Rails/Output:
|
128
158
|
Enabled: true
|
129
159
|
|
@@ -133,6 +163,16 @@ Rails/OutputSafety:
|
|
133
163
|
Rails/Pick:
|
134
164
|
Enabled: true
|
135
165
|
|
166
|
+
Rails/Pluck:
|
167
|
+
Enabled: true
|
168
|
+
|
169
|
+
Rails/PluckId:
|
170
|
+
Enabled: false
|
171
|
+
|
172
|
+
Rails/PluckInWhere:
|
173
|
+
Enabled: true
|
174
|
+
EnforcedStyle: conservative
|
175
|
+
|
136
176
|
Rails/PluralizationGrammar:
|
137
177
|
Enabled: true
|
138
178
|
|
@@ -170,6 +210,13 @@ Rails/RelativeDateConstant:
|
|
170
210
|
Enabled: true
|
171
211
|
AutoCorrect: false
|
172
212
|
|
213
|
+
Rails/RenderInline:
|
214
|
+
Enabled: false
|
215
|
+
|
216
|
+
Rails/RenderPlainText:
|
217
|
+
Enabled: true
|
218
|
+
ContentTypeCompatibility: true
|
219
|
+
|
173
220
|
Rails/RequestReferer:
|
174
221
|
Enabled: true
|
175
222
|
EnforcedStyle: referer
|
@@ -190,9 +237,16 @@ Rails/SaveBang:
|
|
190
237
|
Rails/ScopeArgs:
|
191
238
|
Enabled: true
|
192
239
|
|
240
|
+
Rails/ShortI18n:
|
241
|
+
Enabled: true
|
242
|
+
EnforcedStyle: conservative
|
243
|
+
|
193
244
|
Rails/SkipsModelValidations:
|
194
245
|
Enabled: false
|
195
246
|
|
247
|
+
Rails/SquishedSQLHeredocs:
|
248
|
+
Enabled: true
|
249
|
+
|
196
250
|
Rails/TimeZone:
|
197
251
|
Enabled: true
|
198
252
|
EnforcedStyle: flexible
|
@@ -216,3 +270,10 @@ Rails/UnknownEnv:
|
|
216
270
|
|
217
271
|
Rails/Validation:
|
218
272
|
Enabled: true
|
273
|
+
|
274
|
+
Rails/WhereExists:
|
275
|
+
Enabled: false
|
276
|
+
EnforcedStyle: exists
|
277
|
+
|
278
|
+
Rails/WhereNot:
|
279
|
+
Enabled: false
|
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
|
@@ -49,6 +52,12 @@ Style/BlockDelimiters:
|
|
49
52
|
|
50
53
|
Style/CaseEquality:
|
51
54
|
Enabled: true
|
55
|
+
AllowOnConstant: false
|
56
|
+
AutoCorrect: true
|
57
|
+
|
58
|
+
Style/CaseLikeIf:
|
59
|
+
Enabled: true
|
60
|
+
AutoCorrect: true
|
52
61
|
|
53
62
|
Style/CharacterLiteral:
|
54
63
|
Enabled: true
|
@@ -63,6 +72,10 @@ Style/ClassCheck:
|
|
63
72
|
Style/ClassMethods:
|
64
73
|
Enabled: true
|
65
74
|
|
75
|
+
Style/ClassMethodsDefinitions:
|
76
|
+
Enabled: false
|
77
|
+
EnforcedStyle: self_class
|
78
|
+
|
66
79
|
Style/ClassVars:
|
67
80
|
Enabled: true
|
68
81
|
|
@@ -75,6 +88,9 @@ Style/ColonMethodCall:
|
|
75
88
|
Style/ColonMethodDefinition:
|
76
89
|
Enabled: true
|
77
90
|
|
91
|
+
Style/CombinableLoops:
|
92
|
+
Enabled: false
|
93
|
+
|
78
94
|
Style/CommandLiteral:
|
79
95
|
Enabled: false
|
80
96
|
|
@@ -96,6 +112,7 @@ Style/Copyright:
|
|
96
112
|
Style/DateTime:
|
97
113
|
Enabled: false
|
98
114
|
AllowCoercion: false
|
115
|
+
AutoCorrect: false
|
99
116
|
|
100
117
|
Style/DefWithParentheses:
|
101
118
|
Enabled: true
|
@@ -162,6 +179,9 @@ Style/ExponentialNotation:
|
|
162
179
|
Enabled: true
|
163
180
|
EnforcedStyle: scientific
|
164
181
|
|
182
|
+
Style/ExplicitBlockArgument:
|
183
|
+
Enabled: true
|
184
|
+
|
165
185
|
Style/FloatDivision:
|
166
186
|
Enabled: false
|
167
187
|
|
@@ -186,10 +206,22 @@ Style/GlobalVars:
|
|
186
206
|
Enabled: true
|
187
207
|
AllowedVariables: []
|
188
208
|
|
209
|
+
Style/GlobalStdStream:
|
210
|
+
Enabled: false
|
211
|
+
|
189
212
|
Style/GuardClause:
|
190
213
|
Enabled: false
|
191
214
|
MinBodyLength: 1
|
192
215
|
|
216
|
+
Style/HashAsLastArrayItem:
|
217
|
+
Enabled: true
|
218
|
+
EnforcedStyle: braces
|
219
|
+
AutoCorrect: true
|
220
|
+
|
221
|
+
Style/HashLikeCase:
|
222
|
+
Enabled: false
|
223
|
+
MinBranchesCount: 4
|
224
|
+
|
193
225
|
Style/HashEachMethods:
|
194
226
|
Enabled: true
|
195
227
|
|
@@ -238,6 +270,9 @@ Style/InverseMethods:
|
|
238
270
|
Style/IpAddresses:
|
239
271
|
Enabled: false
|
240
272
|
|
273
|
+
Style/KeywordParametersOrder:
|
274
|
+
Enabled: false
|
275
|
+
|
241
276
|
Style/Lambda:
|
242
277
|
Enabled: true
|
243
278
|
EnforcedStyle: line_count_dependent
|
@@ -262,9 +297,6 @@ Style/MethodDefParentheses:
|
|
262
297
|
Enabled: true
|
263
298
|
EnforcedStyle: require_parentheses
|
264
299
|
|
265
|
-
Style/MethodMissingSuper:
|
266
|
-
Enabled: false
|
267
|
-
|
268
300
|
Style/MinMax:
|
269
301
|
Enabled: true
|
270
302
|
|
@@ -341,7 +373,7 @@ Style/Next:
|
|
341
373
|
|
342
374
|
Style/NilComparison:
|
343
375
|
Enabled: true
|
344
|
-
EnforcedStyle:
|
376
|
+
EnforcedStyle: comparison
|
345
377
|
|
346
378
|
Style/NonNilCheck:
|
347
379
|
Enabled: true
|
@@ -358,9 +390,9 @@ Style/NumericLiterals:
|
|
358
390
|
Enabled: false
|
359
391
|
|
360
392
|
Style/NumericPredicate:
|
361
|
-
Enabled:
|
362
|
-
EnforcedStyle:
|
363
|
-
AutoCorrect:
|
393
|
+
Enabled: false # strongly situative cop
|
394
|
+
EnforcedStyle: comparison
|
395
|
+
AutoCorrect: true
|
364
396
|
IgnoredMethods: []
|
365
397
|
|
366
398
|
Style/OneLineConditional:
|
@@ -372,6 +404,11 @@ Style/OptionHash:
|
|
372
404
|
Style/OptionalArguments:
|
373
405
|
Enabled: true
|
374
406
|
|
407
|
+
Style/OptionalBooleanParameter:
|
408
|
+
Enabled: false
|
409
|
+
AllowedMethods:
|
410
|
+
- respond_to_missing?
|
411
|
+
|
375
412
|
Style/ParallelAssignment:
|
376
413
|
Enabled: false
|
377
414
|
|
@@ -411,6 +448,9 @@ Style/RedundantBegin:
|
|
411
448
|
Style/RedundantConditional:
|
412
449
|
Enabled: true
|
413
450
|
|
451
|
+
Style/RedundantFileExtensionInRequire:
|
452
|
+
Enabled: true
|
453
|
+
|
414
454
|
Style/RedundantFetchBlock:
|
415
455
|
Enabled: true
|
416
456
|
SafeForConstants: true
|
@@ -437,6 +477,9 @@ Style/RedundantReturn:
|
|
437
477
|
Style/RedundantSelf:
|
438
478
|
Enabled: true
|
439
479
|
|
480
|
+
Style/RedundantSelfAssignment:
|
481
|
+
Enabled: false
|
482
|
+
|
440
483
|
Style/RedundantSortBy:
|
441
484
|
Enabled: true
|
442
485
|
|
@@ -473,6 +516,9 @@ Style/SignalException:
|
|
473
516
|
Enabled: true
|
474
517
|
EnforcedStyle: only_raise
|
475
518
|
|
519
|
+
Style/SingleArgumentDig:
|
520
|
+
Enabled: true
|
521
|
+
|
476
522
|
Style/SingleLineBlockParams:
|
477
523
|
Enabled: false
|
478
524
|
|
@@ -495,6 +541,9 @@ Style/StabbyLambdaParentheses:
|
|
495
541
|
Style/StderrPuts:
|
496
542
|
Enabled: true
|
497
543
|
|
544
|
+
Style/StringConcatenation:
|
545
|
+
Enabled: true
|
546
|
+
|
498
547
|
Style/StringHashKeys:
|
499
548
|
Enabled: false
|
500
549
|
|
@@ -555,6 +604,7 @@ Style/TrailingCommaInBlockArgs:
|
|
555
604
|
Style/TrailingCommaInHashLiteral:
|
556
605
|
Enabled: true
|
557
606
|
EnforcedStyleForMultiline: no_comma
|
607
|
+
AutoCorrect: true
|
558
608
|
|
559
609
|
Style/TrailingMethodEndStatement:
|
560
610
|
Enabled: true
|
@@ -584,6 +634,10 @@ Style/RedundantPercentQ:
|
|
584
634
|
Style/RedundantSort:
|
585
635
|
Enabled: true
|
586
636
|
|
637
|
+
Style/SoleNestedConditional:
|
638
|
+
Enabled: true
|
639
|
+
AllowModifier: true
|
640
|
+
|
587
641
|
Style/UnpackFirst:
|
588
642
|
Enabled: true
|
589
643
|
|
data/lib/rspec/rspec.yml
CHANGED
@@ -160,6 +160,9 @@ RSpec/MultipleDescribes:
|
|
160
160
|
RSpec/MultipleExpectations:
|
161
161
|
Enabled: false
|
162
162
|
|
163
|
+
RSpec/MultipleMemoizedHelpers:
|
164
|
+
Enabled: false
|
165
|
+
|
163
166
|
RSpec/MultipleSubjects:
|
164
167
|
Enabled: true
|
165
168
|
|
@@ -240,6 +243,7 @@ RSpec/VariableDefinition:
|
|
240
243
|
RSpec/VariableName:
|
241
244
|
Enabled: true
|
242
245
|
EnforcedStyle: snake_case
|
246
|
+
IgnoredPatterns: []
|
243
247
|
|
244
248
|
RSpec/VerifiedDoubles:
|
245
249
|
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.92.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-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.92.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.92.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.
|
33
|
+
version: 1.8.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.
|
40
|
+
version: 1.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.8.1
|
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.8.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.43.2
|
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.43.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|