simplycop 1.14.6 → 1.14.7
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/.simplycop.yml +9 -1754
- data/.simplycop_bundler.yml +18 -0
- data/.simplycop_gemspec.yml +28 -0
- data/.simplycop_layout.yml +311 -0
- data/.simplycop_lint.yml +415 -0
- data/.simplycop_metrics.yml +38 -0
- data/.simplycop_migration.yml +2 -0
- data/.simplycop_naming.yml +81 -0
- data/.simplycop_rspec.yml +53 -15
- data/.simplycop_security.yml +30 -0
- data/.simplycop_style.yml +824 -0
- data/catalog-info.yaml +2 -2
- data/docs/index.md +20 -1
- data/lib/simplycop/version.rb +1 -1
- metadata +9 -1
@@ -0,0 +1,824 @@
|
|
1
|
+
Style/AccessModifierDeclarations:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Style/AccessorGrouping:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Style/Alias:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Style/AndOr:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
Style/ArgumentsForwarding:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Style/ArrayCoercion:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
# Overridden to false in Chopin
|
20
|
+
Style/ArrayIntersect:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
Style/ArrayJoin:
|
24
|
+
Enabled: true
|
25
|
+
|
26
|
+
Style/AsciiComments:
|
27
|
+
Enabled: true
|
28
|
+
AllowedChars:
|
29
|
+
- £
|
30
|
+
- ©
|
31
|
+
|
32
|
+
Style/Attr:
|
33
|
+
Enabled: true
|
34
|
+
|
35
|
+
# Requires fixes in Chopin and Rater
|
36
|
+
Style/AutoResourceCleanup:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Style/BarePercentLiterals:
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Style/BeginBlock:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
Style/BisectedAttrAccessor:
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Style/BlockComments:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
# Enabled by default and used in Rater so made explicit here
|
52
|
+
# However, overridden by Chopin to do file and proposal to use semantic style:
|
53
|
+
# See #technical-excellence-community discussion 28/02/23
|
54
|
+
Style/BlockDelimiters:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
Style/CaseEquality:
|
58
|
+
Enabled: true
|
59
|
+
|
60
|
+
Style/CaseLikeIf:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Style/CharacterLiteral:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
Style/ClassAndModuleChildren:
|
67
|
+
Enabled: true
|
68
|
+
Exclude:
|
69
|
+
- spec/**/*.rb
|
70
|
+
|
71
|
+
Style/ClassCheck:
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Style/ClassEqualityComparison:
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
Style/ClassMethods:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
# Requires discussion - multiple fails on Chopin/Rater/CoCo when set true with default
|
81
|
+
Style/ClassMethodsDefinitions:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Style/ClassVars:
|
85
|
+
Enabled: true
|
86
|
+
|
87
|
+
Style/CollectionCompact:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
# Requires discussion - multiple fails on Chopin/Rater/CoCo when set true with default
|
91
|
+
Style/CollectionMethods:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
Style/ColonMethodCall:
|
95
|
+
Enabled: true
|
96
|
+
Severity: warning
|
97
|
+
|
98
|
+
Style/ColonMethodDefinition:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
Style/CombinableLoops:
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
Style/CommandLiteral:
|
105
|
+
Enabled: true
|
106
|
+
|
107
|
+
Style/CommentAnnotation:
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
Style/CommentedKeyword:
|
111
|
+
Enabled: true
|
112
|
+
|
113
|
+
# TODO: Single fail on Rater
|
114
|
+
Style/ComparableClamp:
|
115
|
+
Enabled: true
|
116
|
+
|
117
|
+
Style/ConcatArrayLiterals:
|
118
|
+
Enabled: true
|
119
|
+
|
120
|
+
Style/ConditionalAssignment:
|
121
|
+
Enabled: true
|
122
|
+
|
123
|
+
# Requires discussion - 1000+ offences in Chopin alone, unless options set
|
124
|
+
Style/ConstantVisibility:
|
125
|
+
Enabled: false
|
126
|
+
|
127
|
+
# For discussion
|
128
|
+
Style/Copyright:
|
129
|
+
Enabled: false
|
130
|
+
|
131
|
+
Style/DataInheritance:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
# Requires discussion - multiple fails on Chopin/Rater/CoCo if true
|
135
|
+
Style/DateTime:
|
136
|
+
Enabled: false
|
137
|
+
|
138
|
+
Style/DefWithParentheses:
|
139
|
+
Enabled: true
|
140
|
+
|
141
|
+
Style/Dir:
|
142
|
+
Enabled: true
|
143
|
+
|
144
|
+
Style/DirEmpty:
|
145
|
+
Enabled: true
|
146
|
+
|
147
|
+
# For discussion - - multiple fails on Chopin/Rater/CoCo
|
148
|
+
Style/DisableCopsWithinSourceCodeDirective:
|
149
|
+
Enabled: false
|
150
|
+
|
151
|
+
Style/DocumentDynamicEvalDefinition:
|
152
|
+
Enabled: false
|
153
|
+
|
154
|
+
Style/Documentation:
|
155
|
+
Enabled: false
|
156
|
+
|
157
|
+
# Requires discussion - suggest false as 7000+ offences in Chopin alone
|
158
|
+
Style/DocumentationMethod:
|
159
|
+
Enabled: false
|
160
|
+
|
161
|
+
Style/DoubleCopDisableDirective:
|
162
|
+
Enabled: true
|
163
|
+
|
164
|
+
Style/DoubleNegation:
|
165
|
+
Enabled: true
|
166
|
+
|
167
|
+
# Need override in Rater
|
168
|
+
Style/EachForSimpleLoop:
|
169
|
+
Enabled: true
|
170
|
+
|
171
|
+
Style/EachWithObject:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
Style/EmptyBlockParameter:
|
175
|
+
Enabled: true
|
176
|
+
|
177
|
+
Style/EmptyCaseCondition:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
Style/EmptyElse:
|
181
|
+
Enabled: true
|
182
|
+
|
183
|
+
Style/EmptyHeredoc:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
Style/EmptyLambdaParameter:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
Style/EmptyLiteral:
|
190
|
+
Enabled: true
|
191
|
+
|
192
|
+
Style/EmptyMethod:
|
193
|
+
Enabled: true
|
194
|
+
|
195
|
+
Style/Encoding:
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
Style/EndBlock:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
Style/EndlessMethod:
|
202
|
+
Enabled: true
|
203
|
+
|
204
|
+
Style/EnvHome:
|
205
|
+
Enabled: true
|
206
|
+
|
207
|
+
Style/EvalWithLocation:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
Style/EvenOdd:
|
211
|
+
Enabled: true
|
212
|
+
|
213
|
+
Style/ExactRegexpMatch:
|
214
|
+
Enabled: true
|
215
|
+
|
216
|
+
Style/ExpandPathArguments:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
Style/ExplicitBlockArgument:
|
220
|
+
Enabled: true
|
221
|
+
|
222
|
+
Style/ExponentialNotation:
|
223
|
+
Enabled: false
|
224
|
+
|
225
|
+
# Overridden to false in Chopin
|
226
|
+
Style/FetchEnvVar:
|
227
|
+
Enabled: true
|
228
|
+
|
229
|
+
Style/FileEmpty:
|
230
|
+
Enabled: true
|
231
|
+
|
232
|
+
Style/FileRead: # new in 1.24
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
# Overridden to false in Chopin
|
236
|
+
Style/FileWrite:
|
237
|
+
Enabled: true
|
238
|
+
|
239
|
+
Style/FloatDivision:
|
240
|
+
Enabled: true
|
241
|
+
|
242
|
+
Style/For:
|
243
|
+
Enabled: true
|
244
|
+
|
245
|
+
Style/FormatString:
|
246
|
+
Enabled: false
|
247
|
+
|
248
|
+
Style/FormatStringToken:
|
249
|
+
Enabled: false
|
250
|
+
|
251
|
+
Style/FrozenStringLiteralComment:
|
252
|
+
Enabled: false
|
253
|
+
|
254
|
+
Style/GlobalStdStream:
|
255
|
+
Enabled: true
|
256
|
+
|
257
|
+
Style/GlobalVars:
|
258
|
+
Enabled: true
|
259
|
+
|
260
|
+
Style/GuardClause:
|
261
|
+
Enabled: false
|
262
|
+
|
263
|
+
Style/HashAsLastArrayItem:
|
264
|
+
Enabled: true
|
265
|
+
|
266
|
+
Style/HashConversion:
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
Style/HashEachMethods:
|
270
|
+
Enabled: false
|
271
|
+
|
272
|
+
Style/HashExcept:
|
273
|
+
Enabled: true
|
274
|
+
|
275
|
+
Style/HashLikeCase:
|
276
|
+
Enabled: false
|
277
|
+
|
278
|
+
Style/HashSyntax:
|
279
|
+
Enabled: true
|
280
|
+
EnforcedStyle: no_mixed_keys
|
281
|
+
EnforcedShorthandSyntax: consistent
|
282
|
+
|
283
|
+
Style/HashTransformKeys:
|
284
|
+
Enabled: true
|
285
|
+
|
286
|
+
Style/HashTransformValues:
|
287
|
+
Enabled: true
|
288
|
+
|
289
|
+
Style/IdenticalConditionalBranches:
|
290
|
+
Enabled: true
|
291
|
+
|
292
|
+
Style/IfInsideElse:
|
293
|
+
Enabled: true
|
294
|
+
|
295
|
+
Style/IfUnlessModifier:
|
296
|
+
Enabled: false
|
297
|
+
|
298
|
+
Style/IfUnlessModifierOfIfUnless:
|
299
|
+
Enabled: true
|
300
|
+
|
301
|
+
Style/IfWithBooleanLiteralBranches:
|
302
|
+
Enabled: true
|
303
|
+
|
304
|
+
Style/IfWithSemicolon:
|
305
|
+
Enabled: true
|
306
|
+
|
307
|
+
# For dicussion - 100s of fails on Chopin, CoCo, Rater
|
308
|
+
Style/ImplicitRuntimeError:
|
309
|
+
Enabled: false
|
310
|
+
|
311
|
+
Style/InfiniteLoop:
|
312
|
+
Enabled: true
|
313
|
+
|
314
|
+
Style/InlineComment:
|
315
|
+
Enabled: false
|
316
|
+
|
317
|
+
Style/InverseMethods:
|
318
|
+
Enabled: true
|
319
|
+
|
320
|
+
Style/InvertibleUnlessCondition:
|
321
|
+
Enabled: true
|
322
|
+
|
323
|
+
Style/InPatternThen: # new in 1.16
|
324
|
+
Enabled: true
|
325
|
+
|
326
|
+
# For discussion - disabled by default but could be enabled
|
327
|
+
# and mostly solved by excluding spec files
|
328
|
+
Style/IpAddresses:
|
329
|
+
Enabled: false
|
330
|
+
# Enabled: true
|
331
|
+
# Exclude: [*spec.rb]
|
332
|
+
|
333
|
+
Style/KeywordParametersOrder:
|
334
|
+
Enabled: true
|
335
|
+
|
336
|
+
Style/Lambda:
|
337
|
+
Enabled: true
|
338
|
+
|
339
|
+
Style/LambdaCall:
|
340
|
+
Enabled: true
|
341
|
+
|
342
|
+
Style/LineEndConcatenation:
|
343
|
+
Enabled: true
|
344
|
+
|
345
|
+
Style/MagicCommentFormat: # new in 1.35
|
346
|
+
Enabled: true
|
347
|
+
|
348
|
+
Style/MapCompactWithConditionalBlock: # new in 1.30
|
349
|
+
Enabled: true
|
350
|
+
|
351
|
+
# Overridden to false in Chopin
|
352
|
+
Style/MapToHash:
|
353
|
+
Enabled: true
|
354
|
+
|
355
|
+
# Overridden to false in Chopin
|
356
|
+
Style/MapToSet:
|
357
|
+
Enabled: true
|
358
|
+
|
359
|
+
# For discussion - 1000s of fails if set true
|
360
|
+
Style/MethodCallWithArgsParentheses:
|
361
|
+
Enabled: false
|
362
|
+
|
363
|
+
Style/MethodCallWithoutArgsParentheses:
|
364
|
+
Enabled: false
|
365
|
+
|
366
|
+
# For discussion - 100s of fails if set true
|
367
|
+
Style/MethodCalledOnDoEndBlock:
|
368
|
+
Enabled: false
|
369
|
+
|
370
|
+
Style/MethodDefParentheses:
|
371
|
+
Enabled: true
|
372
|
+
|
373
|
+
Style/MinMax:
|
374
|
+
Enabled: true
|
375
|
+
|
376
|
+
# Overridden to false in Chopin
|
377
|
+
Style/MinMaxComparison:
|
378
|
+
Enabled: true
|
379
|
+
|
380
|
+
Style/MissingElse:
|
381
|
+
Enabled: false
|
382
|
+
|
383
|
+
Style/MissingRespondToMissing:
|
384
|
+
Enabled: true
|
385
|
+
|
386
|
+
Style/MixinGrouping:
|
387
|
+
Enabled: true
|
388
|
+
|
389
|
+
Style/MixinUsage:
|
390
|
+
Enabled: true
|
391
|
+
|
392
|
+
Style/ModuleFunction:
|
393
|
+
Enabled: true
|
394
|
+
|
395
|
+
Style/MultilineBlockChain:
|
396
|
+
Enabled: true
|
397
|
+
|
398
|
+
Style/MultilineIfModifier:
|
399
|
+
Enabled: true
|
400
|
+
|
401
|
+
Style/MultilineIfThen:
|
402
|
+
Enabled: true
|
403
|
+
|
404
|
+
Style/MultilineInPatternThen: # new in 1.16
|
405
|
+
Enabled: true
|
406
|
+
|
407
|
+
Style/MultilineMemoization:
|
408
|
+
Enabled: true
|
409
|
+
|
410
|
+
# For discussion - suggest true, but 100s of fails in Chopin and handful in CoCo
|
411
|
+
Style/MultilineMethodSignature:
|
412
|
+
Enabled: false
|
413
|
+
|
414
|
+
Style/MultilineTernaryOperator:
|
415
|
+
Enabled: true
|
416
|
+
|
417
|
+
Style/MultilineWhenThen:
|
418
|
+
Enabled: true
|
419
|
+
|
420
|
+
Style/MultipleComparison:
|
421
|
+
Enabled: true
|
422
|
+
|
423
|
+
Style/MutableConstant:
|
424
|
+
Enabled: false
|
425
|
+
|
426
|
+
Style/NegatedIf:
|
427
|
+
Enabled: true
|
428
|
+
|
429
|
+
Style/NegatedIfElseCondition:
|
430
|
+
Enabled: true
|
431
|
+
|
432
|
+
Style/NegatedUnless:
|
433
|
+
Enabled: true
|
434
|
+
|
435
|
+
Style/NegatedWhile:
|
436
|
+
Enabled: true
|
437
|
+
|
438
|
+
Style/NestedFileDirname:
|
439
|
+
Enabled: true
|
440
|
+
|
441
|
+
Style/NestedModifier:
|
442
|
+
Enabled: true
|
443
|
+
|
444
|
+
Style/NestedParenthesizedCalls:
|
445
|
+
Enabled: true
|
446
|
+
|
447
|
+
Style/NestedTernaryOperator:
|
448
|
+
Enabled: true
|
449
|
+
|
450
|
+
Style/Next:
|
451
|
+
Enabled: true
|
452
|
+
|
453
|
+
Style/NilComparison:
|
454
|
+
Enabled: true
|
455
|
+
|
456
|
+
Style/NilLambda:
|
457
|
+
Enabled: true
|
458
|
+
|
459
|
+
Style/NonNilCheck:
|
460
|
+
Enabled: true
|
461
|
+
|
462
|
+
Style/Not:
|
463
|
+
Enabled: true
|
464
|
+
|
465
|
+
Style/NumberedParameters:
|
466
|
+
Enabled: true
|
467
|
+
|
468
|
+
Style/NumberedParametersLimit:
|
469
|
+
Enabled: true
|
470
|
+
|
471
|
+
Style/NumericLiteralPrefix:
|
472
|
+
Enabled: true
|
473
|
+
|
474
|
+
Style/NumericLiterals:
|
475
|
+
Enabled: true
|
476
|
+
|
477
|
+
Style/NumericPredicate:
|
478
|
+
Enabled: false
|
479
|
+
|
480
|
+
Style/ObjectThen:
|
481
|
+
Enabled: true
|
482
|
+
|
483
|
+
Style/OneLineConditional:
|
484
|
+
Enabled: true
|
485
|
+
|
486
|
+
# Overridden to false in Chopin
|
487
|
+
Style/OpenStructUse:
|
488
|
+
Enabled: true
|
489
|
+
|
490
|
+
Style/OperatorMethodCall:
|
491
|
+
Enabled: true
|
492
|
+
|
493
|
+
Style/OptionHash:
|
494
|
+
Enabled: true
|
495
|
+
|
496
|
+
Style/OptionalArguments:
|
497
|
+
Enabled: true
|
498
|
+
|
499
|
+
Style/OptionalBooleanParameter:
|
500
|
+
Enabled: true
|
501
|
+
|
502
|
+
Style/OrAssignment:
|
503
|
+
Enabled: true
|
504
|
+
|
505
|
+
Style/ParallelAssignment:
|
506
|
+
Enabled: true
|
507
|
+
|
508
|
+
Style/ParenthesesAroundCondition:
|
509
|
+
Enabled: true
|
510
|
+
|
511
|
+
Style/PercentLiteralDelimiters:
|
512
|
+
Enabled: true
|
513
|
+
|
514
|
+
Style/PercentQLiterals:
|
515
|
+
Enabled: true
|
516
|
+
|
517
|
+
Style/PerlBackrefs:
|
518
|
+
Enabled: true
|
519
|
+
|
520
|
+
Style/PreferredHashMethods:
|
521
|
+
Enabled: true
|
522
|
+
|
523
|
+
Style/Proc:
|
524
|
+
Enabled: true
|
525
|
+
|
526
|
+
# Overridden to false in Chopin and Rater
|
527
|
+
Style/QuotedSymbols:
|
528
|
+
Enabled: true
|
529
|
+
|
530
|
+
Style/RaiseArgs:
|
531
|
+
Enabled: true
|
532
|
+
|
533
|
+
Style/RandomWithOffset:
|
534
|
+
Enabled: true
|
535
|
+
|
536
|
+
Style/RedundantArgument:
|
537
|
+
Enabled: false
|
538
|
+
|
539
|
+
Style/RedundantArrayConstructor:
|
540
|
+
Enabled: true
|
541
|
+
|
542
|
+
Style/RedundantAssignment:
|
543
|
+
Enabled: true
|
544
|
+
|
545
|
+
Style/RedundantBegin:
|
546
|
+
Enabled: true
|
547
|
+
|
548
|
+
Style/RedundantCapitalW:
|
549
|
+
Enabled: true
|
550
|
+
|
551
|
+
Style/RedundantCondition:
|
552
|
+
Enabled: true
|
553
|
+
|
554
|
+
Style/RedundantConditional:
|
555
|
+
Enabled: true
|
556
|
+
|
557
|
+
Style/RedundantConstantBase:
|
558
|
+
Enabled: false
|
559
|
+
|
560
|
+
Style/RedundantCurrentDirectoryInPath:
|
561
|
+
Enabled: false
|
562
|
+
|
563
|
+
Style/RedundantDoubleSplatHashBraces:
|
564
|
+
Enabled: true
|
565
|
+
|
566
|
+
Style/RedundantEach:
|
567
|
+
Enabled: true
|
568
|
+
|
569
|
+
Style/RedundantException:
|
570
|
+
Enabled: true
|
571
|
+
|
572
|
+
Style/RedundantFetchBlock:
|
573
|
+
Enabled: true
|
574
|
+
|
575
|
+
Style/RedundantFileExtensionInRequire:
|
576
|
+
Enabled: true
|
577
|
+
|
578
|
+
Style/RedundantFilterChain:
|
579
|
+
Enabled: true
|
580
|
+
|
581
|
+
Style/RedundantFreeze:
|
582
|
+
Enabled: true
|
583
|
+
|
584
|
+
Style/RedundantHeredocDelimiterQuotes:
|
585
|
+
Enabled: true
|
586
|
+
|
587
|
+
Style/RedundantInitialize:
|
588
|
+
Enabled: true
|
589
|
+
|
590
|
+
Style/RedundantInterpolation:
|
591
|
+
Enabled: false
|
592
|
+
|
593
|
+
Style/RedundantLineContinuation:
|
594
|
+
Enabled: true
|
595
|
+
|
596
|
+
Style/RedundantParentheses:
|
597
|
+
Enabled: true
|
598
|
+
|
599
|
+
Style/RedundantPercentQ:
|
600
|
+
Enabled: true
|
601
|
+
|
602
|
+
Style/RedundantRegexpArgument:
|
603
|
+
Enabled: true
|
604
|
+
|
605
|
+
Style/RedundantRegexpCharacterClass:
|
606
|
+
Enabled: true
|
607
|
+
|
608
|
+
Style/RedundantRegexpConstructor:
|
609
|
+
Enabled: true
|
610
|
+
|
611
|
+
Style/RedundantRegexpEscape:
|
612
|
+
Enabled: true
|
613
|
+
|
614
|
+
Style/RedundantReturn:
|
615
|
+
Enabled: true
|
616
|
+
Severity: warning
|
617
|
+
|
618
|
+
Style/RedundantSelf:
|
619
|
+
Enabled: true
|
620
|
+
|
621
|
+
Style/RedundantSelfAssignment:
|
622
|
+
Enabled: true
|
623
|
+
|
624
|
+
# Overridden to false in Chopin
|
625
|
+
Style/RedundantSelfAssignmentBranch:
|
626
|
+
Enabled: true
|
627
|
+
|
628
|
+
Style/RedundantSort:
|
629
|
+
Enabled: true
|
630
|
+
|
631
|
+
Style/RedundantSortBy:
|
632
|
+
Enabled: true
|
633
|
+
|
634
|
+
# Overridden to false in Chopin
|
635
|
+
Style/RedundantStringEscape:
|
636
|
+
Enabled: true
|
637
|
+
|
638
|
+
Style/RegexpLiteral:
|
639
|
+
Enabled: true
|
640
|
+
|
641
|
+
# For discussion - would improve legibility if set true
|
642
|
+
Style/RequireOrder:
|
643
|
+
Enabled: false
|
644
|
+
|
645
|
+
Style/RescueModifier:
|
646
|
+
Enabled: true
|
647
|
+
|
648
|
+
Style/RescueStandardError:
|
649
|
+
Enabled: true
|
650
|
+
|
651
|
+
# For discussion - agreed configuration would be nice
|
652
|
+
Style/ReturnNil:
|
653
|
+
Enabled: false
|
654
|
+
|
655
|
+
# For discussion - as ReturnNil agreed configuration would be nice
|
656
|
+
Style/ReturnNilInPredicateMethodDefinition:
|
657
|
+
Enabled: false
|
658
|
+
|
659
|
+
Style/SafeNavigation:
|
660
|
+
Enabled: false
|
661
|
+
|
662
|
+
Style/Sample:
|
663
|
+
Enabled: true
|
664
|
+
|
665
|
+
# Overridden to false in Chopin
|
666
|
+
Style/SelectByRegexp:
|
667
|
+
Enabled: true
|
668
|
+
|
669
|
+
Style/SelfAssignment:
|
670
|
+
Enabled: true
|
671
|
+
|
672
|
+
Style/Semicolon:
|
673
|
+
Enabled: true
|
674
|
+
|
675
|
+
Style/Send:
|
676
|
+
Enabled: false
|
677
|
+
|
678
|
+
Style/SignalException:
|
679
|
+
Enabled: true
|
680
|
+
|
681
|
+
Style/SingleArgumentDig:
|
682
|
+
Enabled: true
|
683
|
+
|
684
|
+
# If this is to be set true, desired param names need to be set for reduce and inject
|
685
|
+
# (default is |acc, elem|) and current usage suggests domain relevant names are preferred
|
686
|
+
Style/SingleLineBlockParams:
|
687
|
+
Enabled: false
|
688
|
+
|
689
|
+
Style/SingleLineMethods:
|
690
|
+
Enabled: true
|
691
|
+
|
692
|
+
Style/SlicingWithRange:
|
693
|
+
Enabled: false
|
694
|
+
|
695
|
+
Style/SoleNestedConditional:
|
696
|
+
Enabled: true
|
697
|
+
|
698
|
+
Style/SpecialGlobalVars:
|
699
|
+
Enabled: true
|
700
|
+
Severity: warning
|
701
|
+
|
702
|
+
Style/StabbyLambdaParentheses:
|
703
|
+
Enabled: true
|
704
|
+
|
705
|
+
# Unsafe autocorrect and many fails on multiple repos
|
706
|
+
Style/StaticClass:
|
707
|
+
Enabled: false
|
708
|
+
|
709
|
+
# TODO: Small number of autocorrects in Chopin
|
710
|
+
Style/StderrPuts:
|
711
|
+
Enabled: true
|
712
|
+
|
713
|
+
Style/StringChars:
|
714
|
+
Enabled: true
|
715
|
+
|
716
|
+
Style/StringConcatenation:
|
717
|
+
Enabled: true
|
718
|
+
|
719
|
+
Style/StringHashKeys:
|
720
|
+
Enabled: false
|
721
|
+
|
722
|
+
Style/StringLiterals:
|
723
|
+
Enabled: false
|
724
|
+
|
725
|
+
Style/StringLiteralsInInterpolation:
|
726
|
+
Enabled: true
|
727
|
+
|
728
|
+
Style/StringMethods:
|
729
|
+
Enabled: true
|
730
|
+
|
731
|
+
Style/Strip:
|
732
|
+
Enabled: true
|
733
|
+
|
734
|
+
Style/StructInheritance:
|
735
|
+
Enabled: true
|
736
|
+
|
737
|
+
Style/SwapValues:
|
738
|
+
Enabled: true
|
739
|
+
|
740
|
+
Style/SymbolArray:
|
741
|
+
EnforcedStyle: brackets
|
742
|
+
|
743
|
+
Style/SymbolLiteral:
|
744
|
+
Enabled: true
|
745
|
+
|
746
|
+
Style/SymbolProc:
|
747
|
+
Enabled: true
|
748
|
+
|
749
|
+
Style/TernaryParentheses:
|
750
|
+
Enabled: true
|
751
|
+
|
752
|
+
# For discussion - suggest should be true or at least warn but large number of fails on repos
|
753
|
+
Style/TopLevelMethodDefinition:
|
754
|
+
Enabled: false
|
755
|
+
|
756
|
+
Style/TrailingBodyOnClass:
|
757
|
+
Enabled: true
|
758
|
+
|
759
|
+
Style/TrailingBodyOnMethodDefinition:
|
760
|
+
Enabled: true
|
761
|
+
|
762
|
+
Style/TrailingBodyOnModule:
|
763
|
+
Enabled: true
|
764
|
+
|
765
|
+
# Will require Chopin override
|
766
|
+
Style/TrailingCommaInArguments:
|
767
|
+
Enabled: true
|
768
|
+
|
769
|
+
# Will require Chopin override
|
770
|
+
Style/TrailingCommaInArrayLiteral:
|
771
|
+
Enabled: true
|
772
|
+
|
773
|
+
Style/TrailingCommaInBlockArgs:
|
774
|
+
Enabled: true
|
775
|
+
|
776
|
+
# Will require Chopin override
|
777
|
+
Style/TrailingCommaInHashLiteral:
|
778
|
+
Enabled: true
|
779
|
+
|
780
|
+
Style/TrailingMethodEndStatement:
|
781
|
+
Enabled: true
|
782
|
+
|
783
|
+
Style/TrailingUnderscoreVariable:
|
784
|
+
Enabled: true
|
785
|
+
|
786
|
+
Style/TrivialAccessors:
|
787
|
+
Enabled: true
|
788
|
+
|
789
|
+
Style/UnlessElse:
|
790
|
+
Enabled: true
|
791
|
+
|
792
|
+
Style/UnlessLogicalOperators:
|
793
|
+
Enabled: true
|
794
|
+
|
795
|
+
Style/UnpackFirst:
|
796
|
+
Enabled: true
|
797
|
+
|
798
|
+
Style/VariableInterpolation:
|
799
|
+
Enabled: true
|
800
|
+
|
801
|
+
Style/WhenThen:
|
802
|
+
Enabled: true
|
803
|
+
|
804
|
+
Style/WhileUntilDo:
|
805
|
+
Enabled: true
|
806
|
+
|
807
|
+
Style/WhileUntilModifier:
|
808
|
+
Enabled: true
|
809
|
+
|
810
|
+
# Overridden to false in Chopin
|
811
|
+
Style/WordArray:
|
812
|
+
EnforcedStyle: brackets
|
813
|
+
|
814
|
+
Style/YAMLFileRead:
|
815
|
+
Enabled: true
|
816
|
+
|
817
|
+
Style/YodaCondition:
|
818
|
+
Enabled: false
|
819
|
+
|
820
|
+
Style/YodaExpression:
|
821
|
+
Enabled: false
|
822
|
+
|
823
|
+
Style/ZeroLengthPredicate:
|
824
|
+
Enabled: true
|