armitage-rubocop 0.88.0 → 0.93.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 +62 -4
- data/lib/common/performance.yml +7 -0
- data/lib/common/rails.yml +61 -0
- data/lib/common/style.yml +48 -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: 78e11ada119f145b98a39b8d45bd500f817ba503ffc7f30d6389b727742a476a
|
4
|
+
data.tar.gz: 5d7ea304c8de4e190a2acaa9c11a5974251da4a21525fb19dc3f5d4c4a5744c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02bd62021abbde7aa28af11c8aecfb1eed5fe6e46db86c04bf832755335c2fcf4d13df6fa6511e5e14c296cfa0f83190fce614eaf61cf7caf19c9de44e3e7582
|
7
|
+
data.tar.gz: 5824ad439f1f9a2ebfacef4448d5dae006c3baa3a10cbda59e44b590de39af11befcfef28d93551db3c306b9e6dab9baa3f32eb6a2c6d16900d4825c553b1602
|
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.93.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.93.1'
|
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: []
|
@@ -50,12 +56,22 @@ Lint/DuplicateHashKey:
|
|
50
56
|
Lint/DuplicateElsifCondition:
|
51
57
|
Enabled: true
|
52
58
|
|
59
|
+
Lint/DuplicateRequire:
|
60
|
+
Enabled: true
|
61
|
+
|
53
62
|
Lint/EachWithObjectArgument:
|
54
63
|
Enabled: true
|
55
64
|
|
65
|
+
Lint/DuplicateRescueException:
|
66
|
+
Enabled: true
|
67
|
+
|
56
68
|
Lint/ElseLayout:
|
57
69
|
Enabled: true
|
58
70
|
|
71
|
+
Lint/EmptyConditionalBody:
|
72
|
+
Enabled: true
|
73
|
+
AllowComments: true
|
74
|
+
|
59
75
|
Lint/EmptyEnsure:
|
60
76
|
Enabled: true
|
61
77
|
AutoCorrect: true
|
@@ -63,6 +79,10 @@ Lint/EmptyEnsure:
|
|
63
79
|
Lint/EmptyExpression:
|
64
80
|
Enabled: true
|
65
81
|
|
82
|
+
Lint/EmptyFile:
|
83
|
+
Enabled: true
|
84
|
+
AllowComments: true
|
85
|
+
|
66
86
|
Lint/EmptyInterpolation:
|
67
87
|
Enabled: true
|
68
88
|
|
@@ -72,7 +92,6 @@ Lint/EmptyWhen:
|
|
72
92
|
|
73
93
|
Lint/EnsureReturn:
|
74
94
|
Enabled: true
|
75
|
-
AutoCorrect: false
|
76
95
|
|
77
96
|
Lint/ErbNewArguments:
|
78
97
|
Enabled: true
|
@@ -84,10 +103,13 @@ Lint/FlipFlop:
|
|
84
103
|
Lint/FloatOutOfRange:
|
85
104
|
Enabled: true
|
86
105
|
|
106
|
+
Lint/FloatComparison:
|
107
|
+
Enabled: false
|
108
|
+
|
87
109
|
Lint/FormatParameterMismatch:
|
88
110
|
Enabled: true
|
89
111
|
|
90
|
-
|
112
|
+
Lint/SelfAssignment:
|
91
113
|
Enabled: true
|
92
114
|
|
93
115
|
Lint/StructNewOverride:
|
@@ -96,9 +118,15 @@ Lint/StructNewOverride:
|
|
96
118
|
Lint/SuppressedException:
|
97
119
|
Enabled: false
|
98
120
|
|
121
|
+
Lint/HashCompareByIdentity:
|
122
|
+
Enabled: false
|
123
|
+
|
99
124
|
Lint/HeredocMethodCallPosition:
|
100
125
|
Enabled: true
|
101
126
|
|
127
|
+
Lint/IdentityComparison:
|
128
|
+
Enabled: false
|
129
|
+
|
102
130
|
Lint/ImplicitStringConcatenation:
|
103
131
|
Enabled: true
|
104
132
|
|
@@ -121,6 +149,7 @@ Lint/LiteralInInterpolation:
|
|
121
149
|
|
122
150
|
Lint/Loop:
|
123
151
|
Enabled: true
|
152
|
+
AutoCorrect: true
|
124
153
|
|
125
154
|
Lint/MissingCopEnableDirective:
|
126
155
|
Enabled: true
|
@@ -129,6 +158,9 @@ Lint/MixedRegexpCaptureTypes:
|
|
129
158
|
Enabled: true
|
130
159
|
# NOTE: if you use named captures - numbered captures will be ignored. it is bad. validate it.
|
131
160
|
|
161
|
+
Lint/MissingSuper:
|
162
|
+
Enabled: false
|
163
|
+
|
132
164
|
Lint/MultipleComparison:
|
133
165
|
Enabled: true
|
134
166
|
|
@@ -153,6 +185,9 @@ Lint/NumberConversion:
|
|
153
185
|
Lint/OrderedMagicComments:
|
154
186
|
Enabled: true
|
155
187
|
|
188
|
+
Lint/OutOfRangeRegexpRef:
|
189
|
+
Enabled: true
|
190
|
+
|
156
191
|
Lint/ParenthesesAsGroupedExpression:
|
157
192
|
Enabled: true
|
158
193
|
AutoCorrect: true
|
@@ -172,6 +207,16 @@ Lint/RaiseException:
|
|
172
207
|
Lint/RandOne:
|
173
208
|
Enabled: true
|
174
209
|
|
210
|
+
Lint/RedundantSafeNavigation:
|
211
|
+
Enabled: true
|
212
|
+
AllowedMethods:
|
213
|
+
- instance_of?
|
214
|
+
- kind_of?
|
215
|
+
- is_a?
|
216
|
+
- eql?
|
217
|
+
- respond_to?
|
218
|
+
- equal?
|
219
|
+
|
175
220
|
Lint/RedundantWithIndex:
|
176
221
|
Enabled: true
|
177
222
|
|
@@ -229,12 +274,21 @@ Lint/Syntax:
|
|
229
274
|
Lint/ToJSON:
|
230
275
|
Enabled: true
|
231
276
|
|
277
|
+
Lint/TopLevelReturnWithArgument:
|
278
|
+
Enabled: true
|
279
|
+
|
280
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
281
|
+
Enabled: true
|
282
|
+
|
232
283
|
Lint/UnderscorePrefixedVariableName:
|
233
284
|
Enabled: false
|
234
285
|
|
235
286
|
Lint/UnifiedInteger:
|
236
287
|
Enabled: true
|
237
288
|
|
289
|
+
Lint/UnreachableLoop:
|
290
|
+
Enabled: true
|
291
|
+
|
238
292
|
Lint/RedundantCopDisableDirective:
|
239
293
|
Enabled: true
|
240
294
|
|
@@ -279,15 +333,19 @@ Lint/UselessAccessModifier:
|
|
279
333
|
Lint/UselessAssignment:
|
280
334
|
Enabled: true
|
281
335
|
|
282
|
-
Lint/
|
336
|
+
Lint/UselessElseWithoutRescue:
|
283
337
|
Enabled: true
|
284
338
|
|
285
|
-
Lint/
|
339
|
+
Lint/UselessMethodDefinition:
|
286
340
|
Enabled: true
|
341
|
+
AllowComments: true
|
287
342
|
|
288
343
|
Lint/UselessSetterCall:
|
289
344
|
Enabled: true
|
290
345
|
|
346
|
+
Lint/UselessTimes:
|
347
|
+
Enabled: true
|
348
|
+
|
291
349
|
Lint/Void:
|
292
350
|
Enabled: true
|
293
351
|
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
@@ -52,6 +52,8 @@ Style/BlockDelimiters:
|
|
52
52
|
|
53
53
|
Style/CaseEquality:
|
54
54
|
Enabled: true
|
55
|
+
AllowOnConstant: false
|
56
|
+
AutoCorrect: true
|
55
57
|
|
56
58
|
Style/CaseLikeIf:
|
57
59
|
Enabled: true
|
@@ -67,9 +69,20 @@ Style/ClassCheck:
|
|
67
69
|
Enabled: true
|
68
70
|
EnforcedStyle: is_a?
|
69
71
|
|
72
|
+
Style/ClassEqualityComparison:
|
73
|
+
Enabled: true
|
74
|
+
IgnoredMethods:
|
75
|
+
- ==
|
76
|
+
- equal?
|
77
|
+
- eql?
|
78
|
+
|
70
79
|
Style/ClassMethods:
|
71
80
|
Enabled: true
|
72
81
|
|
82
|
+
Style/ClassMethodsDefinitions:
|
83
|
+
Enabled: false
|
84
|
+
EnforcedStyle: self_class
|
85
|
+
|
73
86
|
Style/ClassVars:
|
74
87
|
Enabled: true
|
75
88
|
|
@@ -82,6 +95,9 @@ Style/ColonMethodCall:
|
|
82
95
|
Style/ColonMethodDefinition:
|
83
96
|
Enabled: true
|
84
97
|
|
98
|
+
Style/CombinableLoops:
|
99
|
+
Enabled: false
|
100
|
+
|
85
101
|
Style/CommandLiteral:
|
86
102
|
Enabled: false
|
87
103
|
|
@@ -103,6 +119,7 @@ Style/Copyright:
|
|
103
119
|
Style/DateTime:
|
104
120
|
Enabled: false
|
105
121
|
AllowCoercion: false
|
122
|
+
AutoCorrect: false
|
106
123
|
|
107
124
|
Style/DefWithParentheses:
|
108
125
|
Enabled: true
|
@@ -169,6 +186,9 @@ Style/ExponentialNotation:
|
|
169
186
|
Enabled: true
|
170
187
|
EnforcedStyle: scientific
|
171
188
|
|
189
|
+
Style/ExplicitBlockArgument:
|
190
|
+
Enabled: true
|
191
|
+
|
172
192
|
Style/FloatDivision:
|
173
193
|
Enabled: false
|
174
194
|
|
@@ -193,6 +213,9 @@ Style/GlobalVars:
|
|
193
213
|
Enabled: true
|
194
214
|
AllowedVariables: []
|
195
215
|
|
216
|
+
Style/GlobalStdStream:
|
217
|
+
Enabled: false
|
218
|
+
|
196
219
|
Style/GuardClause:
|
197
220
|
Enabled: false
|
198
221
|
MinBodyLength: 1
|
@@ -254,6 +277,9 @@ Style/InverseMethods:
|
|
254
277
|
Style/IpAddresses:
|
255
278
|
Enabled: false
|
256
279
|
|
280
|
+
Style/KeywordParametersOrder:
|
281
|
+
Enabled: false
|
282
|
+
|
257
283
|
Style/Lambda:
|
258
284
|
Enabled: true
|
259
285
|
EnforcedStyle: line_count_dependent
|
@@ -278,9 +304,6 @@ Style/MethodDefParentheses:
|
|
278
304
|
Enabled: true
|
279
305
|
EnforcedStyle: require_parentheses
|
280
306
|
|
281
|
-
Style/MethodMissingSuper:
|
282
|
-
Enabled: false
|
283
|
-
|
284
307
|
Style/MinMax:
|
285
308
|
Enabled: true
|
286
309
|
|
@@ -357,7 +380,7 @@ Style/Next:
|
|
357
380
|
|
358
381
|
Style/NilComparison:
|
359
382
|
Enabled: true
|
360
|
-
EnforcedStyle:
|
383
|
+
EnforcedStyle: comparison
|
361
384
|
|
362
385
|
Style/NonNilCheck:
|
363
386
|
Enabled: true
|
@@ -374,9 +397,9 @@ Style/NumericLiterals:
|
|
374
397
|
Enabled: false
|
375
398
|
|
376
399
|
Style/NumericPredicate:
|
377
|
-
Enabled:
|
378
|
-
EnforcedStyle:
|
379
|
-
AutoCorrect:
|
400
|
+
Enabled: false # strongly situative cop
|
401
|
+
EnforcedStyle: comparison
|
402
|
+
AutoCorrect: true
|
380
403
|
IgnoredMethods: []
|
381
404
|
|
382
405
|
Style/OneLineConditional:
|
@@ -388,6 +411,11 @@ Style/OptionHash:
|
|
388
411
|
Style/OptionalArguments:
|
389
412
|
Enabled: true
|
390
413
|
|
414
|
+
Style/OptionalBooleanParameter:
|
415
|
+
Enabled: false
|
416
|
+
AllowedMethods:
|
417
|
+
- respond_to_missing?
|
418
|
+
|
391
419
|
Style/ParallelAssignment:
|
392
420
|
Enabled: false
|
393
421
|
|
@@ -456,6 +484,9 @@ Style/RedundantReturn:
|
|
456
484
|
Style/RedundantSelf:
|
457
485
|
Enabled: true
|
458
486
|
|
487
|
+
Style/RedundantSelfAssignment:
|
488
|
+
Enabled: false
|
489
|
+
|
459
490
|
Style/RedundantSortBy:
|
460
491
|
Enabled: true
|
461
492
|
|
@@ -492,6 +523,9 @@ Style/SignalException:
|
|
492
523
|
Enabled: true
|
493
524
|
EnforcedStyle: only_raise
|
494
525
|
|
526
|
+
Style/SingleArgumentDig:
|
527
|
+
Enabled: true
|
528
|
+
|
495
529
|
Style/SingleLineBlockParams:
|
496
530
|
Enabled: false
|
497
531
|
|
@@ -514,6 +548,9 @@ Style/StabbyLambdaParentheses:
|
|
514
548
|
Style/StderrPuts:
|
515
549
|
Enabled: true
|
516
550
|
|
551
|
+
Style/StringConcatenation:
|
552
|
+
Enabled: true
|
553
|
+
|
517
554
|
Style/StringHashKeys:
|
518
555
|
Enabled: false
|
519
556
|
|
@@ -604,6 +641,10 @@ Style/RedundantPercentQ:
|
|
604
641
|
Style/RedundantSort:
|
605
642
|
Enabled: true
|
606
643
|
|
644
|
+
Style/SoleNestedConditional:
|
645
|
+
Enabled: true
|
646
|
+
AllowModifier: true
|
647
|
+
|
607
648
|
Style/UnpackFirst:
|
608
649
|
Enabled: true
|
609
650
|
|
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.93.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-10-17 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.93.1
|
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.93.1
|
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
|