1+ require : rubocop-performance
12inherit_from : .rubocop_todo.yml
23
34AllCops :
5+ TargetRubyVersion : 2.3
46 Exclude :
57 # Ignore HTML related things
68 - ' **/*.erb'
@@ -9,6 +11,7 @@ AllCops:
911 - spec/fixtures/modules/**/*
1012 - spec/fixtures/ruby/**/*
1113
14+
1215# DISABLED - not useful
1316Bundler/OrderedGems :
1417 Enabled : false
@@ -34,7 +37,7 @@ Lint/EnsureReturn:
3437 Enabled : false
3538
3639# MAYBE useful - errors when rescue {} happens.
37- Lint/HandleExceptions :
40+ Lint/SuppressedException :
3841 Enabled : false
3942
4043# MAYBE useful - but too many instances
@@ -119,7 +122,7 @@ Lint/ParenthesesAsGroupedExpression:
119122Lint/RescueException :
120123 Enabled : false
121124
122- Lint/StringConversionInInterpolation :
125+ Lint/RedundantStringCoercion :
123126 Enabled : false
124127
125128Lint/UnusedBlockArgument :
@@ -143,13 +146,13 @@ Naming/AccessorMethodName:
143146Style/Alias :
144147 Enabled : false
145148
146- Layout/AlignArray :
149+ Layout/ArrayAlignment :
147150 Enabled : false
148151
149- Layout/AlignHash :
152+ Layout/HashAlignment :
150153 Enabled : false
151154
152- Layout/AlignParameters :
155+ Layout/ParameterAlignment :
153156 Enabled : false
154157
155158Metrics/BlockNesting :
@@ -161,9 +164,6 @@ Style/AsciiComments:
161164Style/Attr :
162165 Enabled : false
163166
164- Style/BracesAroundHashParameters :
165- Enabled : false
166-
167167Style/CaseEquality :
168168 Enabled : false
169169
@@ -198,7 +198,7 @@ Style/WhenThen:
198198Style/WordArray :
199199 Enabled : false
200200
201- Style/UnneededPercentQ :
201+ Style/RedundantPercentQ :
202202 Enabled : false
203203
204204Layout/Tab :
@@ -207,7 +207,7 @@ Layout/Tab:
207207Layout/SpaceBeforeSemicolon :
208208 Enabled : false
209209
210- Layout/TrailingBlankLines :
210+ Layout/TrailingEmptyLines :
211211 Enabled : false
212212
213213Layout/SpaceInsideBlockBraces :
@@ -292,10 +292,10 @@ Style/EachWithObject:
292292Layout/EmptyLineBetweenDefs :
293293 Enabled : false
294294
295- Layout/IndentArray :
295+ Layout/FirstArrayElementIndentation :
296296 Enabled : false
297297
298- Layout/IndentHash :
298+ Layout/FirstHashElementIndentation :
299299 Enabled : false
300300
301301Layout/IndentationConsistency :
@@ -313,7 +313,7 @@ Layout/EmptyLinesAroundAccessModifier:
313313Style/EmptyLiteral :
314314 Enabled : false
315315
316- Metrics /LineLength :
316+ Layout /LineLength :
317317 Enabled : false
318318
319319Style/MethodCallWithoutArgsParentheses :
@@ -430,6 +430,9 @@ Style/Not:
430430Style/NumericLiterals :
431431 Enabled : false
432432
433+ Style/NumericPredicate :
434+ Enabled : false
435+
433436Style/OneLineConditional :
434437 Enabled : false
435438
@@ -526,7 +529,7 @@ Layout/EmptyLinesAroundBlockBody:
526529Layout/EmptyLinesAroundClassBody :
527530 Enabled : false
528531
529- Style/UnneededInterpolation :
532+ Style/RedundantInterpolation :
530533 Enabled : false
531534
532535Style/SymbolProc :
@@ -575,5 +578,24 @@ Naming/VariableNumber:
575578Layout/EndOfLine :
576579 EnforcedStyle : lf
577580
578- Layout/IndentHeredoc : # Not appicable on Ruby 2.1
581+ Layout/HeredocIndentation : # Not appicable on Ruby 2.1
579582 Enabled : false
583+
584+ Lint/RaiseException :
585+ Enabled : true
586+
587+ Lint/StructNewOverride :
588+ Enabled : true
589+
590+ Style/HashEachMethods :
591+ Enabled : true
592+
593+ Style/HashTransformKeys :
594+ Enabled : false # requires Ruby 2.5
595+
596+ Style/HashTransformValues :
597+ Enabled : false # requires Ruby 2.4
598+
599+ Naming/MethodParameterName :
600+ Enabled : true
601+ AllowedNames : [ o ]
0 commit comments