simplycop 1.12.17 → 1.12.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c0c68345a301a886cac2b640d560b1bf52ea18203bf5ed62b640f833ad26373
4
- data.tar.gz: 2f655616a9ec154726cb71151679bde8a9fac5ba777a94a5842d1632f9a49407
3
+ metadata.gz: 9d7b1dfbe91cd595f0491440519bdaf520cb4dfe9048ab500e5ed37f9a83eda2
4
+ data.tar.gz: ed90b05962cb6537ff3370271a67659771232fcce4a35f535231b4bcd67f134e
5
5
  SHA512:
6
- metadata.gz: e7c939a503ccc79483144b55f91b8de8d65e02ed259fdc2e4525ac39f3e10ca9fac15e51cdf4539fd944d1b5799b853b03010f609b0a4146231051549d6904f6
7
- data.tar.gz: c5e10aeb3d5a408a55211794a4bacc1a62b2cbf898edfc3973358526253aa0df00f48163edeb741c338d1535f8cfd384bd3449c707ab8651e4acb4fd93f29633
6
+ metadata.gz: 20cf2ce53fc721de021c0be9f0fb63e119504b44599dfe3ce6f0d39afc6d5ba9cb79fcd9b91331dc3cd8852b51f4e998d7ae90206674cacd002cdba62963026b
7
+ data.tar.gz: 4468e20beee4c4c03a12fc80599f92498a192f84d2842e8e8ce8aa056f1b59091eccdd2ae43905be36c4447c0d31e18af4b81cb74de99927dc6824431ad6864d
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
 
16
16
  steps:
17
- - uses: simplybusiness/version-forget-me-not@v2.3.0
17
+ - uses: simplybusiness/version-forget-me-not@v2
18
18
  env:
19
19
  ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
20
  VERSION_FILE_PATH: "lib/simplycop/version.rb"
data/.simplycop.yml CHANGED
@@ -21,6 +21,10 @@ AllCops:
21
21
  ExtraDetails: true
22
22
  # Adapted from: https://github.com/simplybusiness/how-we-roll/blob/master/development/RUBYSTYLEGUIDE.markdown
23
23
 
24
+
25
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
26
+ Enabled: true
27
+
24
28
  Layout/EmptyLineAfterMultilineCondition:
25
29
  Enabled: true
26
30
 
@@ -61,6 +65,9 @@ Lint/AmbiguousOperatorPrecedence:
61
65
  Lint/AmbiguousRange:
62
66
  Enabled: true
63
67
 
68
+ Lint/ConstantOverwrittenInRescue: # new in 1.31
69
+ Enabled: true
70
+
64
71
  Lint/DeprecatedConstants:
65
72
  Enabled: true
66
73
 
@@ -82,9 +89,15 @@ Lint/EmptyBlock:
82
89
  Lint/EmptyClass:
83
90
  Enabled: true
84
91
 
92
+ Lint/EmptyInPattern: # new in 1.16
93
+ Enabled: true
94
+
85
95
  Lint/HeredocMethodCallPosition:
86
96
  Enabled: true
87
97
 
98
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
99
+ Enabled: true
100
+
88
101
  Lint/LambdaWithoutLiteralBlock:
89
102
  Enabled: true
90
103
 
@@ -141,10 +154,11 @@ Metrics/ParameterLists:
141
154
  CountKeywordArgs: false
142
155
  Enabled: true
143
156
 
144
- Naming/InclusiveLanguage:
157
+ Naming/BlockForwarding: # new in 1.24
145
158
  Enabled: true
146
159
 
147
- ###### COPS REVIEWED ABOVE THIS LINE ######
160
+ Naming/InclusiveLanguage:
161
+ Enabled: true
148
162
 
149
163
  Security/CompoundHash:
150
164
  Enabled: true
@@ -161,6 +175,9 @@ Style/AccessorGrouping:
161
175
  Style/Alias:
162
176
  Enabled: false
163
177
 
178
+ Style/AndOr:
179
+ Enabled: true
180
+
164
181
  Style/ArgumentsForwarding:
165
182
  Enabled: true
166
183
 
