1
+ inherit_from : .rubocop_todo.yml
2
+
1
3
AllCops :
2
4
Exclude :
3
5
# Ignore HTML related things
@@ -12,7 +14,7 @@ Bundler/OrderedGems:
12
14
Bundler/DuplicatedGem :
13
15
Enabled : false
14
16
15
- Lint /ConditionPosition :
17
+ Layout /ConditionPosition :
16
18
Enabled : true
17
19
18
20
Lint/ElseLayout :
@@ -32,10 +34,6 @@ Lint/EnsureReturn:
32
34
Lint/HandleExceptions :
33
35
Enabled : false
34
36
35
- # MAYBE useful - catches while 1
36
- Lint/LiteralInCondition :
37
- Enabled : false
38
-
39
37
# MAYBE useful - but too many instances
40
38
Lint/ShadowingOuterLocalVariable :
41
39
Enabled : false
@@ -56,7 +54,7 @@ Lint/AssignmentInCondition:
56
54
Enabled : true
57
55
58
56
# DISABLED - not useful
59
- Style /SpaceBeforeComment :
57
+ Layout /SpaceBeforeComment :
60
58
Enabled : false
61
59
62
60
# DISABLED - not useful
@@ -92,15 +90,15 @@ Lint/AmbiguousRegexpLiteral:
92
90
Enabled : false
93
91
94
92
# DISABLED
95
- Lint /BlockAlignment :
93
+ Layout /BlockAlignment :
96
94
Enabled : false
97
95
98
96
# DISABLED
99
- Lint /DefEndAlignment :
97
+ Layout /DefEndAlignment :
100
98
Enabled : false
101
99
102
100
# DISABLED
103
- Lint /EndAlignment :
101
+ Layout /EndAlignment :
104
102
Enabled : false
105
103
106
104
# DISABLED
@@ -130,28 +128,25 @@ Lint/UnusedMethodArgument:
130
128
Lint/UselessAccessModifier :
131
129
Enabled : true
132
130
133
- Lint/UselessAssignment :
134
- Enabled : true
135
-
136
131
Lint/Void :
137
132
Enabled : true
138
133
139
- Style /AccessModifierIndentation :
134
+ Layout /AccessModifierIndentation :
140
135
Enabled : false
141
136
142
- Style /AccessorMethodName :
137
+ Naming /AccessorMethodName :
143
138
Enabled : false
144
139
145
140
Style/Alias :
146
141
Enabled : false
147
142
148
- Style /AlignArray :
143
+ Layout /AlignArray :
149
144
Enabled : false
150
145
151
- Style /AlignHash :
146
+ Layout /AlignHash :
152
147
Enabled : false
153
148
154
- Style /AlignParameters :
149
+ Layout /AlignParameters :
155
150
Enabled : false
156
151
157
152
Metrics/BlockNesting :
@@ -169,13 +164,13 @@ Style/BracesAroundHashParameters:
169
164
Style/CaseEquality :
170
165
Enabled : false
171
166
172
- Style /CaseIndentation :
167
+ Layout /CaseIndentation :
173
168
Enabled : false
174
169
175
170
Style/CharacterLiteral :
176
171
Enabled : false
177
172
178
- Style /ClassAndModuleCamelCase :
173
+ Naming /ClassAndModuleCamelCase :
179
174
Enabled : false
180
175
181
176
Style/ClassAndModuleChildren :
@@ -203,67 +198,64 @@ Style/WordArray:
203
198
Style/UnneededPercentQ :
204
199
Enabled : false
205
200
206
- Style /Tab :
201
+ Layout /Tab :
207
202
Enabled : false
208
203
209
- Style /SpaceBeforeSemicolon :
204
+ Layout /SpaceBeforeSemicolon :
210
205
Enabled : false
211
206
212
- Style /TrailingBlankLines :
207
+ Layout /TrailingBlankLines :
213
208
Enabled : false
214
209
215
- Style /SpaceInsideBlockBraces :
210
+ Layout /SpaceInsideBlockBraces :
216
211
Enabled : false
217
212
218
- Style/SpaceInsideBrackets :
213
+ Layout/SpaceInsideHashLiteralBraces :
219
214
Enabled : false
220
215
221
- Style/SpaceInsideHashLiteralBraces :
216
+ Layout/SpaceInsideParens :
222
217
Enabled : false
223
218
224
- Style/SpaceInsideParens :
219
+ Layout/LeadingCommentSpace :
225
220
Enabled : false
226
221
227
- Style/LeadingCommentSpace :
222
+ Layout/SpaceBeforeFirstArg :
228
223
Enabled : false
229
224
230
- Style/SpaceBeforeFirstArg :
225
+ Layout/SpaceAfterColon :
231
226
Enabled : false
232
227
233
- Style/SpaceAfterColon :
228
+ Layout/SpaceAfterComma :
234
229
Enabled : false
235
230
236
- Style/SpaceAfterComma :
231
+ Layout/SpaceAroundKeyword :
237
232
Enabled : false
238
233
239
- Style/SpaceAroundKeyword :
234
+ Layout/SpaceAfterMethodName :
240
235
Enabled : false
241
236
242
- Style/SpaceAfterMethodName :
237
+ Layout/SpaceAfterNot :
243
238
Enabled : false
244
239
245
- Style/SpaceAfterNot :
240
+ Layout/SpaceAfterSemicolon :
246
241
Enabled : false
247
242
248
- Style/SpaceAfterSemicolon :
243
+ Layout/SpaceAroundEqualsInParameterDefault :
249
244
Enabled : false
250
245
251
- Style/SpaceAroundEqualsInParameterDefault :
246
+ Layout/SpaceAroundOperators :
252
247
Enabled : false
253
248
254
- Style/SpaceAroundOperators :
249
+ Layout/SpaceBeforeBlockBraces :
255
250
Enabled : false
256
251
257
- Style/SpaceBeforeBlockBraces :
258
- Enabled : false
259
-
260
- Style/SpaceBeforeComma :
252
+ Layout/SpaceBeforeComma :
261
253
Enabled : false
262
254
263
255
Style/CollectionMethods :
264
256
Enabled : false
265
257
266
- Style /CommentIndentation :
258
+ Layout /CommentIndentation :
267
259
Enabled : false
268
260
269
261
Style/ColonMethodCall :
@@ -275,7 +267,7 @@ Style/CommentAnnotation:
275
267
Metrics/CyclomaticComplexity :
276
268
Enabled : false
277
269
278
- Style /ConstantName :
270
+ Naming /ConstantName :
279
271
Enabled : false
280
272
281
273
Style/Documentation :
@@ -284,7 +276,7 @@ Style/Documentation:
284
276
Style/DefWithParentheses :
285
277
Enabled : false
286
278
287
- Style /DotPosition :
279
+ Layout /DotPosition :
288
280
Enabled : false
289
281
290
282
# DISABLED - used for converting to bool
@@ -294,25 +286,25 @@ Style/DoubleNegation:
294
286
Style/EachWithObject :
295
287
Enabled : false
296
288
297
- Style /EmptyLineBetweenDefs :
289
+ Layout /EmptyLineBetweenDefs :
298
290
Enabled : false
299
291
300
- Style /IndentArray :
292
+ Layout /IndentArray :
301
293
Enabled : false
302
294
303
- Style /IndentHash :
295
+ Layout /IndentHash :
304
296
Enabled : false
305
297
306
- Style /IndentationConsistency :
298
+ Layout /IndentationConsistency :
307
299
Enabled : true
308
300
309
- Style /IndentationWidth :
301
+ Layout /IndentationWidth :
310
302
Enabled : true
311
303
312
- Style /EmptyLines :
304
+ Layout /EmptyLines :
313
305
Enabled : false
314
306
315
- Style /EmptyLinesAroundAccessModifier :
307
+ Layout /EmptyLinesAroundAccessModifier :
316
308
Enabled : false
317
309
318
310
Style/EmptyLiteral :
@@ -330,13 +322,16 @@ Style/MethodDefParentheses:
330
322
Style/LineEndConcatenation :
331
323
Enabled : false
332
324
333
- Style /TrailingWhitespace :
325
+ Layout /TrailingWhitespace :
334
326
Enabled : false
335
327
336
328
Style/StringLiterals :
337
329
Enabled : false
338
330
339
- Style/TrailingCommaInLiteral :
331
+ Style/TrailingCommaInArrayLiteral :
332
+ Enabled : false
333
+
334
+ Style/TrailingCommaInHashLiteral :
340
335
Enabled : false
341
336
342
337
Style/TrailingCommaInArguments :
@@ -381,7 +376,7 @@ Style/UnlessElse:
381
376
Style/VariableInterpolation :
382
377
Enabled : false
383
378
384
- Style /VariableName :
379
+ Naming /VariableName :
385
380
Enabled : false
386
381
387
382
Style/WhileUntilDo :
@@ -390,7 +385,7 @@ Style/WhileUntilDo:
390
385
Style/EvenOdd :
391
386
Enabled : false
392
387
393
- Style /FileName :
388
+ Naming /FileName :
394
389
Enabled : false
395
390
396
391
Style/For :
@@ -399,7 +394,7 @@ Style/For:
399
394
Style/Lambda :
400
395
Enabled : false
401
396
402
- Style /MethodName :
397
+ Naming /MethodName :
403
398
Enabled : false
404
399
405
400
Style/MultilineTernaryOperator :
@@ -435,7 +430,7 @@ Style/NumericLiterals:
435
430
Style/OneLineConditional :
436
431
Enabled : false
437
432
438
- Style/OpMethod :
433
+ Naming/BinaryOperatorParameterName :
439
434
Enabled : false
440
435
441
436
Style/ParenthesesAroundCondition :
@@ -447,7 +442,7 @@ Style/PercentLiteralDelimiters:
447
442
Style/PerlBackrefs :
448
443
Enabled : false
449
444
450
- Style /PredicateName :
445
+ Naming /PredicateName :
451
446
Enabled : false
452
447
453
448
Style/RedundantException :
@@ -492,22 +487,22 @@ Style/IfWithSemicolon:
492
487
Style/Encoding :
493
488
Enabled : false
494
489
495
- Style /MultilineOperationIndentation :
490
+ Layout /MultilineOperationIndentation :
496
491
Enabled : false
497
492
498
493
Style/BlockDelimiters :
499
494
Enabled : false
500
495
501
- Style /ExtraSpacing :
496
+ Layout /ExtraSpacing :
502
497
Enabled : false
503
498
504
- Style /MultilineHashBraceLayout :
499
+ Layout /MultilineHashBraceLayout :
505
500
Enabled : false
506
501
507
- Style /MultilineMethodCallBraceLayout :
502
+ Layout /MultilineMethodCallBraceLayout :
508
503
Enabled : false
509
504
510
- Style /MultilineBlockLayout :
505
+ Layout /MultilineBlockLayout :
511
506
Enabled : false
512
507
513
508
Lint/UselessAssignment :
@@ -516,16 +511,16 @@ Lint/UselessAssignment:
516
511
Lint/DuplicateMethods :
517
512
Enabled : false
518
513
519
- Style /EmptyLinesAroundMethodBody :
514
+ Layout /EmptyLinesAroundMethodBody :
520
515
Enabled : false
521
516
522
- Style /EmptyLinesAroundModuleBody :
517
+ Layout /EmptyLinesAroundModuleBody :
523
518
Enabled : false
524
519
525
- Style /EmptyLinesAroundBlockBody :
520
+ Layout /EmptyLinesAroundBlockBody :
526
521
Enabled : false
527
522
528
- Style /EmptyLinesAroundClassBody :
523
+ Layout /EmptyLinesAroundClassBody :
529
524
Enabled : false
530
525
531
526
Style/UnneededInterpolation :
@@ -570,5 +565,12 @@ Metrics/PerceivedComplexity:
570
565
Metrics/BlockLength :
571
566
Enabled : false
572
567
573
- Style/VariableNumber :
568
+ Naming/VariableNumber :
569
+ Enabled : false
570
+
571
+ # Enforce LF line endings, even when on Windows
572
+ Layout/EndOfLine :
573
+ EnforcedStyle : lf
574
+
575
+ Layout/IndentHeredoc : # Not appicable on Ruby 2.1
574
576
Enabled : false
0 commit comments