simplycop 1.13.1 → 1.13.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.
data/.simplycop.yml CHANGED
@@ -31,8 +31,8 @@ Bundler/GemFilename:
31
31
  Enabled: true
32
32
 
33
33
  # To discuss: Suggest true but 103 fails on Chopin, 10 on Rater
34
- # Bundler/GemVersion:
35
- # Enabled: true
34
+ Bundler/GemVersion:
35
+ Enabled: false
36
36
 
37
37
  Bundler/InsecureProtocolSource:
38
38
  Enabled: true
@@ -41,16 +41,16 @@ Bundler/OrderedGems:
41
41
  Enabled: true
42
42
 
43
43
  # To discuss: Suggest true but 3 fails on Chopin, 21 on Rater
44
- # Gemspec/DependencyVersion:
45
- # Enabled: true
44
+ Gemspec/DependencyVersion:
45
+ Enabled: false
46
46
 
47
47
  # TODO: 1 autocorrectable in Rater and it would pass
48
- # Gemspec/DeprecatedAttributeAssignment:
49
- # Enabled: true
48
+ Gemspec/DeprecatedAttributeAssignment:
49
+ Enabled: true
50
50
 
51
- # To discuss: Suggest true but 2 fails on Chopin, 10 on Rater
52
- # Gemspec/DevelopmentDependencies:
53
- # Enabled: true
51
+ # 2 fails on Chopin, 10 on Rater, so override if necessary
52
+ Gemspec/DevelopmentDependencies:
53
+ Enabled: false
54
54
 
55
55
  Gemspec/DuplicatedAssignment:
56
56
  Enabled: true
@@ -59,12 +59,12 @@ Gemspec/OrderedDependencies:
59
59
  Enabled: true
60
60
 
61
61
  # TODO: Suggest true but 4 fails on Chopin, 3 on Rater, overridden to false on Chopin
62
- # Gemspec/RequireMFA:
63
- # Enabled: true
62
+ Gemspec/RequireMFA:
63
+ Enabled: false
64
64
 
65
- # TODO: Suggest true but 3 fails on Chopin
66
- # Gemspec/RequiredRubyVersion:
67
- # Enabled: true
65
+ # Will need Chopin override
66
+ Gemspec/RequiredRubyVersion:
67
+ Enabled: true
68
68
 
69
69
  Gemspec/RubyVersionGlobalsUsage:
70
70
  Enabled: true
@@ -94,8 +94,9 @@ Layout/CaseIndentation:
94
94
  Enabled: true
95
95
 
96
96
  # Discussion needed about preferred structure. Dozens of fails on each repo if we stick with default, all but 4 on Chopin are autocorrectable
97
- # Layout/ClassStructure:
98
- # Enabled: true
97
+ # Worth agreeing a style?
98
+ Layout/ClassStructure:
99
+ Enabled: false
99
100
 
100
101
  Layout/ClosingHeredocIndentation:
101
102
  Enabled: true
@@ -124,9 +125,9 @@ Layout/EmptyComment:
124
125
  Layout/EmptyLineAfterGuardClause:
125
126
  Enabled: true
126
127
 
127
- # To discuss. Suggest should be true but 500+ autocorrectable fails on Chopin. None on others
128
- # Layout/EmptyLineAfterMagicComment:
129
- # Enabled: true
128
+ # Needs Chopin override
129
+ Layout/EmptyLineAfterMagicComment:
130
+ Enabled: true
130
131
 
131
132
  Layout/EmptyLineAfterMultilineCondition:
132
133
  Enabled: true
@@ -182,22 +183,18 @@ Layout/FirstArrayElementIndentation:
182
183
  Layout/FirstArrayElementLineBreak:
183
184
  Enabled: true
184
185
 
185
- Layout/FirstMethodArgumentLineBreak:
186
- Enabled: true
187
-
188
186
  Layout/FirstHashElementIndentation:
189
187
  Enabled: true
190
188
 
191
189
  Layout/FirstHashElementLineBreak:
192
190
  Enabled: true
193
191
 
194
- # To discuss - 200+ fails on CoCo, none elsewhere
195
- # Layout/FirstMethodArgumentLineBreak:
196
- # Enabled: true
192
+ Layout/FirstMethodArgumentLineBreak:
193
+ Enabled: true
197
194
 
198
- # To discuss - 100+ fails on Chopin, handful on others
199
- # Layout/FirstMethodParameterLineBreak:
200
- # Enabled: true
195
+ # Needs Chopin override
196
+ Layout/FirstMethodParameterLineBreak:
197
+ Enabled: true
201
198
 
