rubocop-able 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/bundle.yml +231 -14
- data/config/default.yml +219 -10
- data/config/rails.yml +12 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47114c17773465461dbdd38ae9a9a45da1d120c68e26aa8b4a56a601cf2d1a9b
|
4
|
+
data.tar.gz: 0ecec6e20c741e8499e38b749e371893a077858eede259f3d291036a4779d0da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da0ec4a0a064e79640e32950186bc9c6e6e82d94c4c0cdaadaffae195037e1751e8fcd3d6f444125d4f3f298006f6a165a2849314268402e941692a1bfe226e
|
7
|
+
data.tar.gz: 41e028a4c5be1a6e97110633dfe64aa4c8dcd18b636389e33738e1bf01bc90ad89eda9ce42933f65dee8c9ce71352140785ea6e4c0cb9d46de7765ccb2083f57
|
data/config/bundle.yml
CHANGED
@@ -10,11 +10,32 @@ AllCops:
|
|
10
10
|
- db/schema.rb
|
11
11
|
DisabledByDefault: true
|
12
12
|
|
13
|
+
Bundler/DuplicatedGem:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Bundler/InsecureProtocolSource:
|
17
|
+
Enabled: true
|
18
|
+
|
13
19
|
Layout/AccessModifierIndentation:
|
14
20
|
EnforcedStyle: indent
|
15
21
|
|
22
|
+
Layout/ArgumentAlignment:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Layout/ArrayAlignment:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
Layout/BeginEndAlignment:
|
29
|
+
Enabled: true
|
30
|
+
|
16
31
|
Layout/BlockAlignment:
|
17
|
-
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Layout/BlockEndNewline:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Layout/ClosingParenthesisIndentation:
|
38
|
+
Enabled: true
|
18
39
|
|
19
40
|
Layout/DefEndAlignment:
|
20
41
|
EnforcedStyleAlignWith: start_of_line
|
@@ -29,6 +50,9 @@ Layout/EmptyLineBetweenDefs:
|
|
29
50
|
Enabled: true
|
30
51
|
NumberOfEmptyLines: 1
|
31
52
|
|
53
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
54
|
+
Enabled: true
|
55
|
+
|
32
56
|
Layout/EmptyLinesAroundBlockBody:
|
33
57
|
EnforcedStyle: no_empty_lines
|
34
58
|
|
@@ -44,24 +68,66 @@ Layout/EndAlignment:
|
|
44
68
|
Layout/ExtraSpacing:
|
45
69
|
AllowForAlignment: true
|
46
70
|
|
47
|
-
Layout/
|
71
|
+
Layout/FirstArgumentIndentation:
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Layout/FirstArrayElementIndentation:
|
48
75
|
EnforcedStyle: consistent
|
49
76
|
|
50
|
-
Layout/
|
77
|
+
Layout/FirstHashElementIndentation:
|
51
78
|
EnforcedStyle: consistent
|
52
79
|
|
80
|
+
Layout/FirstParameterIndentation:
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
Layout/HashAlignment:
|
84
|
+
Enabled: true
|
85
|
+
|
53
86
|
Layout/IndentationConsistency:
|
54
87
|
EnforcedStyle: normal
|
55
88
|
|
89
|
+
Layout/IndentationStyle:
|
90
|
+
Enabled: true
|
91
|
+
|
56
92
|
Layout/IndentationWidth:
|
93
|
+
Enabled: true
|
57
94
|
Width: 2
|
58
95
|
|
96
|
+
Layout/LineLength:
|
97
|
+
IgnoredPatterns: [(\A|\s)#]
|
98
|
+
Max: 100
|
99
|
+
|
100
|
+
Layout/MultilineArrayLineBreaks:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Layout/MultilineBlockLayout:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Layout/MultilineHashBraceLayout:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Layout/MultilineHashKeyLineBreaks:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
113
|
+
Enabled: true
|
114
|
+
|
115
|
+
Layout/MultilineMethodCallIndentation:
|
116
|
+
Enabled: true
|
117
|
+
EnforcedStyle: indented_relative_to_receiver
|
118
|
+
|
119
|
+
Layout/ParameterAlignment:
|
120
|
+
Enabled: true
|
121
|
+
|
59
122
|
Layout/SpaceAroundBlockParameters:
|
60
123
|
EnforcedStyleInsidePipes: no_space
|
61
124
|
|
62
125
|
Layout/SpaceAroundEqualsInParameterDefault:
|
63
126
|
EnforcedStyle: space
|
64
127
|
|
128
|
+
Layout/SpaceAroundMethodCallOperator:
|
129
|
+
Enabled: true
|
130
|
+
|
65
131
|
Layout/SpaceAroundOperators:
|
66
132
|
Enabled: true
|
67
133
|
|
@@ -85,36 +151,113 @@ Layout/SpaceInsideReferenceBrackets:
|
|
85
151
|
Layout/SpaceInsideStringInterpolation:
|
86
152
|
EnforcedStyle: no_space
|
87
153
|
|
88
|
-
Layout/
|
154
|
+
Layout/TrailingEmptyLines:
|
89
155
|
Enabled: true
|
90
156
|
|
91
157
|
Layout/TrailingWhitespace:
|
92
158
|
Enabled: true
|
93
159
|
|
160
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
161
|
+
Enabled: true
|
162
|
+
|
163
|
+
Lint/ConstantDefinitionInBlock:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
Lint/Debugger:
|
167
|
+
Enabled: true
|
168
|
+
|
169
|
+
Lint/DeprecatedOpenSSLConstant:
|
170
|
+
Enabled: true
|
171
|
+
|
172
|
+
Lint/DuplicateElsifCondition:
|
173
|
+
Enabled: true
|
174
|
+
|
175
|
+
Lint/DuplicateRequire:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
Lint/DuplicateRescueException:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
Lint/EmptyConditionalBody:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
Lint/EmptyFile:
|
185
|
+
Enabled: true
|
186
|
+
|
187
|
+
Lint/FloatComparison:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
Lint/IdentityComparison:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
Lint/MissingSuper:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
Lint/MixedRegexpCaptureTypes:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
Lint/OutOfRangeRegexpRef:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
Lint/RaiseException:
|
203
|
+
Enabled: true
|
204
|
+
|
94
205
|
Lint/SafeNavigationChain:
|
95
206
|
Enabled: true
|
96
207
|
|
208
|
+
Lint/SelfAssignment:
|
209
|
+
Enabled: true
|
210
|
+
|
97
211
|
Lint/ShadowedArgument:
|
98
212
|
Enabled: true
|
99
213
|
|
214
|
+
Lint/StructNewOverride:
|
215
|
+
Enabled: true
|
216
|
+
|
217
|
+
Lint/TopLevelReturnWithArgument:
|
218
|
+
Enabled: true
|
219
|
+
|
220
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
221
|
+
Enabled: true
|
222
|
+
|
223
|
+
Lint/UnreachableLoop:
|
224
|
+
Enabled: true
|
225
|
+
|
100
226
|
Lint/UnusedBlockArgument:
|
101
227
|
Enabled: true
|
102
228
|
|
103
229
|
Lint/UnusedMethodArgument:
|
104
230
|
Enabled: true
|
105
231
|
|
106
|
-
|
107
|
-
|
108
|
-
|
232
|
+
Lint/UselessMethodDefinition:
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
Naming/PredicateName:
|
236
|
+
Enabled: true
|
109
237
|
|
110
238
|
Naming/VariableName:
|
111
239
|
EnforcedStyle: snake_case
|
112
240
|
|
241
|
+
Style/AccessorGrouping:
|
242
|
+
Enabled: true
|
243
|
+
|
244
|
+
Style/ArrayCoercion:
|
245
|
+
Enabled: true
|
246
|
+
|
247
|
+
Style/BisectedAttrAccessor:
|
248
|
+
Enabled: true
|
249
|
+
|
113
250
|
Style/BlockDelimiters:
|
114
|
-
|
251
|
+
Enabled: true
|
252
|
+
|
253
|
+
Style/CaseLikeIf:
|
254
|
+
Enabled: true
|
255
|
+
|
256
|
+
Style/CombinableLoops:
|
257
|
+
Enabled: true
|
115
258
|
|
116
|
-
Style/
|
117
|
-
|
259
|
+
Style/DateTime:
|
260
|
+
Enabled: true
|
118
261
|
|
119
262
|
Style/EmptyElse:
|
120
263
|
EnforcedStyle: both
|
@@ -122,12 +265,42 @@ Style/EmptyElse:
|
|
122
265
|
Style/EmptyMethod:
|
123
266
|
EnforcedStyle: expanded
|
124
267
|
|
268
|
+
Style/ExplicitBlockArgument:
|
269
|
+
Enabled: true
|
270
|
+
|
271
|
+
Style/ExponentialNotation:
|
272
|
+
Enabled: true
|
273
|
+
|
274
|
+
Style/GlobalStdStream:
|
275
|
+
Enabled: true
|
276
|
+
|
125
277
|
Style/GlobalVars:
|
126
278
|
AllowedVariables: ["$rollout"]
|
127
279
|
|
280
|
+
Style/HashAsLastArrayItem:
|
281
|
+
Enabled: true
|
282
|
+
|
283
|
+
Style/HashEachMethods:
|
284
|
+
Enabled: true
|
285
|
+
|
286
|
+
Style/HashLikeCase:
|
287
|
+
Enabled: true
|
288
|
+
|
128
289
|
Style/HashSyntax:
|
129
290
|
EnforcedStyle: ruby19_no_mixed_keys
|
130
291
|
|
292
|
+
Style/HashTransformKeys:
|
293
|
+
Enabled: true
|
294
|
+
|
295
|
+
Style/HashTransformValues:
|
296
|
+
Enabled: true
|
297
|
+
|
298
|
+
Style/IfUnlessModifier:
|
299
|
+
Enabled: true
|
300
|
+
|
301
|
+
Style/KeywordParametersOrder:
|
302
|
+
Enabled: true
|
303
|
+
|
131
304
|
Style/MethodDefParentheses:
|
132
305
|
EnforcedStyle: require_parentheses
|
133
306
|
|
@@ -135,18 +308,54 @@ Style/NumericLiterals:
|
|
135
308
|
MinDigits: 5
|
136
309
|
Strict: false
|
137
310
|
|
311
|
+
Style/NumericPredicate:
|
312
|
+
Enabled: true
|
313
|
+
|
314
|
+
Style/OptionalBooleanParameter:
|
315
|
+
Enabled: true
|
316
|
+
|
317
|
+
Style/RedundantAssignment:
|
318
|
+
Enabled: true
|
319
|
+
|
320
|
+
Style/RedundantFetchBlock:
|
321
|
+
Enabled: true
|
322
|
+
|
323
|
+
Style/RedundantFileExtensionInRequire:
|
324
|
+
Enabled: true
|
325
|
+
|
326
|
+
Style/RedundantRegexpCharacterClass:
|
327
|
+
Enabled: true
|
328
|
+
|
329
|
+
Style/RedundantRegexpEscape:
|
330
|
+
Enabled: true
|
331
|
+
|
138
332
|
Style/RedundantReturn:
|
139
333
|
Enabled: true
|
140
334
|
|
335
|
+
Style/RedundantSelfAssignment:
|
336
|
+
Enabled: true
|
337
|
+
|
141
338
|
Style/Semicolon:
|
142
339
|
Enabled: true
|
143
340
|
|
341
|
+
Style/SingleArgumentDig:
|
342
|
+
Enabled: true
|
343
|
+
|
144
344
|
Style/SingleLineMethods:
|
145
345
|
Enabled: true
|
146
346
|
|
347
|
+
Style/SlicingWithRange:
|
348
|
+
Enabled: true
|
349
|
+
|
350
|
+
Style/SoleNestedConditional:
|
351
|
+
Enabled: true
|
352
|
+
|
147
353
|
Style/StabbyLambdaParentheses:
|
148
354
|
EnforcedStyle: require_parentheses
|
149
355
|
|
356
|
+
Style/StringConcatenation:
|
357
|
+
Enabled: true
|
358
|
+
|
150
359
|
Style/StringLiterals:
|
151
360
|
EnforcedStyle: double_quotes
|
152
361
|
|
@@ -162,10 +371,18 @@ Style/TrailingCommaInArrayLiteral:
|
|
162
371
|
Style/TrailingCommaInHashLiteral:
|
163
372
|
EnforcedStyleForMultiline: no_comma
|
164
373
|
|
165
|
-
Rails/
|
166
|
-
Enabled:
|
167
|
-
|
168
|
-
|
374
|
+
Rails/FindBy:
|
375
|
+
Enabled: true
|
376
|
+
|
377
|
+
Rails/HttpStatus:
|
378
|
+
Enabled: true
|
379
|
+
|
380
|
+
Rails/Pluck:
|
381
|
+
Enabled: true
|
382
|
+
|
383
|
+
Rails/PluckInWhere:
|
384
|
+
Enabled: true
|
385
|
+
EnforcedStyle: aggressive
|
169
386
|
|
170
387
|
Rails/TimeZone:
|
171
388
|
EnforcedStyle: flexible
|
data/config/default.yml
CHANGED
@@ -9,11 +9,32 @@ AllCops:
|
|
9
9
|
- db/schema.rb
|
10
10
|
DisabledByDefault: true
|
11
11
|
|
12
|
+
Bundler/DuplicatedGem:
|
13
|
+
Enabled: true
|
14
|
+
|
15
|
+
Bundler/InsecureProtocolSource:
|
16
|
+
Enabled: true
|
17
|
+
|
12
18
|
Layout/AccessModifierIndentation:
|
13
19
|
EnforcedStyle: indent
|
14
20
|
|
21
|
+
Layout/ArgumentAlignment:
|
22
|
+
Enabled: true
|
23
|
+
|
24
|
+
Layout/ArrayAlignment:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
Layout/BeginEndAlignment:
|
28
|
+
Enabled: true
|
29
|
+
|
15
30
|
Layout/BlockAlignment:
|
16
|
-
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
Layout/BlockEndNewline:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Layout/ClosingParenthesisIndentation:
|
37
|
+
Enabled: true
|
17
38
|
|
18
39
|
Layout/DefEndAlignment:
|
19
40
|
EnforcedStyleAlignWith: start_of_line
|
@@ -28,6 +49,9 @@ Layout/EmptyLineBetweenDefs:
|
|
28
49
|
Enabled: true
|
29
50
|
NumberOfEmptyLines: 1
|
30
51
|
|
52
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
53
|
+
Enabled: true
|
54
|
+
|
31
55
|
Layout/EmptyLinesAroundBlockBody:
|
32
56
|
EnforcedStyle: no_empty_lines
|
33
57
|
|
@@ -43,24 +67,66 @@ Layout/EndAlignment:
|
|
43
67
|
Layout/ExtraSpacing:
|
44
68
|
AllowForAlignment: true
|
45
69
|
|
46
|
-
Layout/
|
70
|
+
Layout/FirstArgumentIndentation:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Layout/FirstArrayElementIndentation:
|
47
74
|
EnforcedStyle: consistent
|
48
75
|
|
49
|
-
Layout/
|
76
|
+
Layout/FirstHashElementIndentation:
|
50
77
|
EnforcedStyle: consistent
|
51
78
|
|
79
|
+
Layout/FirstParameterIndentation:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Layout/HashAlignment:
|
83
|
+
Enabled: true
|
84
|
+
|
52
85
|
Layout/IndentationConsistency:
|
53
86
|
EnforcedStyle: normal
|
54
87
|
|
88
|
+
Layout/IndentationStyle:
|
89
|
+
Enabled: true
|
90
|
+
|
55
91
|
Layout/IndentationWidth:
|
92
|
+
Enabled: true
|
56
93
|
Width: 2
|
57
94
|
|
95
|
+
Layout/LineLength:
|
96
|
+
IgnoredPatterns: [(\A|\s)#]
|
97
|
+
Max: 100
|
98
|
+
|
99
|
+
Layout/MultilineArrayLineBreaks:
|
100
|
+
Enabled: true
|
101
|
+
|
102
|
+
Layout/MultilineBlockLayout:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
Layout/MultilineHashBraceLayout:
|
106
|
+
Enabled: true
|
107
|
+
|
108
|
+
Layout/MultilineHashKeyLineBreaks:
|
109
|
+
Enabled: true
|
110
|
+
|
111
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
112
|
+
Enabled: true
|
113
|
+
|
114
|
+
Layout/MultilineMethodCallIndentation:
|
115
|
+
Enabled: true
|
116
|
+
EnforcedStyle: indented_relative_to_receiver
|
117
|
+
|
118
|
+
Layout/ParameterAlignment:
|
119
|
+
Enabled: true
|
120
|
+
|
58
121
|
Layout/SpaceAroundBlockParameters:
|
59
122
|
EnforcedStyleInsidePipes: no_space
|
60
123
|
|
61
124
|
Layout/SpaceAroundEqualsInParameterDefault:
|
62
125
|
EnforcedStyle: space
|
63
126
|
|
127
|
+
Layout/SpaceAroundMethodCallOperator:
|
128
|
+
Enabled: true
|
129
|
+
|
64
130
|
Layout/SpaceAroundOperators:
|
65
131
|
Enabled: true
|
66
132
|
|
@@ -84,36 +150,113 @@ Layout/SpaceInsideReferenceBrackets:
|
|
84
150
|
Layout/SpaceInsideStringInterpolation:
|
85
151
|
EnforcedStyle: no_space
|
86
152
|
|
87
|
-
Layout/
|
153
|
+
Layout/TrailingEmptyLines:
|
88
154
|
Enabled: true
|
89
155
|
|
90
156
|
Layout/TrailingWhitespace:
|
91
157
|
Enabled: true
|
92
158
|
|
159
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
160
|
+
Enabled: true
|
161
|
+
|
162
|
+
Lint/ConstantDefinitionInBlock:
|
163
|
+
Enabled: true
|
164
|
+
|
165
|
+
Lint/Debugger:
|
166
|
+
Enabled: true
|
167
|
+
|
168
|
+
Lint/DeprecatedOpenSSLConstant:
|
169
|
+
Enabled: true
|
170
|
+
|
171
|
+
Lint/DuplicateElsifCondition:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
Lint/DuplicateRequire:
|
175
|
+
Enabled: true
|
176
|
+
|
177
|
+
Lint/DuplicateRescueException:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
Lint/EmptyConditionalBody:
|
181
|
+
Enabled: true
|
182
|
+
|
183
|
+
Lint/EmptyFile:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
Lint/FloatComparison:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
Lint/IdentityComparison:
|
190
|
+
Enabled: true
|
191
|
+
|
192
|
+
Lint/MissingSuper:
|
193
|
+
Enabled: true
|
194
|
+
|
195
|
+
Lint/MixedRegexpCaptureTypes:
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
Lint/OutOfRangeRegexpRef:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
Lint/RaiseException:
|
202
|
+
Enabled: true
|
203
|
+
|
93
204
|
Lint/SafeNavigationChain:
|
94
205
|
Enabled: true
|
95
206
|
|
207
|
+
Lint/SelfAssignment:
|
208
|
+
Enabled: true
|
209
|
+
|
96
210
|
Lint/ShadowedArgument:
|
97
211
|
Enabled: true
|
98
212
|
|
213
|
+
Lint/StructNewOverride:
|
214
|
+
Enabled: true
|
215
|
+
|
216
|
+
Lint/TopLevelReturnWithArgument:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
220
|
+
Enabled: true
|
221
|
+
|
222
|
+
Lint/UnreachableLoop:
|
223
|
+
Enabled: true
|
224
|
+
|
99
225
|
Lint/UnusedBlockArgument:
|
100
226
|
Enabled: true
|
101
227
|
|
102
228
|
Lint/UnusedMethodArgument:
|
103
229
|
Enabled: true
|
104
230
|
|
105
|
-
|
106
|
-
|
107
|
-
|
231
|
+
Lint/UselessMethodDefinition:
|
232
|
+
Enabled: true
|
233
|
+
|
234
|
+
Naming/PredicateName:
|
235
|
+
Enabled: true
|
108
236
|
|
109
237
|
Naming/VariableName:
|
110
238
|
EnforcedStyle: snake_case
|
111
239
|
|
240
|
+
Style/AccessorGrouping:
|
241
|
+
Enabled: true
|
242
|
+
|
243
|
+
Style/ArrayCoercion:
|
244
|
+
Enabled: true
|
245
|
+
|
246
|
+
Style/BisectedAttrAccessor:
|
247
|
+
Enabled: true
|
248
|
+
|
112
249
|
Style/BlockDelimiters:
|
113
|
-
|
250
|
+
Enabled: true
|
251
|
+
|
252
|
+
Style/CaseLikeIf:
|
253
|
+
Enabled: true
|
254
|
+
|
255
|
+
Style/CombinableLoops:
|
256
|
+
Enabled: true
|
114
257
|
|
115
|
-
Style/
|
116
|
-
|
258
|
+
Style/DateTime:
|
259
|
+
Enabled: true
|
117
260
|
|
118
261
|
Style/EmptyElse:
|
119
262
|
EnforcedStyle: both
|
@@ -121,12 +264,42 @@ Style/EmptyElse:
|
|
121
264
|
Style/EmptyMethod:
|
122
265
|
EnforcedStyle: expanded
|
123
266
|
|
267
|
+
Style/ExplicitBlockArgument:
|
268
|
+
Enabled: true
|
269
|
+
|
270
|
+
Style/ExponentialNotation:
|
271
|
+
Enabled: true
|
272
|
+
|
273
|
+
Style/GlobalStdStream:
|
274
|
+
Enabled: true
|
275
|
+
|
124
276
|
Style/GlobalVars:
|
125
277
|
AllowedVariables: ["$rollout"]
|
126
278
|
|
279
|
+
Style/HashAsLastArrayItem:
|
280
|
+
Enabled: true
|
281
|
+
|
282
|
+
Style/HashEachMethods:
|
283
|
+
Enabled: true
|
284
|
+
|
285
|
+
Style/HashLikeCase:
|
286
|
+
Enabled: true
|
287
|
+
|
127
288
|
Style/HashSyntax:
|
128
289
|
EnforcedStyle: ruby19_no_mixed_keys
|
129
290
|
|
291
|
+
Style/HashTransformKeys:
|
292
|
+
Enabled: true
|
293
|
+
|
294
|
+
Style/HashTransformValues:
|
295
|
+
Enabled: true
|
296
|
+
|
297
|
+
Style/IfUnlessModifier:
|
298
|
+
Enabled: true
|
299
|
+
|
300
|
+
Style/KeywordParametersOrder:
|
301
|
+
Enabled: true
|
302
|
+
|
130
303
|
Style/MethodDefParentheses:
|
131
304
|
EnforcedStyle: require_parentheses
|
132
305
|
|
@@ -134,18 +307,54 @@ Style/NumericLiterals:
|
|
134
307
|
MinDigits: 5
|
135
308
|
Strict: false
|
136
309
|
|
310
|
+
Style/NumericPredicate:
|
311
|
+
Enabled: true
|
312
|
+
|
313
|
+
Style/OptionalBooleanParameter:
|
314
|
+
Enabled: true
|
315
|
+
|
316
|
+
Style/RedundantAssignment:
|
317
|
+
Enabled: true
|
318
|
+
|
319
|
+
Style/RedundantFetchBlock:
|
320
|
+
Enabled: true
|
321
|
+
|
322
|
+
Style/RedundantFileExtensionInRequire:
|
323
|
+
Enabled: true
|
324
|
+
|
325
|
+
Style/RedundantRegexpCharacterClass:
|
326
|
+
Enabled: true
|
327
|
+
|
328
|
+
Style/RedundantRegexpEscape:
|
329
|
+
Enabled: true
|
330
|
+
|
137
331
|
Style/RedundantReturn:
|
138
332
|
Enabled: true
|
139
333
|
|
334
|
+
Style/RedundantSelfAssignment:
|
335
|
+
Enabled: true
|
336
|
+
|
140
337
|
Style/Semicolon:
|
141
338
|
Enabled: true
|
142
339
|
|
340
|
+
Style/SingleArgumentDig:
|
341
|
+
Enabled: true
|
342
|
+
|
143
343
|
Style/SingleLineMethods:
|
144
344
|
Enabled: true
|
145
345
|
|
346
|
+
Style/SlicingWithRange:
|
347
|
+
Enabled: true
|
348
|
+
|
349
|
+
Style/SoleNestedConditional:
|
350
|
+
Enabled: true
|
351
|
+
|
146
352
|
Style/StabbyLambdaParentheses:
|
147
353
|
EnforcedStyle: require_parentheses
|
148
354
|
|
355
|
+
Style/StringConcatenation:
|
356
|
+
Enabled: true
|
357
|
+
|
149
358
|
Style/StringLiterals:
|
150
359
|
EnforcedStyle: double_quotes
|
151
360
|
|
data/config/rails.yml
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
require: rubocop-rails
|
2
2
|
|
3
|
-
Rails/
|
4
|
-
Enabled:
|
5
|
-
|
6
|
-
|
3
|
+
Rails/FindBy:
|
4
|
+
Enabled: true
|
5
|
+
|
6
|
+
Rails/HttpStatus:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
Rails/Pluck:
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
Rails/PluckInWhere:
|
13
|
+
Enabled: true
|
14
|
+
EnforcedStyle: aggressive
|
7
15
|
|
8
16
|
Rails/TimeZone:
|
9
17
|
EnforcedStyle: flexible
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-able
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Able
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.92'
|
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'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.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: 2.
|
40
|
+
version: 2.8.1
|
41
41
|
description: Code style checking for Able Ruby repositories
|
42
42
|
email: engineering@able.co
|
43
43
|
executables: []
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
rubygems_version: 3.1.
|
71
|
+
rubygems_version: 3.1.4
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: RuboCop Able
|