@@ -170,40 +187,192 @@ Style/ArrayCoercion:
170
187
  Style/ArrayIntersect:
171
188
  Enabled: true
172
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
+
173
210
  Style/BisectedAttrAccessor:
174
211
  Enabled: true
175
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
+
176
222
  Style/CaseLikeIf:
177
223
  Enabled: true
178
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
+
179
247
  Style/CollectionCompact:
180
248
  Enabled: true
181
249
 
250
+ # Requires discussion - multiple fails on Chopin/Rater/CoCo when left at default
251
+ # Style/CollectionMethods:
252
+
182
253
  Style/ColonMethodCall:
183
254
  Enabled: true
184
255
  Severity: warning
185
256
 
257
+ Style/ColonMethodDefinition:
258
+ Enabled: true
259
+
186
260
  Style/CombinableLoops:
187
261
  Enabled: true
188
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
+
189
276
  Style/ConcatArrayLiterals:
190
277
  Enabled: true
191
278
 
192
279
  Style/ConditionalAssignment:
193
280
  Enabled: true
194
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
+
195
307
  Style/DocumentDynamicEvalDefinition:
196
308
  Enabled: false
197
309
 
198
310
  Style/Documentation:
199
311
  Enabled: false
200
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
+
339
+ Style/EmptyHeredoc: # new in 1.32
340
+ Enabled: true
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
+
201
357
  Style/EndlessMethod:
202
358
  Enabled: true
203
359
 
204
360
  Style/EnvHome:
205
361
  Enabled: true
206
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
+
207
376
  Style/ExplicitBlockArgument:
208
377
  Enabled: true
209
378
 
@@ -213,9 +382,18 @@ Style/ExponentialNotation:
213
382
  Style/FetchEnvVar:
214
383
  Enabled: true
215
384
 
385
+ Style/FileEmpty:
386
+ Enabled: true
387
+
388
+ Style/FileRead: # new in 1.24
389
+ Enabled: true
390
+
216
391
  Style/FileWrite:
217
392
  Enabled: true
218
393
 
394
+ Style/FloatDivision:
395
+ Enabled: true
396
+
219
397
  Style/For:
220
398
  Enabled: true
221
399
 
@@ -231,6 +409,9 @@ Style/FrozenStringLiteralComment:
231
409
  Style/GlobalStdStream:
232
410
  Enabled: true
233
411
 
412
+ Style/GlobalVars:
413
+ Enabled: true
414
+
234
415
  Style/GuardClause:
235
416
  Enabled: false
236
417
 
@@ -249,42 +430,168 @@ Style/HashExcept:
249
430
  Style/HashLikeCase:
250
431
  Enabled: false
251
432
 
433
+ # For discussion - 11000+ fails on Chopin if true by default
434
+ # Style/HashSyntax:
435
+ # Enabled: false
436
+
252
437
  Style/HashTransformKeys:
253
438
  Enabled: true
254
439
 
255
440
  Style/HashTransformValues:
256
441
  Enabled: true
257
442
 
443
+ Style/IdenticalConditionalBranches:
444
+ Enabled: true
445
+
258
446
  Style/IfInsideElse:
259
447
  Enabled: true
260
448
 
261
449
  Style/IfUnlessModifier:
262
450
  Enabled: false
263
451
 
452
+ Style/IfUnlessModifierOfIfUnless:
453
+ Enabled: true
454
+
264
455
  Style/IfWithBooleanLiteralBranches:
265
456
  Enabled: true
266
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
+
479
+ Style/InPatternThen: # new in 1.16
480
+ Enabled: true
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
+
267
487
  Style/KeywordParametersOrder:
268
488
  Enabled: true
269
489
 
490
+ Style/Lambda:
491
+ Enabled: true
492
+
270
493
  Style/LambdaCall:
271
494
  Enabled: true
272
495
 
496
+ Style/LineEndConcatenation:
497
+ Enabled: true
498
+
499
+ Style/MagicCommentFormat: # new in 1.35
500
+ Enabled: true
501
+
502
+ Style/MapCompactWithConditionalBlock: # new in 1.30
503
+ Enabled: true
504
+
273
505
  Style/MapToHash:
274
506
  Enabled: true
275
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
+
276
523
  Style/MethodDefParentheses:
277
524
  Enabled: true
278
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
+
558
+ Style/MultilineInPatternThen: # new in 1.16
559
+ Enabled: true
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
+
279
568
  Style/MultilineTernaryOperator:
280
569
  Enabled: true
281
570
 
571
+ Style/MultilineWhenThen:
572
+ Enabled: true
573
+
574
+ Style/MultipleComparison:
575
+ Enabled: true
576
+
282
577
  Style/MutableConstant:
283
578
  Enabled: false
284
579
 
580
+ Style/NegatedIf:
581
+ Enabled: true
582
+
285
583
  Style/NegatedIfElseCondition:
286
584
  Enabled: true
287
585
 
586
+ Style/NegatedUnless:
587
+ Enabled: true
588
+
589
+ Style/NegatedWhile:
590
+ Enabled: true
591
+
592
+ Style/NestedFileDirname: # new in 1.26
593
+ Enabled: true
594
+
288
595
  Style/NestedModifier:
289
596
  Enabled: true
290
597
 
@@ -294,30 +601,91 @@ Style/NestedParenthesizedCalls:
294
601
  Style/NestedTernaryOperator:
295
602
  Enabled: true
296
603
 
604
+ Style/Next:
605
+ Enabled: true
606
+
607
+ Style/NilComparison:
608
+ Enabled: true
609
+
297
610
  Style/NilLambda:
298
611
  Enabled: true
299
612
 
613
+ Style/NonNilCheck:
614
+ Enabled: true
615
+
616
+ Style/Not:
617
+ Enabled: true
618
+
619
+ Style/NumberedParameters: # new in 1.22
620
+ Enabled: true
621
+
622
+ Style/NumberedParametersLimit: # new in 1.22
623
+ Enabled: true
624
+
625
+ Style/NumericLiteralPrefix:
626
+ Enabled: true
627
+
628
+ Style/NumericLiterals:
629
+ Enabled: true
630
+
300
631
  Style/NumericPredicate:
301
632
  Enabled: false
302
633
 
634
+ Style/ObjectThen: # new in 1.28
635
+ Enabled: true
636
+
637
+ Style/OneLineConditional:
638
+ Enabled: true
639
+
303
640
  Style/OpenStructUse:
304
641
  Enabled: true
305
642
 
306
643
  Style/OperatorMethodCall:
307
644
  Enabled: true
308
645
 
646
+ # For discussion - suggest true, but dozens of fails on Chopin and handful on Coco, Rater
647
+ # Style/OptionHash:
648
+ # Enabled: true
649
+
309
650
  Style/OptionalArguments:
310
651
  Enabled: true
311
652
 
312
653
  Style/OptionalBooleanParameter:
313
654
  Enabled: true
314
655
 
656
+ Style/OrAssignment:
657
+ Enabled: true
658
+
659
+ Style/ParallelAssignment:
660
+ Enabled: true
661
+
315
662
  Style/ParenthesesAroundCondition:
316
663
  Enabled: true
317
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
+
318
680
  Style/QuotedSymbols:
319
681
  Enabled: true
320
682
 
683
+ Style/RaiseArgs:
684
+ Enabled: true
685
+
686
+ Style/RandomWithOffset:
687
+ Enabled: true
688
+
321
689
  Style/RedundantArgument:
322
690
  Enabled: false
323
691
 
@@ -327,6 +695,15 @@ Style/RedundantAssignment:
327
695
  Style/RedundantBegin:
328
696
  Enabled: true
329
697
 
698
+ Style/RedundantCapitalW:
699
+ Enabled: true
700
+
701
+ Style/RedundantCondition:
702
+ Enabled: true
703
+
704
+ Style/RedundantConditional:
705
+ Enabled: true
706
+
330
707
  Style/RedundantConstantBase:
331
708
  Enabled: false
332
709
 
@@ -345,15 +722,27 @@ Style/RedundantFetchBlock:
345
722
  Style/RedundantFileExtensionInRequire:
346
723
  Enabled: true