202
199
  Layout/FirstParameterIndentation:
203
200
  Enabled: true
@@ -242,18 +239,19 @@ Layout/LineEndStringConcatenationIndentation:
242
239
  Enabled: true
243
240
 
244
241
  # To discuss: configure line length? At default 120: 6805 fails on Chopin, 3 on Rater, 179 on CoCo
245
- # Layout/LineLength
246
- # Enabled: false
242
+ # Typically overridden/"to-do"-ed
243
+ Layout/LineLength:
244
+ Enabled: true
245
+
247
246
  Layout/MultilineArrayBraceLayout:
248
247
  Enabled: true
249
248
 
250
- # To discuss: 100s of fails on each repo but autocorrectable
251
- # Layout/MultilineArrayLineBreaks:
252
- # Enabled: true
249
+ Layout/MultilineArrayLineBreaks:
250
+ Enabled: true
253
251
 
254
252
  # To discuss: 100s of fails on each repo but autocorrectable
255
- # Layout/MultilineAssignmentLayout:
256
- # Enabled: true
253
+ Layout/MultilineAssignmentLayout:
254
+ Enabled: false
257
255
 
258
256
  Layout/MultilineBlockLayout:
259
257
  Enabled: true
@@ -261,13 +259,13 @@ Layout/MultilineBlockLayout:
261
259
  Layout/MultilineHashBraceLayout:
262
260
  Enabled: true
263
261
 
264
- # To discuss: 100s of fails on each repo but autocorrectable
265
- # Layout/MultilineHashKeyLineBreaks:
266
- # Enabled: true
262
+ # To discuss: 100s of fails on each repo but autocorrectable gp
263
+ Layout/MultilineHashKeyLineBreaks:
264
+ Enabled: false
267
265
 
268
266
  # To discuss: 1000s of fails on each repo but autocorrectable
269
- # Layout/MultilineMethodArgumentLineBreaks:
270
- # Enabled: true
267
+ Layout/MultilineMethodArgumentLineBreaks:
268
+ Enabled: false
271
269
 
272
270
  Layout/MultilineMethodCallBraceLayout:
273
271
  Enabled: true
@@ -279,8 +277,8 @@ Layout/MultilineMethodDefinitionBraceLayout:
279
277
  Enabled: true
280
278
 
281
279
  # To discuss: 100s of fails on each repo but autocorrectable
282
- # Layout/MultilineMethodParameterLineBreaks:
283
- # Enabled: true
280
+ Layout/MultilineMethodParameterLineBreaks:
281
+ Enabled: false
284
282
 
285
283
  Layout/MultilineOperationIndentation:
286
284
  Enabled: true
@@ -289,15 +287,15 @@ Layout/ParameterAlignment:
289
287
  Enabled: true
290
288
 
291
289
  # For discussion: 1000s of fails, all autocorrectable
292
- # Layout/RedundantLineBreak:
293
- # Enabled: true
290
+ Layout/RedundantLineBreak:
291
+ Enabled: false
294
292
 
295
293
  Layout/RescueEnsureAlignment:
296
294
  Enabled: true
297
295
 
298
296
  # For discussion: 1000s of fails, all autocorrectable
299
- # Layout/SingleLineBlockChain:
300
- # Enabled: true
297
+ Layout/SingleLineBlockChain:
298
+ Enabled: false
301
299
 
302
300
  Layout/SpaceAfterColon:
303
301
  Enabled: true
@@ -402,8 +400,8 @@ Lint/AmbiguousRange:
402
400
  Enabled: true
403
401
 
404
402
  # TODO: One fail on rater spec then would pass
405
- # Lint/AmbiguousRegexpLiteral:
406
- # Enabled: true
403
+ Lint/AmbiguousRegexpLiteral:
404
+ Enabled: true
407
405
 
408
406
  Lint/AssignmentInCondition:
409
407
  Enabled: true
@@ -421,8 +419,8 @@ Lint/CircularArgumentReference:
421
419
  Enabled: true
422
420
 
423
421
  # TODO: 6 fails in Rater, otherwise clear
424
- # Lint/ConstantDefinitionInBlock:
425
- # Enabled: true
422
+ Lint/ConstantDefinitionInBlock:
423
+ Enabled: true
426
424
 
427
425
  Lint/ConstantOverwrittenInRescue: # new in 1.31
428
426
  Enabled: true
