armitage-rubocop 0.87.1.1 → 0.91.0.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 +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 +58 -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: 6b759312f8268f9832a1638da553d0f4e2b5e519463628c18a65ff6b32279f37
|
4
|
+
data.tar.gz: 431102ea68c615df5dfa95bca31d6c69f831d2a2e582f934c312b3711d720fed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a077efb974e8a51eec7f28407c870b93d3d9774a72476569f0969a27e5ee8ced525a1fe916d4553a206bb8432b846ddcbc0bba3c77a286d120dc0a9261955063
|
7
|
+
data.tar.gz: f7a90c55586de8dc921d571467c668c8302545160aa4c321909e8674b788b400f74f01979ba339dac668324fc60ce563f48ca82fa8c262e69e56111bb0cdc2c7
|
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.91.0.1'
|
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.91.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
|
|
@@ -162,6 +178,9 @@ Style/ExponentialNotation:
|
|
162
178
|
Enabled: true
|
163
179
|
EnforcedStyle: scientific
|
164
180
|
|
181
|
+
Style/ExplicitBlockArgument:
|
182
|
+
Enabled: true
|
183
|
+
|
165
184
|
Style/FloatDivision:
|
166
185
|
Enabled: false
|
167
186
|
|
@@ -186,10 +205,22 @@ Style/GlobalVars:
|
|
186
205
|
Enabled: true
|
187
206
|
AllowedVariables: []
|
188
207
|
|
208
|
+
Style/GlobalStdStream:
|
209
|
+
Enabled: false
|
210
|
+
|
189
211
|
Style/GuardClause:
|
190
212
|
Enabled: false
|
191
213
|
MinBodyLength: 1
|
192
214
|
|
215
|
+
Style/HashAsLastArrayItem:
|
216
|
+
Enabled: true
|
217
|
+
EnforcedStyle: braces
|
218
|
+
AutoCorrect: true
|
219
|
+
|
220
|
+
Style/HashLikeCase:
|
221
|
+
Enabled: false
|
222
|
+
MinBranchesCount: 4
|
223
|
+
|
193
224
|
Style/HashEachMethods:
|
194
225
|
Enabled: true
|
195
226
|
|
@@ -238,6 +269,9 @@ Style/InverseMethods:
|
|
238
269
|
Style/IpAddresses:
|
239
270
|
Enabled: false
|
240
271
|
|
272
|
+
Style/KeywordParametersOrder:
|
273
|
+
Enabled: false
|
274
|
+
|
241
275
|
Style/Lambda:
|
242
276
|
Enabled: true
|
243
277
|
EnforcedStyle: line_count_dependent
|
@@ -262,9 +296,6 @@ Style/MethodDefParentheses:
|
|
262
296
|
Enabled: true
|
263
297
|
EnforcedStyle: require_parentheses
|
264
298
|
|
265
|
-
Style/MethodMissingSuper:
|
266
|
-
Enabled: false
|
267
|
-
|
268
299
|
Style/MinMax:
|
269
300
|
Enabled: true
|
270
301
|
|
@@ -341,7 +372,7 @@ Style/Next:
|
|
341
372
|
|
342
373
|
Style/NilComparison:
|
343
374
|
Enabled: true
|
344
|
-
EnforcedStyle:
|
375
|
+
EnforcedStyle: comparison
|
345
376
|
|
346
377
|
Style/NonNilCheck:
|
347
378
|
Enabled: true
|
@@ -358,9 +389,9 @@ Style/NumericLiterals:
|
|
358
389
|
Enabled: false
|
359
390
|
|
360
391
|
Style/NumericPredicate:
|
361
|
-
Enabled:
|
362
|
-
EnforcedStyle:
|
363
|
-
AutoCorrect:
|
392
|
+
Enabled: false # strongly situative cop
|
393
|
+
EnforcedStyle: comparison
|
394
|
+
AutoCorrect: true
|
364
395
|
IgnoredMethods: []
|
365
396
|
|
366
397
|
Style/OneLineConditional:
|
@@ -372,6 +403,9 @@ Style/OptionHash:
|
|
372
403
|
Style/OptionalArguments:
|
373
404
|
Enabled: true
|
374
405
|
|
406
|
+
Style/OptionalBooleanParameter:
|
407
|
+
Enabled: false
|
408
|
+
|
375
409
|
Style/ParallelAssignment:
|
376
410
|
Enabled: false
|
377
411
|
|
@@ -411,6 +445,9 @@ Style/RedundantBegin:
|
|
411
445
|
Style/RedundantConditional:
|
412
446
|
Enabled: true
|
413
447
|
|
448
|
+
Style/RedundantFileExtensionInRequire:
|
449
|
+
Enabled: true
|
450
|
+
|
414
451
|
Style/RedundantFetchBlock:
|
415
452
|
Enabled: true
|
416
453
|
SafeForConstants: true
|
@@ -437,6 +474,9 @@ Style/RedundantReturn:
|
|
437
474
|
Style/RedundantSelf:
|
438
475
|
Enabled: true
|
439
476
|
|
477
|
+
Style/RedundantSelfAssignment:
|
478
|
+
Enabled: false
|
479
|
+
|
440
480
|
Style/RedundantSortBy:
|
441
481
|
Enabled: true
|
442
482
|
|
@@ -473,6 +513,9 @@ Style/SignalException:
|
|
473
513
|
Enabled: true
|
474
514
|
EnforcedStyle: only_raise
|
475
515
|
|
516
|
+
Style/SingleArgumentDig:
|
517
|
+
Enabled: true
|
518
|
+
|
476
519
|
Style/SingleLineBlockParams:
|
477
520
|
Enabled: false
|
478
521
|
|
@@ -495,6 +538,9 @@ Style/StabbyLambdaParentheses:
|
|
495
538
|
Style/StderrPuts:
|
496
539
|
Enabled: true
|
497
540
|
|
541
|
+
Style/StringConcatenation:
|
542
|
+
Enabled: true
|
543
|
+
|
498
544
|
Style/StringHashKeys:
|
499
545
|
Enabled: false
|
500
546
|
|
@@ -555,6 +601,7 @@ Style/TrailingCommaInBlockArgs:
|
|
555
601
|
Style/TrailingCommaInHashLiteral:
|
556
602
|
Enabled: true
|
557
603
|
EnforcedStyleForMultiline: no_comma
|
604
|
+
AutoCorrect: true
|
558
605
|
|
559
606
|
Style/TrailingMethodEndStatement:
|
560
607
|
Enabled: true
|
@@ -584,6 +631,10 @@ Style/RedundantPercentQ:
|
|
584
631
|
Style/RedundantSort:
|
585
632
|
Enabled: true
|
586
633
|
|
634
|
+
Style/SoleNestedConditional:
|
635
|
+
Enabled: true
|
636
|
+
AllowModifier: true
|
637
|
+
|
587
638
|
Style/UnpackFirst:
|
588
639
|
Enabled: true
|
589
640
|
|
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.91.0.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
|
+
date: 2020-09-21 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.91.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.91.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
|