simplycop 1.12.18 → 1.12.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/version_forget_me_not.yml +1 -1
- data/.simplycop.yml +492 -0
- data/lib/simplycop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d7b1dfbe91cd595f0491440519bdaf520cb4dfe9048ab500e5ed37f9a83eda2
|
4
|
+
data.tar.gz: ed90b05962cb6537ff3370271a67659771232fcce4a35f535231b4bcd67f134e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20cf2ce53fc721de021c0be9f0fb63e119504b44599dfe3ce6f0d39afc6d5ba9cb79fcd9b91331dc3cd8852b51f4e998d7ae90206674cacd002cdba62963026b
|
7
|
+
data.tar.gz: 4468e20beee4c4c03a12fc80599f92498a192f84d2842e8e8ce8aa056f1b59091eccdd2ae43905be36c4447c0d31e18af4b81cb74de99927dc6824431ad6864d
|
data/.simplycop.yml
CHANGED
@@ -175,6 +175,9 @@ Style/AccessorGrouping:
|
|
175
175
|
Style/Alias:
|
176
176
|
Enabled: false
|
177
177
|
|
178
|
+
Style/AndOr:
|
179
|
+
Enabled: true
|
180
|
+
|
178
181
|
Style/ArgumentsForwarding:
|
179
182
|
Enabled: true
|
180
183
|
|
@@ -184,43 +187,192 @@ Style/ArrayCoercion:
|
|
184
187
|
Style/ArrayIntersect:
|
185
188
|
Enabled: true
|
186
189
|
|
190
|
+
Style/ArrayJoin:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
Style/AsciiComments:
|
194
|
+
Enabled: true
|
195
|
+
AllowedChars: [£, ©]
|
196
|
+
|
197
|
+
Style/Attr:
|
198
|
+
Enabled: true
|
199
|
+
|
200
|
+
# Requires fixes in Chopin and Rater
|
201
|
+
# Style/AutoResourceCleanup:
|
202
|
+
# Enabled: true
|
203
|
+
|
204
|
+
# Requires discussion
|
205
|
+
# Style/BarePercentLiterals:
|
206
|
+
|
207
|
+
Style/BeginBlock:
|
208
|
+
Enabled: true
|
209
|
+
|
187
210
|
Style/BisectedAttrAccessor:
|
188
211
|
Enabled: true
|
189
212
|
|
213
|
+
Style/BlockComments:
|
214
|
+
Enabled: true
|
215
|
+
|
216
|
+
# Requires discussion - 1000+ offences in Chopin alone, unless options set
|
217
|
+
# Style/BlockDelimiters:
|
218
|
+
|
219
|
+
Style/CaseEquality:
|
220
|
+
Enabled: true
|
221
|
+
|
190
222
|
Style/CaseLikeIf:
|
191
223
|
Enabled: true
|
192
224
|
|
225
|
+
Style/CharacterLiteral:
|
226
|
+
Enabled: true
|
227
|
+
|
228
|
+
# Requires discussion
|
229
|
+
# Style/ClassAndModuleChildren:
|
230
|
+
|
231
|
+
Style/ClassCheck:
|
232
|
+
Enabled: true
|
233
|
+
|
234
|
+
Style/ClassEqualityComparison:
|
235
|
+
Enabled: true
|
236
|
+
|
237
|
+
Style/ClassMethods:
|
238
|
+
Enabled: true
|
239
|
+
|
240
|
+
# Requires discussion - multiple fails on Chopin/Rater/CoCo when left at default
|
241
|
+
# Style/ClassMethodsDefinitions:
|
242
|
+
# Enabled: true
|
243
|
+
|
244
|
+
Style/ClassVars:
|
245
|
+
Enabled: true
|
246
|
+
|
193
247
|
Style/CollectionCompact:
|
194
248
|
Enabled: true
|
195
249
|
|
250
|
+
# Requires discussion - multiple fails on Chopin/Rater/CoCo when left at default
|
251
|
+
# Style/CollectionMethods:
|
252
|
+
|
196
253
|
Style/ColonMethodCall:
|
197
254
|
Enabled: true
|
198
255
|
Severity: warning
|
199
256
|
|
257
|
+
Style/ColonMethodDefinition:
|
258
|
+
Enabled: true
|
259
|
+
|
200
260
|
Style/CombinableLoops:
|
201
261
|
Enabled: true
|
202
262
|
|
263
|
+
Style/CommandLiteral:
|
264
|
+
Enabled: true
|
265
|
+
|
266
|
+
Style/CommentAnnotation:
|
267
|
+
Enabled: true
|
268
|
+
|
269
|
+
Style/CommentedKeyword:
|
270
|
+
Enabled: true
|
271
|
+
|
272
|
+
# TODO: Single fail on Rater
|
273
|
+
# Style/ComparableClamp:
|
274
|
+
# Enabled: true
|
275
|
+
|
203
276
|
Style/ConcatArrayLiterals:
|
204
277
|
Enabled: true
|
205
278
|
|
206
279
|
Style/ConditionalAssignment:
|
207
280
|
Enabled: true
|
208
281
|
|
282
|
+
# Requires discussion - 1000+ offences in Chopin alone, unless options set
|
283
|
+
# Style/ConstantVisibility:
|
284
|
+
|
285
|
+
# For discussion
|
286
|
+
# Style/Copyright:
|
287
|
+
|
288
|
+
Style/DataInheritance:
|
289
|
+
Enabled: true
|
290
|
+
|
291
|
+
# Requires discussion - multiple fails on Chopin/Rater/CoCo if true
|
292
|
+
# Style/DateTime:
|
293
|
+
# Enabled: false
|
294
|
+
|
295
|
+
Style/DefWithParentheses:
|
296
|
+
Enabled: true
|
297
|
+
|
298
|
+
Style/Dir:
|
299
|
+
Enabled: true
|
300
|
+
|
301
|
+
Style/DirEmpty:
|
302
|
+
Enabled: true
|
303
|
+
|
304
|
+
# For discussion - - multiple fails on Chopin/Rater/CoCo
|
305
|
+
# Style/DisableCopsWithinSourceCodeDirective:
|
306
|
+
|
209
307
|
Style/DocumentDynamicEvalDefinition:
|
210
308
|
Enabled: false
|
211
309
|
|
212
310
|
Style/Documentation:
|
213
311
|
Enabled: false
|
214
312
|
|
313
|
+
# Requires discussion - suggest false as 7000+ offences in Chopin alone
|
314
|
+
# Style/DocumentationMethod:
|
315
|
+
# Enabled: false
|
316
|
+
|
317
|
+
Style/DoubleCopDisableDirective:
|
318
|
+
Enabled: true
|
319
|
+
|
320
|
+
Style/DoubleNegation:
|
321
|
+
Enabled: true
|
322
|
+
|
323
|
+
# Suggest true but 100+ fails on Rater, none on Chopin or CoCo
|
324
|
+
# Style/EachForSimpleLoop:
|
325
|
+
# Enabled: true
|
326
|
+
|
327
|
+
Style/EachWithObject:
|
328
|
+
Enabled: true
|
329
|
+
|
330
|
+
Style/EmptyBlockParameter:
|
331
|
+
Enabled: true
|
332
|
+
|
333
|
+
Style/EmptyCaseCondition:
|
334
|
+
Enabled: true
|
335
|
+
|
336
|
+
Style/EmptyElse:
|
337
|
+
Enabled: true
|
338
|
+
|
215
339
|
Style/EmptyHeredoc: # new in 1.32
|
216
340
|
Enabled: true
|
217
341
|
|
342
|
+
Style/EmptyLambdaParameter:
|
343
|
+
Enabled: true
|
344
|
+
|
345
|
+
Style/EmptyLiteral:
|
346
|
+
Enabled: true
|
347
|
+
|
348
|
+
Style/EmptyMethod:
|
349
|
+
Enabled: true
|
350
|
+
|
351
|
+
Style/Encoding:
|
352
|
+
Enabled: true
|
353
|
+
|
354
|
+
Style/EndBlock:
|
355
|
+
Enabled: true
|
356
|
+
|
218
357
|
Style/EndlessMethod:
|
219
358
|
Enabled: true
|
220
359
|
|
221
360
|
Style/EnvHome:
|
222
361
|
Enabled: true
|
223
362
|
|
363
|
+
Style/EvalWithLocation:
|
364
|
+
Enabled: true
|
365
|
+
|
366
|
+
Style/EvenOdd:
|
367
|
+
Enabled: true
|
368
|
+
|
369
|
+
# Added in version 1.51, unable to check v Chopin, CoCo, Rater yet
|
370
|
+
# Style/ExactRegexpMatch:
|
371
|
+
# Enabled: true
|
372
|
+
|
373
|
+
Style/ExpandPathArguments:
|
374
|
+
Enabled: true
|
375
|
+
|
224
376
|
Style/ExplicitBlockArgument:
|
225
377
|
Enabled: true
|
226
378
|
|
@@ -230,12 +382,18 @@ Style/ExponentialNotation:
|
|
230
382
|
Style/FetchEnvVar:
|
231
383
|
Enabled: true
|
232
384
|
|
385
|
+
Style/FileEmpty:
|
386
|
+
Enabled: true
|
387
|
+
|
233
388
|
Style/FileRead: # new in 1.24
|
234
389
|
Enabled: true
|
235
390
|
|
236
391
|
Style/FileWrite:
|
237
392
|
Enabled: true
|
238
393
|
|
394
|
+
Style/FloatDivision:
|
395
|
+
Enabled: true
|
396
|
+
|
239
397
|
Style/For:
|
240
398
|
Enabled: true
|
241
399
|
|
@@ -251,6 +409,9 @@ Style/FrozenStringLiteralComment:
|
|
251
409
|
Style/GlobalStdStream:
|
252
410
|
Enabled: true
|
253
411
|
|
412
|
+
Style/GlobalVars:
|
413
|
+
Enabled: true
|
414
|
+
|
254
415
|
Style/GuardClause:
|
255
416
|
Enabled: false
|
256
417
|
|
@@ -269,30 +430,72 @@ Style/HashExcept:
|
|
269
430
|
Style/HashLikeCase:
|
270
431
|
Enabled: false
|
271
432
|
|
433
|
+
# For discussion - 11000+ fails on Chopin if true by default
|
434
|
+
# Style/HashSyntax:
|
435
|
+
# Enabled: false
|
436
|
+
|
272
437
|
Style/HashTransformKeys:
|
273
438
|
Enabled: true
|
274
439
|
|
275
440
|
Style/HashTransformValues:
|
276
441
|
Enabled: true
|
277
442
|
|
443
|
+
Style/IdenticalConditionalBranches:
|
444
|
+
Enabled: true
|
445
|
+
|
278
446
|
Style/IfInsideElse:
|
279
447
|
Enabled: true
|
280
448
|
|
281
449
|
Style/IfUnlessModifier:
|
282
450
|
Enabled: false
|
283
451
|
|
452
|
+
Style/IfUnlessModifierOfIfUnless:
|
453
|
+
Enabled: true
|
454
|
+
|
284
455
|
Style/IfWithBooleanLiteralBranches:
|
285
456
|
Enabled: true
|
286
457
|
|
458
|
+
Style/IfWithSemicolon:
|
459
|
+
Enabled: true
|
460
|
+
|
461
|
+
# For dicussion - 100s of fails on Chopin, CoCo, Rater
|
462
|
+
# Style/ImplicitRuntimeError:
|
463
|
+
# Enabled: false
|
464
|
+
|
465
|
+
Style/InfiniteLoop:
|
466
|
+
Enabled: true
|
467
|
+
|
468
|
+
# For discussion - suggest false as 1000s of fails
|
469
|
+
# Style/InlineComment:
|
470
|
+
# Enabled: false
|
471
|
+
|
472
|
+
Style/InverseMethods:
|
473
|
+
Enabled: true
|
474
|
+
|
475
|
+
# Manageable number of fails on Chopin, CoCo, Rater, suggest true
|
476
|
+
# Style/InvertibleUnlessCondition:
|
477
|
+
# Enabled: true
|
478
|
+
|
287
479
|
Style/InPatternThen: # new in 1.16
|
288
480
|
Enabled: true
|
289
481
|
|
482
|
+
# For discussion - multiple fails but most could be solved by excluding spec files
|
483
|
+
# Style/IpAddresses:
|
484
|
+
# Enabled: true
|
485
|
+
# Exclude: [*spec.rb]
|
486
|
+
|
290
487
|
Style/KeywordParametersOrder:
|
291
488
|
Enabled: true
|
292
489
|
|
490
|
+
Style/Lambda:
|
491
|
+
Enabled: true
|
492
|
+
|
293
493
|
Style/LambdaCall:
|
294
494
|
Enabled: true
|
295
495
|
|
496
|
+
Style/LineEndConcatenation:
|
497
|
+
Enabled: true
|
498
|
+
|
296
499
|
Style/MagicCommentFormat: # new in 1.35
|
297
500
|
Enabled: true
|
298
501
|
|
@@ -302,21 +505,90 @@ Style/MapCompactWithConditionalBlock: # new in 1.30
|
|
302
505
|
Style/MapToHash:
|
303
506
|
Enabled: true
|
304
507
|
|
508
|
+
# TODO: small number of fixes in Chopin
|
509
|
+
# Style/MapToSet:
|
510
|
+
# Enabled: true
|
511
|
+
|
512
|
+
# For discussion - 1000s of fails, suggest false
|
513
|
+
# Style/MethodCallWithArgsParentheses:
|
514
|
+
# Enabled: false
|
515
|
+
|
516
|
+
Style/MethodCallWithoutArgsParentheses:
|
517
|
+
Enabled: false
|
518
|
+
|
519
|
+
# For discussion - 100s of fails, suggest false
|
520
|
+
# Style/MethodCalledOnDoEndBlock:
|
521
|
+
# Enabled: false
|
522
|
+
|
305
523
|
Style/MethodDefParentheses:
|
306
524
|
Enabled: true
|
307
525
|
|
526
|
+
Style/MinMax:
|
527
|
+
Enabled: true
|
528
|
+
|
529
|
+
# For discussion - multiple fails, suggest true
|
530
|
+
# Style/MinMaxComparison:
|
531
|
+
# Enabled: true
|
532
|
+
|
533
|
+
# For discussion - 100s of fails with default true
|
534
|
+
# Style/MissingElse:
|
535
|
+
# Enabled: true
|
536
|
+
|
537
|
+
Style/MissingRespondToMissing:
|
538
|
+
Enabled: true
|
539
|
+
|
540
|
+
Style/MixinGrouping:
|
541
|
+
Enabled: true
|
542
|
+
|
543
|
+
Style/MixinUsage:
|
544
|
+
Enabled: true
|
545
|
+
|
546
|
+
Style/ModuleFunction:
|
547
|
+
Enabled: true
|
548
|
+
|
549
|
+
Style/MultilineBlockChain:
|
550
|
+
Enabled: true
|
551
|
+
|
552
|
+
Style/MultilineIfModifier:
|
553
|
+
Enabled: true
|
554
|
+
|
555
|
+
Style/MultilineIfThen:
|
556
|
+
Enabled: true
|
557
|
+
|
308
558
|
Style/MultilineInPatternThen: # new in 1.16
|
309
559
|
Enabled: true
|
310
560
|
|
561
|
+
Style/MultilineMemoization:
|
562
|
+
Enabled: true
|
563
|
+
|
564
|
+
# For discussion - suggest true, but 100s of fails in Chopin and handful in CoCo
|
565
|
+
# Style/MultilineMethodSignature:
|
566
|
+
# Enabled: true
|
567
|
+
|
311
568
|
Style/MultilineTernaryOperator:
|
312
569
|
Enabled: true
|
313
570
|
|
571
|
+
Style/MultilineWhenThen:
|
572
|
+
Enabled: true
|
573
|
+
|
574
|
+
Style/MultipleComparison:
|
575
|
+
Enabled: true
|
576
|
+
|
314
577
|
Style/MutableConstant:
|
315
578
|
Enabled: false
|
316
579
|
|
580
|
+
Style/NegatedIf:
|
581
|
+
Enabled: true
|
582
|
+
|
317
583
|
Style/NegatedIfElseCondition:
|
318
584
|
Enabled: true
|
319
585
|
|
586
|
+
Style/NegatedUnless:
|
587
|
+
Enabled: true
|
588
|
+
|
589
|
+
Style/NegatedWhile:
|
590
|
+
Enabled: true
|
591
|
+
|
320
592
|
Style/NestedFileDirname: # new in 1.26
|
321
593
|
Enabled: true
|
322
594
|
|
@@ -329,39 +601,91 @@ Style/NestedParenthesizedCalls:
|
|
329
601
|
Style/NestedTernaryOperator:
|
330
602
|
Enabled: true
|
331
603
|
|
604
|
+
Style/Next:
|
605
|
+
Enabled: true
|
606
|
+
|
607
|
+
Style/NilComparison:
|
608
|
+
Enabled: true
|
609
|
+
|
332
610
|
Style/NilLambda:
|
333
611
|
Enabled: true
|
334
612
|
|
613
|
+
Style/NonNilCheck:
|
614
|
+
Enabled: true
|
615
|
+
|
616
|
+
Style/Not:
|
617
|
+
Enabled: true
|
618
|
+
|
335
619
|
Style/NumberedParameters: # new in 1.22
|
336
620
|
Enabled: true
|
337
621
|
|
338
622
|
Style/NumberedParametersLimit: # new in 1.22
|
339
623
|
Enabled: true
|
340
624
|
|
625
|
+
Style/NumericLiteralPrefix:
|
626
|
+
Enabled: true
|
627
|
+
|
628
|
+
Style/NumericLiterals:
|
629
|
+
Enabled: true
|
630
|
+
|
341
631
|
Style/NumericPredicate:
|
342
632
|
Enabled: false
|
343
633
|
|
344
634
|
Style/ObjectThen: # new in 1.28
|
345
635
|
Enabled: true
|
346
636
|
|
637
|
+
Style/OneLineConditional:
|
638
|
+
Enabled: true
|
639
|
+
|
347
640
|
Style/OpenStructUse:
|
348
641
|
Enabled: true
|
349
642
|
|
350
643
|
Style/OperatorMethodCall:
|
351
644
|
Enabled: true
|
352
645
|
|
646
|
+
# For discussion - suggest true, but dozens of fails on Chopin and handful on Coco, Rater
|
647
|
+
# Style/OptionHash:
|
648
|
+
# Enabled: true
|
649
|
+
|
353
650
|
Style/OptionalArguments:
|
354
651
|
Enabled: true
|
355
652
|
|
356
653
|
Style/OptionalBooleanParameter:
|
357
654
|
Enabled: true
|
358
655
|
|
656
|
+
Style/OrAssignment:
|
657
|
+
Enabled: true
|
658
|
+
|
659
|
+
Style/ParallelAssignment:
|
660
|
+
Enabled: true
|
661
|
+
|
359
662
|
Style/ParenthesesAroundCondition:
|
360
663
|
Enabled: true
|
361
664
|
|
665
|
+
Style/PercentLiteralDelimiters:
|
666
|
+
Enabled: true
|
667
|
+
|
668
|
+
Style/PercentQLiterals:
|
669
|
+
Enabled: true
|
670
|
+
|
671
|
+
Style/PerlBackrefs:
|
672
|
+
Enabled: true
|
673
|
+
|
674
|
+
Style/PreferredHashMethods:
|
675
|
+
Enabled: true
|
676
|
+
|
677
|
+
Style/Proc:
|
678
|
+
Enabled: true
|
679
|
+
|
362
680
|
Style/QuotedSymbols:
|
363
681
|
Enabled: true
|
364
682
|
|
683
|
+
Style/RaiseArgs:
|
684
|
+
Enabled: true
|
685
|
+
|
686
|
+
Style/RandomWithOffset:
|
687
|
+
Enabled: true
|
688
|
+
|
365
689
|
Style/RedundantArgument:
|
366
690
|
Enabled: false
|
367
691
|
|
@@ -371,6 +695,15 @@ Style/RedundantAssignment:
|
|
371
695
|
Style/RedundantBegin:
|
372
696
|
Enabled: true
|
373
697
|
|
698
|
+
Style/RedundantCapitalW:
|
699
|
+
Enabled: true
|
700
|
+
|
701
|
+
Style/RedundantCondition:
|
702
|
+
Enabled: true
|
703
|
+
|
704
|
+
Style/RedundantConditional:
|
705
|
+
Enabled: true
|
706
|
+
|
374
707
|
Style/RedundantConstantBase:
|
375
708
|
Enabled: false
|
376
709
|
|
@@ -389,15 +722,27 @@ Style/RedundantFetchBlock:
|
|
389
722
|
Style/RedundantFileExtensionInRequire:
|
390
723
|
Enabled: true
|
391
724
|
|
725
|
+
Style/RedundantFreeze:
|
726
|
+
Enabled: true
|
727
|
+
|
728
|
+
Style/RedundantHeredocDelimiterQuotes:
|
729
|
+
Enabled: true
|
730
|
+
|
392
731
|
Style/RedundantInitialize:
|
393
732
|
Enabled: true
|
394
733
|
|
395
734
|
Style/RedundantInterpolation:
|
396
735
|
Enabled: false
|
397
736
|
|
737
|
+
Style/RedundantLineContinuation:
|
738
|
+
Enabled: true
|
739
|
+
|
398
740
|
Style/RedundantParentheses:
|
399
741
|
Enabled: true
|
400
742
|
|
743
|
+
Style/RedundantPercentQ:
|
744
|
+
Enabled: true
|
745
|
+
|
401
746
|
Style/RedundantRegexpCharacterClass:
|
402
747
|
Enabled: true
|
403
748
|
|
@@ -408,27 +753,74 @@ Style/RedundantReturn:
|
|
408
753
|
Enabled: true
|
409
754
|
Severity: warning
|
410
755
|
|
756
|
+
Style/RedundantSelf:
|
757
|
+
Enabled: true
|
758
|
+
|
411
759
|
Style/RedundantSelfAssignment:
|
412
760
|
Enabled: true
|
413
761
|
|
414
762
|
Style/RedundantSelfAssignmentBranch:
|
415
763
|
Enabled: true
|
416
764
|
|
765
|
+
Style/RedundantSort:
|
766
|
+
Enabled: true
|
767
|
+
|
768
|
+
Style/RedundantSortBy:
|
769
|
+
Enabled: true
|
770
|
+
|
417
771
|
Style/RedundantStringEscape:
|
418
772
|
Enabled: true
|
419
773
|
|
774
|
+
# For discussion - CoCo, Rater OK, manageable amount of autocorrectable in Chopin if set true
|
775
|
+
# Style/RegexpLiteral:
|
776
|
+
# Enabled: true
|
777
|
+
|
778
|
+
# For discussion - dozens of fails, suggest false as autocorrect also unsafe
|
779
|
+
# Style/RequireOrder:
|
780
|
+
# Enabled: false
|
781
|
+
|
782
|
+
Style/RescueModifier:
|
783
|
+
Enabled: true
|
784
|
+
|
785
|
+
Style/RescueStandardError:
|
786
|
+
Enabled: true
|
787
|
+
|
788
|
+
# For discussion - suggest false as fails in all three if set true
|
789
|
+
# Style/ReturnNil:
|
790
|
+
# Enabled: false
|
791
|
+
|
420
792
|
Style/SafeNavigation:
|
421
793
|
Enabled: false
|
422
794
|
|
795
|
+
Style/Sample:
|
796
|
+
Enabled: true
|
797
|
+
|
423
798
|
Style/SelectByRegexp:
|
424
799
|
Enabled: true
|
425
800
|
|
426
801
|
Style/SelfAssignment:
|
427
802
|
Enabled: true
|
428
803
|
|
804
|
+
Style/Semicolon:
|
805
|
+
Enabled: true
|
806
|
+
|
807
|
+
# For discussion - 100s of fails on Chopin, some on CoCo
|
808
|
+
# Style/Send:
|
809
|
+
# Enabled: true
|
810
|
+
|
811
|
+
Style/SignalException:
|
812
|
+
Enabled: true
|
813
|
+
|
429
814
|
Style/SingleArgumentDig:
|
430
815
|
Enabled: true
|
431
816
|
|
817
|
+
# TODO: Small number of autocorrectables on Chopin and Rater
|
818
|
+
# Style/SingleLineBlockParams:
|
819
|
+
# Enabled: true
|
820
|
+
|
821
|
+
Style/SingleLineMethods:
|
822
|
+
Enabled: true
|
823
|
+
|
432
824
|
Style/SlicingWithRange:
|
433
825
|
Enabled: false
|
434
826
|
|
@@ -439,26 +831,126 @@ Style/SpecialGlobalVars:
|
|
439
831
|
Enabled: true
|
440
832
|
Severity: warning
|
441
833
|
|
834
|
+
Style/StabbyLambdaParentheses:
|
835
|
+
Enabled: true
|
836
|
+
|
837
|
+
# For discussion - 100s of fails across Rater, Chopin, CoCo, so suggest false
|
838
|
+
# Style/StaticClass:
|
839
|
+
# Enabled: false
|
840
|
+
|
841
|
+
# TODO: Small number of autocorrects in Chopin
|
842
|
+
Style/StderrPuts:
|
843
|
+
Enabled: true
|
844
|
+
|
442
845
|
Style/StringChars:
|
443
846
|
Enabled: true
|
444
847
|
|
445
848
|
Style/StringConcatenation:
|
446
849
|
Enabled: true
|
447
850
|
|
851
|
+
# For discussion - 10000s of fails in Chopin and Rater so suggest false
|
852
|
+
# Style/StringHashKeys:
|
853
|
+
# Enabled: false
|
854
|
+
|
448
855
|
Style/StringLiterals:
|
449
856
|
Enabled: false
|
450
857
|
|
858
|
+
Style/StringLiteralsInInterpolation:
|
859
|
+
Enabled: true
|
860
|
+
|
861
|
+
Style/StringMethods:
|
862
|
+
Enabled: true
|
863
|
+
|
864
|
+
Style/Strip:
|
865
|
+
Enabled: true
|
866
|
+
|
867
|
+
Style/StructInheritance:
|
868
|
+
Enabled: true
|
869
|
+
|
451
870
|
Style/SwapValues:
|
452
871
|
Enabled: true
|
453
872
|
|
454
873
|
Style/SymbolArray:
|
455
874
|
EnforcedStyle: brackets
|
456
875
|
|
876
|
+
Style/SymbolLiteral:
|
877
|
+
Enabled: true
|
878
|
+
|
879
|
+
Style/SymbolProc:
|
880
|
+
Enabled: true
|
881
|
+
|
882
|
+
Style/TernaryParentheses:
|
883
|
+
Enabled: true
|
884
|
+
|
885
|
+
# For discussion - suggest should be true or at least warn but large number of fails on repos
|
886
|
+
# Style/TopLevelMethodDefinition:
|
887
|
+
# Enabled: true
|
888
|
+
|
889
|
+
Style/TrailingBodyOnClass:
|
890
|
+
Enabled: true
|
891
|
+
|
892
|
+
Style/TrailingBodyOnMethodDefinition:
|
893
|
+
Enabled: true
|
894
|
+
|
895
|
+
Style/TrailingBodyOnModule:
|
896
|
+
Enabled: true
|
897
|
+
|
898
|
+
# For discussion - 100s of fails on Chopin, none on others
|
899
|
+
# Style/TrailingCommaInArguments:
|
900
|
+
# Enabled: true
|
901
|
+
|
902
|
+
# For discussion - 72 fails on Chopin, none on others
|
903
|
+
# Style/TrailingCommaInArrayLiteral:
|
904
|
+
# Enabled: true
|
905
|
+
|
906
|
+
Style/TrailingCommaInBlockArgs:
|
907
|
+
Enabled: true
|
908
|
+
|
909
|
+
# For discussion - 100s of fails on Chopin and Coco, none on Rater
|
910
|
+
# Style/TrailingCommaInHashLiteral:
|
911
|
+
# Enabled: true
|
912
|
+
|
913
|
+
Style/TrailingMethodEndStatement:
|
914
|
+
Enabled: true
|
915
|
+
|
916
|
+
Style/TrailingUnderscoreVariable:
|
917
|
+
Enabled: true
|
918
|
+
|
919
|
+
Style/TrivialAccessors:
|
920
|
+
Enabled: true
|
921
|
+
|
457
922
|
Style/UnlessElse:
|
458
923
|
Enabled: true
|
459
924
|
|
925
|
+
# Single fail on each of Chopin and Rater
|
926
|
+
# Style/UnlessLogicalOperators:
|
927
|
+
# Enabled: true
|
928
|
+
|
929
|
+
Style/UnpackFirst:
|
930
|
+
Enabled: true
|
931
|
+
|
932
|
+
Style/VariableInterpolation:
|
933
|
+
Enabled: true
|
934
|
+
|
935
|
+
Style/WhenThen:
|
936
|
+
Enabled: true
|
937
|
+
|
938
|
+
Style/WhileUntilDo:
|
939
|
+
Enabled: true
|
940
|
+
|
941
|
+
Style/WhileUntilModifier:
|
942
|
+
Enabled: true
|
943
|
+
|
460
944
|
Style/WordArray:
|
461
945
|
EnforcedStyle: brackets
|
462
946
|
|
947
|
+
# For discussion - causes no fails but maybe some may like it?
|
948
|
+
# Style/YodaCondition:
|
949
|
+
# Enabled: true
|
950
|
+
|
951
|
+
# For discussion with above - causes multiple fails
|
952
|
+
# Style/YodaExpression:
|
953
|
+
# Enabled: true
|
954
|
+
|
463
955
|
Style/ZeroLengthPredicate:
|
464
956
|
Enabled: true
|
data/lib/simplycop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplycop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|