@@ -481,9 +479,8 @@ Lint/DuplicateRescueException:
481
479
  Lint/EachWithObjectArgument:
482
480
  Enabled: true
483
481
 
484
- # TODO: 19 autocorrectable odd else layouts in Rater
485
- # Lint/ElseLayout:
486
- # Enabled: true
482
+ Lint/ElseLayout:
483
+ Enabled: true
487
484
 
488
485
  Lint/EmptyBlock:
489
486
  Enabled: true
@@ -542,9 +539,9 @@ Lint/ImplicitStringConcatenation:
542
539
  Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
543
540
  Enabled: true
544
541
 
545
- # TODO: two fails on Rater, one on CoCo, otherwise fine to enable
546
- # Lint/IneffectiveAccessModifier:
547
- # Enabled: true
542
+ # TODO: two fails on Rater, one on CoCo, otherwise fine
543
+ Lint/IneffectiveAccessModifier:
544
+ Enabled: true
548
545
 
549
546
  Lint/InheritException:
550
547
  Enabled: true
@@ -568,8 +565,11 @@ Lint/MissingCopEnableDirective:
568
565
  Enabled: true
569
566
 
570
567
  # TODO: Handful of errors on Rater and CoCo
571
- # Lint/MissingSuper:
572
- # Enabled: true
568
+ Lint/MissingSuper:
569
+ Enabled: true
570
+
571
+ Lint/MixedCaseRange:
572
+ Enabled: true
573
573
 
574
574
  Lint/MixedRegexpCaptureTypes:
575
575
  Enabled: true
@@ -599,9 +599,8 @@ Lint/NonDeterministicRequireOrder:
599
599
  Lint/NonLocalExitFromIterator:
600
600
  Enabled: true
601
601
 
602
- # 100s of fails on Rater and Chopin
603
- # Lint/NumberConversion:
604
- # Enabled: true
602
+ Lint/NumberConversion:
603
+ Enabled: false
605
604
 
606
605
  Lint/NumberedParameterAssignment:
607
606
  Enabled: true
@@ -630,17 +629,18 @@ Lint/RaiseException:
630
629
  Lint/RandOne:
631
630
  Enabled: true
632
631
 
633
- # Can't be checked with --only, enable once Rater and Chopin up to date with Simplycop
634
- # Lint/RedundantCopDisableDirective:
635
- # Enabled: true
632
+ Lint/RedundantCopDisableDirective:
633
+ Enabled: true
636
634
 
637
- # Can't be checked with --only, enable once Rater and Chopin up to date with Simplycop
638
- # Lint/RedundantCopEnableDirective:
639
- # Enabled: true
635
+ Lint/RedundantCopEnableDirective:
636
+ Enabled: true
640
637
 
641
638
  Lint/RedundantDirGlobSort:
642
639
  Enabled: true
643
640
 
641
+ Lint/RedundantRegexpQuantifiers:
642
+ Enabled: true
643
+
644
644
  Lint/RedundantRequireStatement:
645
645
  Enabled: true
646
646
 
@@ -708,9 +708,9 @@ Lint/ShadowedArgument:
708
708
  Lint/ShadowedException:
709
709
  Enabled: true
710
710
 
711
- # To discuss: 63 offences on Chopin, none on Rater, CoCo
712
- # Lint/ShadowingOuterLocalVariable:
713
- # Enabled: true
711
+ # Needs Chopin override
712
+ Lint/ShadowingOuterLocalVariable:
713
+ Enabled: true
714
714
 
715
715
  Lint/StructNewOverride:
716
716
  Enabled: true
@@ -782,8 +782,8 @@ Lint/UselessMethodDefinition:
782
782
  Enabled: true
783
783
 
784
784
  # TODO: Single fail on Chopin
785
- # Lint/UselessRescue:
786
- # Enabled: true
785
+ Lint/UselessRescue:
786
+ Enabled: true
787
787
 
788
788
  Lint/UselessRuby2Keywords:
789
789
  Enabled: true
@@ -841,9 +841,9 @@ Metrics/PerceivedComplexity:
841
841
  Migration/DepartmentName:
842
842
  Enabled: true
843
843
 
844
- # Suggest true but causes 17 fails in Chopin, 6 in Rater, 2 in CoCo
845
- # Naming/AccessorMethodName:
846
- # Enabled: true
844
+ # Needs override or fix in Chopin
845
+ Naming/AccessorMethodName:
846
+ Enabled: true
847
847
 
848
848
  Naming/AsciiIdentifiers:
