webit-ruby-rubocop 3.1.17 → 3.1.18
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/cops/lint.yml +6 -0
- data/cops/style.yml +30 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3220597254c8e8de4627aec50951506d2f952057d20ae5b51c15d419e65388b0
|
|
4
|
+
data.tar.gz: '0489da655ca8999aa6f4ba3df2fca4054fc8ce5858d8f52ef380bffee1e900e8'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd7abd35dd5724ff4912f1d8f18a6dde02cdab9f155312241281fb630fb1b4610b2cd6975cf023602b53901b741f348a04341e8af1579e073fca35f19aa58e71
|
|
7
|
+
data.tar.gz: a500e0d30e80468103fa6bcc8eb8a75e35e4208f6fce82260ae0a94ad4356ffff87e8a7038037d5e5039f10cb063b41aff6cc840a24e09729f0041514d5a7de7
|
data/cops/lint.yml
CHANGED
|
@@ -19,6 +19,9 @@ Lint/ConstantReassignment:
|
|
|
19
19
|
Lint/CopDirectiveSyntax:
|
|
20
20
|
Enabled: true
|
|
21
21
|
|
|
22
|
+
Lint/DataDefineOverride:
|
|
23
|
+
Enabled: true
|
|
24
|
+
|
|
22
25
|
Lint/DeprecatedConstants:
|
|
23
26
|
Enabled: true
|
|
24
27
|
|
|
@@ -139,6 +142,9 @@ Lint/UnmodifiedReduceAccumulator:
|
|
|
139
142
|
Lint/UnreachableCode:
|
|
140
143
|
Enabled: true
|
|
141
144
|
|
|
145
|
+
Lint/UnreachablePatternBranch:
|
|
146
|
+
Enabled: true
|
|
147
|
+
|
|
142
148
|
Lint/UselessConstantScoping:
|
|
143
149
|
Enabled: true
|
|
144
150
|
|
data/cops/style.yml
CHANGED
|
@@ -106,6 +106,9 @@ Style/FileEmpty:
|
|
|
106
106
|
Style/FileNull:
|
|
107
107
|
Enabled: true
|
|
108
108
|
|
|
109
|
+
Style/FileOpen:
|
|
110
|
+
Enabled: true
|
|
111
|
+
|
|
109
112
|
Style/FileRead:
|
|
110
113
|
Enabled: true
|
|
111
114
|
|
|
@@ -191,6 +194,9 @@ Style/MapCompactWithConditionalBlock:
|
|
|
191
194
|
Style/MapIntoArray:
|
|
192
195
|
Enabled: true
|
|
193
196
|
|
|
197
|
+
Style/MapJoin:
|
|
198
|
+
Enabled: true
|
|
199
|
+
|
|
194
200
|
Style/MapToHash:
|
|
195
201
|
Enabled: true
|
|
196
202
|
|
|
@@ -231,6 +237,9 @@ Style/NumberedParametersLimit:
|
|
|
231
237
|
Style/ObjectThen:
|
|
232
238
|
Enabled: true
|
|
233
239
|
|
|
240
|
+
Style/OneClassPerFile:
|
|
241
|
+
Enabled: true
|
|
242
|
+
|
|
234
243
|
Style/OneLineConditional:
|
|
235
244
|
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
|
236
245
|
Enabled: false
|
|
@@ -250,12 +259,21 @@ Style/ParenthesesAroundCondition:
|
|
|
250
259
|
AllowInMultilineConditions: true
|
|
251
260
|
AllowSafeAssignment: true
|
|
252
261
|
|
|
262
|
+
Style/PartitionInsteadOfDoubleSelect:
|
|
263
|
+
Enabled: true
|
|
264
|
+
|
|
253
265
|
Style/PercentLiteralDelimiters:
|
|
254
266
|
Enabled: false
|
|
255
267
|
|
|
268
|
+
Style/PredicateWithKind:
|
|
269
|
+
Enabled: true
|
|
270
|
+
|
|
256
271
|
Style/QuotedSymbols:
|
|
257
272
|
Enabled: true
|
|
258
273
|
|
|
274
|
+
Style/ReduceToHash:
|
|
275
|
+
Enabled: true
|
|
276
|
+
|
|
259
277
|
Style/RedundantArgument:
|
|
260
278
|
Enabled: true
|
|
261
279
|
|
|
@@ -304,6 +322,9 @@ Style/RedundantInterpolationUnfreeze:
|
|
|
304
322
|
Style/RedundantLineContinuation:
|
|
305
323
|
Enabled: true
|
|
306
324
|
|
|
325
|
+
Style/RedundantMinMaxBy:
|
|
326
|
+
Enabled: true
|
|
327
|
+
|
|
307
328
|
Style/RedundantRegexpArgument:
|
|
308
329
|
Enabled: true
|
|
309
330
|
|
|
@@ -335,6 +356,12 @@ Style/ReverseFind:
|
|
|
335
356
|
Style/SafeNavigationChainLength:
|
|
336
357
|
Enabled: true
|
|
337
358
|
|
|
359
|
+
Style/SelectByKind:
|
|
360
|
+
Enabled: true
|
|
361
|
+
|
|
362
|
+
Style/SelectByRange:
|
|
363
|
+
Enabled: true
|
|
364
|
+
|
|
338
365
|
Style/SelectByRegexp:
|
|
339
366
|
Enabled: true
|
|
340
367
|
|
|
@@ -371,6 +398,9 @@ Style/SuperWithArgsParentheses:
|
|
|
371
398
|
Style/SwapValues:
|
|
372
399
|
Enabled: true
|
|
373
400
|
|
|
401
|
+
Style/TallyMethod:
|
|
402
|
+
Enabled: true
|
|
403
|
+
|
|
374
404
|
Style/WhileUntilModifier:
|
|
375
405
|
Enabled: false
|
|
376
406
|
|