1
+ require : rubocop-performance
1
2
inherit_from : .rubocop_todo.yml
2
3
3
4
AllCops :
@@ -34,7 +35,7 @@ Lint/EnsureReturn:
34
35
Enabled : false
35
36
36
37
# MAYBE useful - errors when rescue {} happens.
37
- Lint/HandleExceptions :
38
+ Lint/SuppressedException :
38
39
Enabled : false
39
40
40
41
# MAYBE useful - but too many instances
@@ -119,7 +120,7 @@ Lint/ParenthesesAsGroupedExpression:
119
120
Lint/RescueException :
120
121
Enabled : false
121
122
122
- Lint/StringConversionInInterpolation :
123
+ Lint/RedundantStringCoercion :
123
124
Enabled : false
124
125
125
126
Lint/UnusedBlockArgument :
@@ -143,13 +144,13 @@ Naming/AccessorMethodName:
143
144
Style/Alias :
144
145
Enabled : false
145
146
146
- Layout/AlignArray :
147
+ Layout/ArrayAlignment :
147
148
Enabled : false
148
149
149
- Layout/AlignHash :
150
+ Layout/HashAlignment :
150
151
Enabled : false
151
152
152
- Layout/AlignParameters :
153
+ Layout/ParameterAlignment :
153
154
Enabled : false
154
155
155
156
Metrics/BlockNesting :
@@ -161,9 +162,6 @@ Style/AsciiComments:
161
162
Style/Attr :
162
163
Enabled : false
163
164
164
- Style/BracesAroundHashParameters :
165
- Enabled : false
166
-
167
165
Style/CaseEquality :
168
166
Enabled : false
169
167
@@ -198,7 +196,7 @@ Style/WhenThen:
198
196
Style/WordArray :
199
197
Enabled : false
200
198
201
- Style/UnneededPercentQ :
199
+ Style/RedundantPercentQ :
202
200
Enabled : false
203
201
204
202
Layout/Tab :
@@ -207,7 +205,7 @@ Layout/Tab:
207
205
Layout/SpaceBeforeSemicolon :
208
206
Enabled : false
209
207
210
- Layout/TrailingBlankLines :
208
+ Layout/TrailingEmptyLines :
211
209
Enabled : false
212
210
213
211
Layout/SpaceInsideBlockBraces :
@@ -292,10 +290,10 @@ Style/EachWithObject:
292
290
Layout/EmptyLineBetweenDefs :
293
291
Enabled : false
294
292
295
- Layout/IndentArray :
293
+ Layout/FirstArrayElementIndentation :
296
294
Enabled : false
297
295
298
- Layout/IndentHash :
296
+ Layout/FirstHashElementIndentation :
299
297
Enabled : false
300
298
301
299
Layout/IndentationConsistency :
@@ -313,7 +311,7 @@ Layout/EmptyLinesAroundAccessModifier:
313
311
Style/EmptyLiteral :
314
312
Enabled : false
315
313
316
- Metrics /LineLength :
314
+ Layout /LineLength :
317
315
Enabled : false
318
316
319
317
Style/MethodCallWithoutArgsParentheses :
@@ -526,7 +524,7 @@ Layout/EmptyLinesAroundBlockBody:
526
524
Layout/EmptyLinesAroundClassBody :
527
525
Enabled : false
528
526
529
- Style/UnneededInterpolation :
527
+ Style/RedundantInterpolation :
530
528
Enabled : false
531
529
532
530
Style/SymbolProc :
@@ -575,5 +573,21 @@ Naming/VariableNumber:
575
573
Layout/EndOfLine :
576
574
EnforcedStyle : lf
577
575
578
- Layout/IndentHeredoc : # Not appicable on Ruby 2.1
576
+ Layout/HeredocIndentation : # Not appicable on Ruby 2.1
579
577
Enabled : false
578
+
579
+ Lint/RaiseException :
580
+ Enabled : true
581
+
582
+ Lint/StructNewOverride :
583
+ Enabled : true
584
+
585
+ Style/HashEachMethods :
586
+ Enabled : true
587
+
588
+ Style/HashTransformKeys :
589
+ Enabled : false # requires Ruby 2.5
590
+
591
+ Style/HashTransformValues :
592
+ Enabled : false # requires Ruby 2.4
593
+
0 commit comments