849
849
  Enabled: true
@@ -875,55 +875,63 @@ Naming/HeredocDelimiterNaming:
875
875
  Naming/InclusiveLanguage:
876
876
  Enabled: true
877
877
 
878
- # To discuss: suggest true but 86 fails on Chopin
879
- # Naming/MemoizedInstanceVariableName:
880
- # Enabled: true
878
+ # Need override - 86 fails on Chopin
879
+ Naming/MemoizedInstanceVariableName:
880
+ Enabled: true
881
881
 
882
882
  Naming/MethodName:
883
883
  Enabled: true
884
884
 
885
- # To discuss: suggest true with possible allowed exceptions as below (10 fails on Chopin, exceptions would allow 4,
886
- # as and to are already exceptions in Rater so would remove need to configure there)
887
- # Naming/MethodParameterName:
888
- # Enabled: true
889
- # AllowedNames:
890
- # - as
891
- # - ex
892
- # - n
893
- # - to
885
+ Naming/MethodParameterName:
886
+ Enabled: true
887
+ AllowedNames:
888
+ - as
889
+ - ex
890
+ - n
891
+ - to
894
892
 
895
893
  # To discuss: suggest true but 52 fails in Chopin, 8 in Coco (consider with Naming/AccessorName)
896
- # Naming/PredicateName:
897
- # Enabled: true
894
+ Naming/PredicateName:
895
+ Enabled: false
898
896
 
899
- # To discuss: Should decide on a style. Default e instead of err causes 47 fails on Chopin, none on Rater, CoCo
900
- # Naming/RescuedExceptionsVariableName:
901
- # Enabled: true
897
+ # Need Chopin override
898
+ Naming/RescuedExceptionsVariableName:
899
+ Enabled: true
902
900
 
903
901
  Naming/VariableName:
904
902
  Enabled: true
905
903
 
906
- # To discuss: suggest enforce snake_case as this seems to be the preferred style
907
- # Default normalcase causes
908
- # Naming/VariableNumber:
909
- # Enabled: true
910
- # EnforcedStyle: snake_case
911
-
904
+ # snake_case: 311 fails on Chopin, normalcase: 1118 fails on Chopin
905
+ # snake_case default on Rater so make default in simplycop
906
+ Naming/VariableNumber:
907
+ Enabled: true
908
+ EnforcedStyle: snake_case
909
+ AllowedIdentifiers:
910
+ - capture3
911
+ - iso8601
912
+ - oauth2
913
+ - rfc1123_date
914
+ - rfc822
915
+ - rfc2822
916
+ - rfc3339
917
+ - x86_64
918
+
912
919
  # Overridden to false in Chopin
913
920
  Security/CompoundHash:
914
921
  Enabled: true
915
922
 
916
- # Should probably be set to true but 13 offences in chopin spec
917
- # Security/Eval:
918
- # Enabled: true
923
+ Security/Eval:
924
+ Enabled: true
925
+ Exclude:
926
+ - 'spec/**/*.rb'
919
927
 
920
928
  # Overridden to false on Chopin
921
929
  Security/IoMethods:
922
930
  Enabled: true
923
931
 
924
- # Should probably be set to true but 18 offences in chopin spec
925
- # Security/JSONLoad:
926
- # Enabled: true
932
+ # Needs override in chopin spec
933
+ Security/JSONLoad:
934
+ Enabled: true
927
935
 
928
936
  Security/MarshalLoad:
929
937
  Enabled: true
@@ -931,9 +939,8 @@ Security/MarshalLoad:
931
939
  Security/Open:
932
940
  Enabled: true
933
941
 
934
- # Two fails on ContinuousCover, others fine
935
- # Security/YAMLLoad:
936
- # Enabled: true
942
+ Security/YAMLLoad:
943
+ Enabled: true
937
944
 
938
945
  Style/AccessModifierDeclarations:
939
946
  Enabled: false
@@ -970,11 +977,11 @@ Style/Attr:
970
977
  Enabled: true
971
978
 
972
979
  # Requires fixes in Chopin and Rater
973
- # Style/AutoResourceCleanup:
974
- # Enabled: true
980
+ Style/AutoResourceCleanup:
981
+ Enabled: true
975
982
 
976
- # Requires discussion
977
- # Style/BarePercentLiterals:
983
+ Style/BarePercentLiterals:
984
+ Enabled: true
978
985
 
979
986
  Style/BeginBlock:
980
987
  Enabled: true