347
724
 
725
+ Style/RedundantFreeze:
726
+ Enabled: true
727
+
728
+ Style/RedundantHeredocDelimiterQuotes:
729
+ Enabled: true
730
+
348
731
  Style/RedundantInitialize:
349
732
  Enabled: true
350
733
 
351
734
  Style/RedundantInterpolation:
352
735
  Enabled: false
353
736
 
737
+ Style/RedundantLineContinuation:
738
+ Enabled: true
739
+
354
740
  Style/RedundantParentheses:
355
741
  Enabled: true
356
742
 
743
+ Style/RedundantPercentQ:
744
+ Enabled: true
745
+
357
746
  Style/RedundantRegexpCharacterClass:
358
747
  Enabled: true
359
748
 
@@ -364,27 +753,74 @@ Style/RedundantReturn:
364
753
  Enabled: true
365
754
  Severity: warning
366
755
 
756
+ Style/RedundantSelf:
757
+ Enabled: true
758
+
367
759
  Style/RedundantSelfAssignment:
368
760
  Enabled: true
369
761
 
370
762
  Style/RedundantSelfAssignmentBranch:
371
763
  Enabled: true
372
764
 
765
+ Style/RedundantSort:
766
+ Enabled: true
767
+
768
+ Style/RedundantSortBy:
769
+ Enabled: true
770
+
373
771
  Style/RedundantStringEscape:
374
772
  Enabled: true
375
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
+
376
792
  Style/SafeNavigation:
377
793
  Enabled: false
378
794
 
795
+ Style/Sample:
796
+ Enabled: true
797
+
379
798
  Style/SelectByRegexp:
380
799
  Enabled: true
381
800
 
382
801
  Style/SelfAssignment:
383
802
  Enabled: true
384
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
+
385
814
  Style/SingleArgumentDig:
386
815
  Enabled: true
387
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
+
388
824
  Style/SlicingWithRange:
389
825
  Enabled: false
390
826
 
@@ -395,71 +831,126 @@ Style/SpecialGlobalVars:
395
831
  Enabled: true
396
832
  Severity: warning
397
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
+
398
845
  Style/StringChars:
399
846
  Enabled: true
400
847
 
401
848
  Style/StringConcatenation:
402
849
  Enabled: true
403
850
 
851
+ # For discussion - 10000s of fails in Chopin and Rater so suggest false
852
+ # Style/StringHashKeys:
853
+ # Enabled: false
854
+
404
855
  Style/StringLiterals:
405
856
  Enabled: false
406
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
+
407
870
  Style/SwapValues:
408
871
  Enabled: true
409
872
 
410
873
  Style/SymbolArray:
411
874
  EnforcedStyle: brackets
412
875
 
413
- Style/UnlessElse:
876
+ Style/SymbolLiteral:
414
877
  Enabled: true
415
878
 
416
- Style/WordArray:
417
- EnforcedStyle: brackets
418
-
419
- Style/ZeroLengthPredicate:
879
+ Style/SymbolProc:
420
880
  Enabled: true
421
881
 
422
- Gemspec/DeprecatedAttributeAssignment: # new in 1.30
882
+ Style/TernaryParentheses:
423
883
  Enabled: true
424
884
 
425
- Lint/ConstantOverwrittenInRescue: # new in 1.31
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:
426
890
  Enabled: true
427
891
 
428
- Lint/EmptyInPattern: # new in 1.16
892
+ Style/TrailingBodyOnMethodDefinition:
429
893
  Enabled: true
430
894
 
431
- Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
895
+ Style/TrailingBodyOnModule:
432
896
  Enabled: true
433
897
 
434
- Naming/BlockForwarding: # new in 1.24
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:
435
907
  Enabled: true
436
908
 
437
- Style/EmptyHeredoc: # new in 1.32
909
+ # For discussion - 100s of fails on Chopin and Coco, none on Rater
910
+ # Style/TrailingCommaInHashLiteral:
911
+ # Enabled: true
912
+
913
+ Style/TrailingMethodEndStatement:
438
914
  Enabled: true
439
915
 