@@ -985,8 +992,11 @@ Style/BisectedAttrAccessor:
985
992
  Style/BlockComments:
986
993
  Enabled: true
987
994
 
988
- # Requires discussion - 1000+ offences in Chopin alone, unless options set
989
- # Style/BlockDelimiters:
995
+ # Enabled by default and used in Rater so made explicit here
996
+ # However, overridden by Chopin to do file and proposal to use semantic style:
997
+ # See #technical-excellence-community discussion 28/02/23
998
+ Style/BlockDelimiters:
999
+ Enabled: true
990
1000
 
991
1001
  Style/CaseEquality:
992
1002
  Enabled: true
@@ -997,8 +1007,10 @@ Style/CaseLikeIf:
997
1007
  Style/CharacterLiteral:
998
1008
  Enabled: true
999
1009
 
1000
- # Requires discussion
1001
- # Style/ClassAndModuleChildren:
1010
+ Style/ClassAndModuleChildren:
1011
+ Enabled: true
1012
+ Exclude:
1013
+ - spec/**/*.rb
1002
1014
 
1003
1015
  Style/ClassCheck:
1004
1016
  Enabled: true
@@ -1009,9 +1021,9 @@ Style/ClassEqualityComparison:
1009
1021
  Style/ClassMethods:
1010
1022
  Enabled: true
1011
1023
 
1012
- # Requires discussion - multiple fails on Chopin/Rater/CoCo when left at default
1013
- # Style/ClassMethodsDefinitions:
1014
- # Enabled: true
1024
+ # Requires discussion - multiple fails on Chopin/Rater/CoCo when set true with default
1025
+ Style/ClassMethodsDefinitions:
1026
+ Enabled: false
1015
1027
 
1016
1028
  Style/ClassVars:
1017
1029
  Enabled: true
@@ -1019,8 +1031,9 @@ Style/ClassVars:
1019
1031
  Style/CollectionCompact:
1020
1032
  Enabled: true
1021
1033
 
1022
- # Requires discussion - multiple fails on Chopin/Rater/CoCo when left at default
1023
- # Style/CollectionMethods:
1034
+ # Requires discussion - multiple fails on Chopin/Rater/CoCo when set true with default
1035
+ Style/CollectionMethods:
1036
+ Enabled: false
1024
1037
 
1025
1038
  Style/ColonMethodCall:
1026
1039
  Enabled: true
@@ -1052,17 +1065,19 @@ Style/ConditionalAssignment:
1052
1065
  Enabled: true
1053
1066
 
1054
1067
  # Requires discussion - 1000+ offences in Chopin alone, unless options set
1055
- # Style/ConstantVisibility:
1068
+ Style/ConstantVisibility:
1069
+ Enabled: false
1056
1070
 
1057
1071
  # For discussion
1058
- # Style/Copyright:
1072
+ Style/Copyright:
1073
+ Enabled: false
1059
1074
 
1060
1075
  Style/DataInheritance:
1061
1076
  Enabled: true
1062
1077
 
1063
1078
  # Requires discussion - multiple fails on Chopin/Rater/CoCo if true
1064
- # Style/DateTime:
1065
- # Enabled: false
1079
+ Style/DateTime:
1080
+ Enabled: false
1066
1081
 
1067
1082
  Style/DefWithParentheses:
1068
1083
  Enabled: true
@@ -1074,7 +1089,8 @@ Style/DirEmpty:
1074
1089
  Enabled: true
1075
1090
 
1076
1091
  # For discussion - - multiple fails on Chopin/Rater/CoCo
1077
- # Style/DisableCopsWithinSourceCodeDirective:
1092
+ Style/DisableCopsWithinSourceCodeDirective:
1093
+ Enabled: false
1078
1094
 
1079
1095
  Style/DocumentDynamicEvalDefinition:
1080
1096
  Enabled: false
@@ -1083,8 +1099,8 @@ Style/Documentation:
1083
1099
  Enabled: false
1084
1100
 
1085
1101
  # Requires discussion - suggest false as 7000+ offences in Chopin alone
1086
- # Style/DocumentationMethod:
1087
- # Enabled: false
1102
+ Style/DocumentationMethod:
1103
+ Enabled: false
1088
1104
 
1089
1105
  Style/DoubleCopDisableDirective:
1090
1106
  Enabled: true
@@ -1092,9 +1108,9 @@ Style/DoubleCopDisableDirective:
1092
1108
  Style/DoubleNegation:
1093
1109
  Enabled: true
1094
1110
 
1095
- # Suggest true but 100+ fails on Rater, none on Chopin or CoCo
1096
- # Style/EachForSimpleLoop:
1097
- # Enabled: true
1111
+ # Need override in Rater
1112
+ Style/EachForSimpleLoop:
1113
+ Enabled: true
1098
1114
 
1099
1115
  Style/EachWithObject:
1100
1116
  Enabled: true
@@ -1108,7 +1124,7 @@ Style/EmptyCaseCondition:
1108
1124
  Style/EmptyElse:
1109
1125
  Enabled: true
1110
1126
 
1111
- Style/EmptyHeredoc: # new in 1.32
1127
+ Style/EmptyHeredoc:
1112
1128
  Enabled: true
1113
1129
 
1114
1130
  Style/EmptyLambdaParameter:
@@ -1233,28 +1249,28 @@ Style/IfWithSemicolon:
1233
1249
  Enabled: true
1234
1250
 
1235
1251
  # For dicussion - 100s of fails on Chopin, CoCo, Rater
1236
- # Style/ImplicitRuntimeError:
1237
- # Enabled: false
1252
+ Style/ImplicitRuntimeError:
1253
+ Enabled: false
1238
1254
 
1239
1255
  Style/InfiniteLoop:
1240
1256
  Enabled: true
1241
1257
 
1242
- # For discussion - suggest false as 1000s of fails
1243
- # Style/InlineComment:
1244
- # Enabled: false
1258
+ Style/InlineComment:
1259
+ Enabled: false
1245
1260
 
1246
1261
  Style/InverseMethods:
1247
1262
  Enabled: true
1248
1263
 
1249
- # Manageable number of fails on Chopin, CoCo, Rater, suggest true
1250
- # Style/InvertibleUnlessCondition:
1251
- # Enabled: true
1264
+ Style/InvertibleUnlessCondition:
1265
+ Enabled: true
1252
1266
 
1253
1267
  Style/InPatternThen: # new in 1.16
1254
1268
  Enabled: true
1255
1269
 
1256
- # For discussion - multiple fails but most could be solved by excluding spec files
1257
- # Style/IpAddresses:
1270
+ # For discussion - disabled by default but could be enabled
1271
+ # and mostly solved by excluding spec files
1272
+ Style/IpAddresses:
1273
+ Enabled: false
1258
1274
  # Enabled: true
1259
1275
  # Exclude: [*spec.rb]
1260
1276
 
@@ -1284,16 +1300,16 @@ Style/MapToHash:
1284
1300
  Style/MapToSet:
1285
1301
  Enabled: true
1286
1302
 
1287
- # For discussion - 1000s of fails, suggest false
1288
- # Style/MethodCallWithArgsParentheses:
1289
- # Enabled: false
1303
+ # For discussion - 1000s of fails if set true
1304
+ Style/MethodCallWithArgsParentheses:
1305
+ Enabled: false
1290
1306
 
1291
1307
  Style/MethodCallWithoutArgsParentheses:
1292
1308
  Enabled: false
1293
1309
 
1294
- # For discussion - 100s of fails, suggest false
1295
- # Style/MethodCalledOnDoEndBlock:
1296
- # Enabled: false
1310
+ # For discussion - 100s of fails if set true
1311
+ Style/MethodCalledOnDoEndBlock:
1312
+ Enabled: false
1297
1313
 
1298
1314
  Style/MethodDefParentheses:
1299
1315
  Enabled: true
@@ -1305,9 +1321,8 @@ Style/MinMax:
1305
1321
  Style/MinMaxComparison:
1306
1322
  Enabled: true
1307
1323
 
1308
- # For discussion - 100s of fails with default true
1309
- # Style/MissingElse:
1310
- # Enabled: true
1324
+ Style/MissingElse:
1325
+ Enabled: false
1311
1326
 
1312
1327
  Style/MissingRespondToMissing:
1313
1328
  Enabled: true
@@ -1337,8 +1352,8 @@ Style/MultilineMemoization:
1337
1352
  Enabled: true
1338
1353
 
1339
1354
  # For discussion - suggest true, but 100s of fails in Chopin and handful in CoCo
1340
- # Style/MultilineMethodSignature:
1341
- # Enabled: true
1355
+ Style/MultilineMethodSignature:
1356
+ Enabled: false
1342
1357
 
1343
1358
  Style/MultilineTernaryOperator:
1344
1359
  Enabled: true
@@ -1364,7 +1379,7 @@ Style/NegatedUnless:
1364
1379
  Style/NegatedWhile:
1365
1380
  Enabled: true
1366
1381
 
1367
- Style/NestedFileDirname: # new in 1.26
1382
+ Style/NestedFileDirname:
1368
1383
  Enabled: true
1369
1384
 
1370
1385
  Style/NestedModifier:
@@ -1391,10 +1406,10 @@ Style/NonNilCheck:
1391
1406
  Style/Not:
1392
1407
  Enabled: true
1393
1408
 
1394
- Style/NumberedParameters: # new in 1.22
1409
+ Style/NumberedParameters:
1395
1410
  Enabled: true
1396
1411
 
1397
- Style/NumberedParametersLimit: # new in 1.22
1412
+ Style/NumberedParametersLimit:
1398
1413
  Enabled: true
1399
1414
 
1400
1415
  Style/NumericLiteralPrefix:
@@ -1406,7 +1421,7 @@ Style/NumericLiterals:
1406
1421
  Style/NumericPredicate:
1407
1422
  Enabled: false
1408
1423
 
1409
- Style/ObjectThen: # new in 1.28
1424
+ Style/ObjectThen:
1410
1425
  Enabled: true
1411
1426
 
1412
1427
  Style/OneLineConditional:
@@ -1452,7 +1467,7 @@ Style/PreferredHashMethods:
1452
1467
  Style/Proc:
1453
1468
  Enabled: true
1454
1469
 
1455
- # Overridden to false in Chopin
1470
+ # Overridden to false in Chopin and Rater
1456
1471
  Style/QuotedSymbols:
1457
1472
  Enabled: true
1458
1473
 
@@ -1465,6 +1480,9 @@ Style/RandomWithOffset:
1465
1480
  Style/RedundantArgument:
1466
1481
  Enabled: false
1467
1482
 
1483
+ Style/RedundantArrayConstructor:
1484
+ Enabled: true
1485
+
1468
1486
  Style/RedundantAssignment:
1469
1487
  Enabled: true
1470
1488
 
@@ -1483,6 +1501,9 @@ Style/RedundantConditional:
1483
1501
  Style/RedundantConstantBase:
1484
1502
  Enabled: false
1485
1503
 
1504
+ Style/RedundantCurrentDirectoryInPath:
1505
+ Enabled: false
1506
+
1486
1507
  Style/RedundantDoubleSplatHashBraces:
1487
1508
  Enabled: true
1488
1509
 
@@ -1498,6 +1519,9 @@ Style/RedundantFetchBlock:
1498
1519
  Style/RedundantFileExtensionInRequire:
1499
1520
  Enabled: true
1500
1521
 
1522
+ Style/RedundantFilterChain:
1523
+ Enabled: true
1524
+
1501
1525
  Style/RedundantFreeze:
1502
1526
  Enabled: true
1503
1527
 
@@ -1519,9 +1543,15 @@ Style/RedundantParentheses:
1519
1543
  Style/RedundantPercentQ:
1520
1544
  Enabled: true
1521
1545
 
1546
+ Style/RedundantRegexpArgument:
1547
+ Enabled: true
1548
+
1522
1549
  Style/RedundantRegexpCharacterClass:
1523
1550
  Enabled: true
1524
1551
 
1552
+ Style/RedundantRegexpConstructor:
1553
+ Enabled: true
1554
+
1525
1555
  Style/RedundantRegexpEscape:
1526
1556
  Enabled: true
1527
1557
 
@@ -1549,13 +1579,12 @@ Style/RedundantSortBy:
1549
1579
  Style/RedundantStringEscape:
1550
1580
  Enabled: true
1551
1581
 
1552
- # For discussion - CoCo, Rater OK, manageable amount of autocorrectable in Chopin if set true
1553
- # Style/RegexpLiteral:
1554
- # Enabled: true
1582
+ Style/RegexpLiteral:
1583
+ Enabled: true
1555
1584
 
1556
- # For discussion - dozens of fails, suggest false as autocorrect also unsafe
1557
- # Style/RequireOrder:
1558
- # Enabled: false
1585
+ # For discussion - would improve legibility if set true
1586
+ Style/RequireOrder:
1587
+ Enabled: false
1559
1588
 
1560
1589
  Style/RescueModifier:
1561
1590
  Enabled: true
@@ -1563,9 +1592,13 @@ Style/RescueModifier:
1563
1592
  Style/RescueStandardError:
1564
1593
  Enabled: true
1565
1594
 
1566
- # For discussion - suggest false as fails in all three if set true
1567
- # Style/ReturnNil:
1568
- # Enabled: false
1595
+ # For discussion - agreed configuration would be nice
1596
+ Style/ReturnNil:
1597
+ Enabled: false
1598
+
1599
+ # For discussion - as ReturnNil agreed configuration would be nice
1600
+ Style/ReturnNilInPredicateMethodDefinition:
1601
+ Enabled: false
1569
1602
 
1570
1603
  Style/SafeNavigation:
1571
1604
  Enabled: false
@@ -1583,9 +1616,8 @@ Style/SelfAssignment:
1583
1616
  Style/Semicolon:
1584
1617
  Enabled: true
1585
1618
 
1586
- # For discussion - 100s of fails on Chopin, some on CoCo
1587
- # Style/Send:
1588
- # Enabled: true
1619
+ Style/Send:
1620
+ Enabled: false
1589
1621
 
1590
1622
  Style/SignalException:
1591
1623
  Enabled: true
@@ -1614,9 +1646,9 @@ Style/SpecialGlobalVars:
1614
1646
  Style/StabbyLambdaParentheses:
1615
1647
  Enabled: true
1616
1648
 
1617
- # For discussion - 100s of fails across Rater, Chopin, CoCo, so suggest false
1618
- # Style/StaticClass:
1619
- # Enabled: false
1649
+ # Will require Chopin override
1650
+ Style/StaticClass:
1651
+ Enabled: true
1620
1652
 
1621
1653
  # TODO: Small number of autocorrects in Chopin
1622
1654
  Style/StderrPuts:
@@ -1628,9 +1660,8 @@ Style/StringChars:
1628
1660
  Style/StringConcatenation:
1629
1661
  Enabled: true
1630
1662
 
1631
- # For discussion - 10000s of fails in Chopin and Rater so suggest false
1632
- # Style/StringHashKeys:
1633
- # Enabled: false
1663
+ Style/StringHashKeys:
1664
+ Enabled: false
1634
1665
 
1635
1666
  Style/StringLiterals:
1636
1667
  Enabled: false
@@ -1663,8 +1694,8 @@ Style/TernaryParentheses:
1663
1694
  Enabled: true
1664
1695
 
1665
1696
  # For discussion - suggest should be true or at least warn but large number of fails on repos
1666
- # Style/TopLevelMethodDefinition:
1667
- # Enabled: true
1697
+ Style/TopLevelMethodDefinition:
1698
+ Enabled: false
1668
1699
 
1669
1700
  Style/TrailingBodyOnClass:
1670
1701
  Enabled: true
@@ -1675,20 +1706,20 @@ Style/TrailingBodyOnMethodDefinition:
1675
1706
  Style/TrailingBodyOnModule:
1676
1707
  Enabled: true
1677
1708
 
1678
- # For discussion - 100s of fails on Chopin, none on others
1679
- # Style/TrailingCommaInArguments:
1680
- # Enabled: true
1709
+ # Will require Chopin override
1710
+ Style/TrailingCommaInArguments:
1711
+ Enabled: true
1681
1712
 
1682
- # For discussion - 72 fails on Chopin, none on others
1683
- # Style/TrailingCommaInArrayLiteral:
1684
- # Enabled: true
1713
+ # Will require Chopin override
1714
+ Style/TrailingCommaInArrayLiteral:
1715
+ Enabled: true
1685
1716
 
1686
1717
  Style/TrailingCommaInBlockArgs:
1687
1718
  Enabled: true
1688
1719
 
1689
- # For discussion - 100s of fails on Chopin and Coco, none on Rater
1690
- # Style/TrailingCommaInHashLiteral:
1691
- # Enabled: true
1720
+ # Will require Chopin override
1721
+ Style/TrailingCommaInHashLiteral:
1722
+ Enabled: true
1692
1723
 
1693
1724
  Style/TrailingMethodEndStatement:
1694
1725
  Enabled: true
@@ -1720,9 +1751,13 @@ Style/WhileUntilDo:
1720
1751
  Style/WhileUntilModifier:
1721
1752
  Enabled: true
1722
1753
 
1754
+ # Overridden to false in Chopin
1723
1755
  Style/WordArray:
1724
1756
  EnforcedStyle: brackets
1725
1757
 
1758
+ Style/YAMLFileRead:
1759
+ Enabled: true
1760
+
1726
1761
  Style/YodaCondition:
1727
1762
  Enabled: false
1728
1763