440
- Style/FileRead: # new in 1.24
916
+ Style/TrailingUnderscoreVariable:
441
917
  Enabled: true
442
918
 
443
- Style/InPatternThen: # new in 1.16
919
+ Style/TrivialAccessors:
444
920
  Enabled: true
445
921
 
446
- Style/MagicCommentFormat: # new in 1.35
922
+ Style/UnlessElse:
447
923
  Enabled: true
448
924
 
449
- Style/MapCompactWithConditionalBlock: # new in 1.30
925
+ # Single fail on each of Chopin and Rater
926
+ # Style/UnlessLogicalOperators:
927
+ # Enabled: true
928
+
929
+ Style/UnpackFirst:
450
930
  Enabled: true
451
931
 
452
- Style/MultilineInPatternThen: # new in 1.16
932
+ Style/VariableInterpolation:
453
933
  Enabled: true
454
934
 
455
- Style/NestedFileDirname: # new in 1.26
935
+ Style/WhenThen:
456
936
  Enabled: true
457
937
 
458
- Style/NumberedParameters: # new in 1.22
938
+ Style/WhileUntilDo:
459
939
  Enabled: true
460
940
 
461
- Style/NumberedParametersLimit: # new in 1.22
941
+ Style/WhileUntilModifier:
462
942
  Enabled: true
463
943
 
464
- Style/ObjectThen: # new in 1.28
944
+ Style/WordArray:
945
+ EnforcedStyle: brackets
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
+
955
+ Style/ZeroLengthPredicate:
465
956
  Enabled: true
data/.simplycop_rspec.yml CHANGED
@@ -16,23 +16,6 @@ RSpec/ChangeByZero:
16
16
  RSpec/ClassCheck:
17
17
  Enabled: true
18
18
 
19
- RSpec/Capybara:
20
- Enabled: true
21
- Include:
22
- - spec/integration/*.rb
23
-
24
- RSpec/Capybara/NegationMatcher:
25
- Enabled: true
26
-
27
- RSpec/Capybara/SpecificActions:
28
- Enabled: true
29
-
30
- RSpec/Capybara/SpecificFinders:
31
- Enabled: true
32
-
33
- RSpec/Capybara/SpecificMatcher:
34
- Enabled: true
35
-
36
19
  RSpec/DescribeClass:
37
20
  Enabled: false
38
21
 
@@ -54,16 +37,6 @@ RSpec/ExcessiveDocstringSpacing:
54
37
  RSpec/ExpectOutput:
55
38
  Enabled: false
56
39
 
57
- RSpec/FactoryBot/ConsistentParenthesesStyle:
58
- Enabled: true
59
-
60
- RSpec/FactoryBot/FactoryNameStyle:
61
- Enabled: true
62
-
63
- # Prefer explicit factorybot call
64
- RSpec/FactoryBot/SyntaxMethods:
65
- Enabled: false
66
-
67
40
  RSpec/FilePath:
68
41
  Enabled: false
69
42
 
@@ -119,3 +92,34 @@ RSpec/Rails/InferredSpecType:
119
92
 
120
93
  RSpec/VerifiedDoubleReference:
121
94
  Enabled: true
95
+
96
+ # Capybara
97
+
98
+ RSpec/Capybara:
99
+ Enabled: true
100
+ Include:
101
+ - spec/integration/*.rb
102
+
103
+ Capybara/NegationMatcher:
104
+ Enabled: true
105
+
106
+ Capybara/SpecificActions:
107
+ Enabled: true
108
+
109
+ Capybara/SpecificFinders:
110
+ Enabled: true
111
+
112
+ Capybara/SpecificMatcher:
113
+ Enabled: true
114
+
115
+ # FactoryBot
116
+
117
+ FactoryBot/ConsistentParenthesesStyle:
118
+ Enabled: true
119
+
120
+ FactoryBot/FactoryNameStyle:
121
+ Enabled: true
122
+
123
+ # Prefer explicit factorybot call
124
+ FactoryBot/SyntaxMethods:
125
+ Enabled: false
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.12.17'
10
+ VERSION = '1.12.20'
11
11
  end
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.17
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-05 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop