chefstyle 0.1.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: b71f9c0e442437fd2e5bc7bb562b5802bd46eb8e
4
- data.tar.gz: 4f5b1e644b58f8ec63aca79431680641a6aebfe6
3
+ metadata.gz: e36119557a7ee68b26c0579b016eb49d8b45efb1
4
+ data.tar.gz: cbd0eb104b18c33a736a0d04578a66b5356b7956
5
5
  SHA512:
6
- metadata.gz: 2611f5211c62f94b6d4e3f0673f7c7e9428b4782dfb6ea38be408141a1e7b67aec65e245978734dd0d2f16699b73e7ee444f76f19e81a5898e383255b182cc76
7
- data.tar.gz: 5a116d41019f4275341779bc9db2a66286b32ada77386e59639c85468364b7e67ef9ff2d3c556914572fbb86d7362cfc522f467b516a334e0c60612a6f5ef6e0
6
+ metadata.gz: 253b7750ba82166bc75cd13b86092ec1e786580c9be52b3ddd623f64436e8bf565dde7a3e7a32ea03f82b19f44dd93f3357e0bab179f2acb0f52b47f4beac9e5
7
+ data.tar.gz: 97f068a3685777d12e82911652337adcea73a2eaa63da79434fbb384667f65bb703d9a36f392774d9faed10abd488dc0ee6946d906fc8a8e441ca31ba61ad70d
data/README.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Chefstyle - Version Pinned rubocop and sane defaults for Ruby
2
2
 
3
- This is a set of rubocop rules that implements a style guide for Chef
4
- Software's ruby projects. It should not be used as best practice for
5
- cookbook formatting.
3
+ This is an internal style guide for chef ruby projects (chef-client,
4
+ ohai, mixlib-shellout, mixlib-config, etc).
5
+
6
+ It is not meant for consumption by cookbooks or for any general
7
+ purpose uses. It is not intended for any audience outside of chef
8
+ core ruby development.
9
+
10
+ It will have many rules that are disabled simply because fixing a
11
+ project as large as chef-client would be tedious and have little
12
+ value. It will have other rules that are disabled because chef
13
+ exposes edge conditions that make them falsely alert. Other rules
14
+ will be selected based on the biases of the core chef developers
15
+ which are often violently at odds with the rubocop core developers
16
+ over ruby style.
17
+
18
+ Pull requests to this repo will not be accepted without corresponding
19
+ PRs into at least the chef-client and ohai codebases to clean the
20
+ code up. PRs will not be accepted that assume unfunded mandates for
21
+ other people to finish the work. Do not open PRs offering opinions
22
+ or suggestions without offering to do the work.
6
23
 
7
24
  The project itself is a derivative of
8
25
  [finstyle](https://github.com/fnichol/finstyle), but starts with all
9
- rules disabled.
26
+ rules disabled. The active ruleset is in the
27
+ [config/chefstyle.yml](https://github.com/chef/chefstyle/blob/master/config/chefstyle.yml)
28
+ file.
10
29
 
11
30
  ## How It Works
12
31
 
@@ -0,0 +1,355 @@
1
+
2
+ #
3
+ # Lint
4
+ #
5
+
6
+ Lint/AmbiguousOperator:
7
+ Enabled: true
8
+ Lint/BlockAlignment:
9
+ Enabled: true
10
+ Lint/CircularArgumentReference:
11
+ Enabled: true
12
+ Lint/ConditionPosition:
13
+ Enabled: true
14
+ Lint/Debugger:
15
+ Enabled: true
16
+ Lint/DefEndAlignment:
17
+ Enabled: true
18
+ Lint/DuplicateMethods:
19
+ Enabled: true
20
+ Lint/DuplicatedKey:
21
+ Enabled: true
22
+ Lint/EachWithObjectArgument:
23
+ Enabled: true
24
+ Lint/ElseLayout:
25
+ Enabled: true
26
+ Lint/EmptyEnsure:
27
+ Enabled: true
28
+ Lint/EmptyInterpolation:
29
+ Enabled: true
30
+ Lint/EndAlignment:
31
+ Enabled: true
32
+ Lint/EndInMethod:
33
+ Enabled: true
34
+ Lint/EnsureReturn:
35
+ Enabled: true
36
+ Lint/FormatParameterMismatch:
37
+ Enabled: true
38
+ Lint/InvalidCharacterLiteral:
39
+ Enabled: true
40
+ Lint/LiteralInCondition:
41
+ Enabled: true
42
+ Lint/LiteralInInterpolation:
43
+ Enabled: true
44
+ Lint/Loop:
45
+ Enabled: true
46
+ Lint/NonLocalExitFromIterator:
47
+ Enabled: true
48
+ Lint/RequireParentheses:
49
+ Enabled: true
50
+ Lint/StringConversionInInterpolation:
51
+ Enabled: true
52
+ Lint/UnneededDisable:
53
+ Enabled: true
54
+ Lint/UnreachableCode:
55
+ Enabled: true
56
+ Lint/UselessComparison:
57
+ Enabled: true
58
+ Lint/UselessElseWithoutRescue:
59
+ Enabled: true
60
+ Lint/UselessSetterCall:
61
+ Enabled: true
62
+
63
+ #
64
+ # Disabled Lint
65
+ #
66
+
67
+ # These are disabled per https://github.com/chef/chef/pull/3038
68
+ Lint/UnusedBlockArgument:
69
+ Enabled: false
70
+ Lint/UnusedMethodArgument:
71
+ Enabled: false
72
+
73
+ # We ignore Exceptions a lot
74
+ Lint/HandleExceptions:
75
+ Enabled: false
76
+ # We also decorate Exceptions a lot
77
+ Lint/RescueException:
78
+ Enabled: false
79
+
80
+ #
81
+ # Performance
82
+ #
83
+
84
+ Performance/CaseWhenSplat:
85
+ Enabled: true
86
+ Performance/FixedSize:
87
+ Enabled: true
88
+ Performance/FlatMap:
89
+ Enabled: true
90
+ Performance/ReverseEach:
91
+ Enabled: true
92
+ Performance/Sample:
93
+ Enabled: true
94
+ Performance/Size:
95
+ Enabled: true
96
+
97
+ #
98
+ # Rails
99
+ #
100
+
101
+ Rails/ActionFilter:
102
+ Enabled: true
103
+ Rails/Date:
104
+ Enabled: true
105
+ Rails/DefaultScope:
106
+ Enabled: true
107
+ Rails/Delegate:
108
+ Enabled: true
109
+ Rails/FindBy:
110
+ Enabled: true
111
+ Rails/FindEach:
112
+ Enabled: true
113
+ Rails/HasAndBelongsToMany:
114
+ Enabled: true
115
+ Rails/Output:
116
+ Enabled: true
117
+ Rails/PluralizationGrammar:
118
+ Enabled: true
119
+ Rails/ReadWriteAttribute:
120
+ Enabled: true
121
+ Rails/ScopeArgs:
122
+ Enabled: true
123
+ Rails/TimeZone:
124
+ Enabled: true
125
+ Rails/Validation:
126
+ Enabled: true
127
+
128
+ #
129
+ # Metrics
130
+ #
131
+
132
+ # Metrics cops are all disabled, there would be too much refactoring
133
+ # work to do and we have much higher priorities.
134
+ Metrics/AbcSize:
135
+ Enabled: false
136
+ Metrics/BlockNesting:
137
+ Enabled: false
138
+ Metrics/ClassLength:
139
+ Enabled: false
140
+ Metrics/CyclomaticComplexity:
141
+ Enabled: false
142
+ Metrics/LineLength:
143
+ Enabled: false
144
+ Metrics/MethodLength:
145
+ Enabled: false
146
+ Metrics/ModuleLength:
147
+ Enabled: false
148
+ Metrics/ParameterLists:
149
+ Enabled: false
150
+ Metrics/PerceivedComplexity:
151
+ Enabled: false
152
+
153
+
154
+ #
155
+ # Style
156
+ #
157
+
158
+ Style/AlignHash:
159
+ Enabled: true
160
+ Style/ArrayJoin:
161
+ Enabled: true
162
+ Style/AsciiIdentifiers:
163
+ Enabled: true
164
+ Style/Attr:
165
+ Enabled: true
166
+ Style/BeginBlock:
167
+ Enabled: true
168
+ Style/CharacterLiteral:
169
+ Enabled: true
170
+ Style/ClassMethods:
171
+ Enabled: true
172
+ Style/ColonMethodCall:
173
+ Enabled: true
174
+ Style/CommandLiteral:
175
+ Enabled: true
176
+ Style/ElseAlignment:
177
+ Enabled: true
178
+ Style/EmptyLineBetweenDefs:
179
+ Enabled: true
180
+ Style/EmptyLines:
181
+ Enabled: true
182
+ Style/EmptyLinesAroundAccessModifier:
183
+ Enabled: true
184
+ Style/EmptyLinesAroundMethodBody:
185
+ Enabled: true
186
+ Style/EndBlock:
187
+ Enabled: true
188
+ Style/EndOfLine:
189
+ Enabled: true
190
+ Style/EvenOdd:
191
+ Enabled: true
192
+ Style/ExtraSpacing:
193
+ Enabled: true
194
+ Style/FlipFlop:
195
+ Enabled: true
196
+ Style/For:
197
+ Enabled: true
198
+ Style/IfWithSemicolon:
199
+ Enabled: true
200
+ Style/IndentationConsistency:
201
+ Enabled: true
202
+ Style/IndentationWidth:
203
+ Enabled: true
204
+ Style/InfiniteLoop:
205
+ Enabled: true
206
+ Style/InitialIndentation:
207
+ Enabled: true
208
+ Style/LambdaCall:
209
+ Enabled: true
210
+ Style/MethodDefParentheses:
211
+ Enabled: true
212
+ Style/MultilineOperationIndentation:
213
+ Enabled: true
214
+ EnforcedStyle: indented
215
+ Style/NegatedWhile:
216
+ Enabled: true
217
+ Style/NestedModifier:
218
+ Enabled: true
219
+ Style/NestedTernaryOperator:
220
+ Enabled: true
221
+ Style/OneLineConditional:
222
+ Enabled: true
223
+ Style/ParenthesesAroundCondition:
224
+ Enabled: true
225
+ # - The chef source code predominantly uses {} for %,%i,%q,%Q,%r,%w,%W
226
+ # - The old 1.9 pickaxe book predominantly uses {} for %,%q,%Q,%r,%w,%W,%x
227
+ # - The chef source code does not use %x enough to determine a preference
228
+ # - The old 1.9 pickaxe book does not use %i
229
+ # - %s is not used in chef code or the pickaxe book, and is %s{} for consistency
230
+ Style/PercentLiteralDelimiters:
231
+ Enabled: true
232
+ PreferredDelimiters:
233
+ '%': '{}'
234
+ '%i': '{}'
235
+ '%q': '{}'
236
+ '%Q': '{}'
237
+ '%r': '{}'
238
+ '%s': '{}'
239
+ '%w': '{}'
240
+ '%W': '{}'
241
+ '%x': '{}'
242
+ Style/PercentQLiterals:
243
+ Enabled: true
244
+ Style/RedundantFreeze:
245
+ Enabled: true
246
+ Style/RescueEnsureAlignment:
247
+ Enabled: true
248
+ # we only 'raise' and do not 'fail'
249
+ Style/SignalException:
250
+ EnforcedStyle: only_raise
251
+ Enabled: true
252
+ Style/SpaceAfterColon:
253
+ Enabled: true
254
+ Style/SpaceAfterComma:
255
+ Enabled: true
256
+ Style/SpaceAfterMethodName:
257
+ Enabled: true
258
+ Style/SpaceAroundBlockParameters:
259
+ Enabled: true
260
+ Style/SpaceAroundEqualsInParameterDefault:
261
+ Enabled: true
262
+ Style/SpaceAroundOperators:
263
+ Enabled: true
264
+ Style/SpaceBeforeBlockBraces:
265
+ Enabled: true
266
+ Style/SpaceBeforeFirstArg:
267
+ Enabled: true
268
+ Style/SpaceBeforeModifierKeyword:
269
+ Enabled: true
270
+ Style/SpaceInsideBlockBraces:
271
+ Enabled: true
272
+ Style/SpaceInsideHashLiteralBraces:
273
+ Enabled: true
274
+ Style/SpaceInsideRangeLiteral:
275
+ Enabled: true
276
+ Style/StabbyLambdaParentheses:
277
+ Enabled: true
278
+ # core chef community prefers double quotes over single quotes
279
+ Style/StringLiterals:
280
+ EnforcedStyle: double_quotes
281
+ Enabled: true
282
+ Style/SymbolLiteral:
283
+ Enabled: true
284
+ Style/Tab:
285
+ Enabled: true
286
+ Style/TrailingBlankLines:
287
+ Enabled: true
288
+ # rubocop's default gets this completely backwards
289
+ Style/TrailingComma:
290
+ Enabled: true
291
+ EnforcedStyleForMultiline: comma
292
+ Style/TrailingUnderscoreVariable:
293
+ Enabled: true
294
+ Style/TrailingWhitespace:
295
+ Enabled: true
296
+ Style/UnneededCapitalW:
297
+ Enabled: true
298
+ #Style/UnneededPercentQ: # would like to enable this one but its buggy as of 0.35.1
299
+ # Enabled: true
300
+ Style/WhenThen:
301
+ Enabled: true
302
+ Style/WhileUntilDo:
303
+ Enabled: true
304
+ Style/WordArray:
305
+ Enabled: true
306
+
307
+ #
308
+ # Disabled Style
309
+ #
310
+
311
+ # As of this commit we have 686 modules and classes without docs.
312
+ # This is a cop that we /should/ have enabled, but tactically we can't really enable.
313
+ Style/Documentation:
314
+ Enabled: false
315
+
316
+ # this makes whitespace formatting of DSL code impossible
317
+ Style/SingleSpaceBeforeFirstArg:
318
+ Enabled: false
319
+
320
+ # whitespace in expressions is useful to enhance readability
321
+ Style/SpaceInsideBrackets:
322
+ Enabled: false
323
+ Style/SpaceInsideParens:
324
+ Enabled: false
325
+
326
+ # more whitespace cops that we allow since they can enhance readability
327
+ Style/EmptyLinesAroundBlockBody:
328
+ Enabled: false
329
+ Style/EmptyLinesAroundClassBody:
330
+ Enabled: false
331
+ Style/EmptyLinesAroundModuleBody:
332
+ Enabled: false
333
+
334
+ # double negation is perfectly idiomatic ruby
335
+ Style/DoubleNegation:
336
+ Enabled: false
337
+ # format strings are also perfectly idiomatic ruby
338
+ Style/FormatString:
339
+ Enabled: false
340
+ # single line if/unless blocks may read more naturally than modifiers
341
+ Style/IfUnlessModifier:
342
+ Enabled: false
343
+
344
+ # we are ruby > 2.0 only so can disable the Encoding cop
345
+ Style/Encoding:
346
+ Enabled: false
347
+
348
+ # Dan is -1 on this one: https://github.com/chef/chef/pull/4526#issuecomment-179950045
349
+ Style/IndentHash:
350
+ Enabled: false
351
+
352
+ # This is overly aggressive and autofix broke stuff, would need to exclude classes
353
+ # - https://github.com/chef/chef/pull/4541
354
+ Style/TrivialAccessors:
355
+ Enabled: false
@@ -37,10 +37,16 @@ Lint/EnsureReturn:
37
37
  Enabled: false
38
38
  Lint/Eval:
39
39
  Enabled: false
40
+ Lint/FloatOutOfRange:
41
+ Enabled: false
40
42
  Lint/FormatParameterMismatch:
41
43
  Enabled: false
42
44
  Lint/HandleExceptions:
43
45
  Enabled: false
46
+ Lint/ImplicitStringConcatenation:
47
+ Enabled: false
48
+ Lint/IneffectiveAccessModifier:
49
+ Enabled: false
44
50
  Lint/InvalidCharacterLiteral:
45
51
  Enabled: false
46
52
  Lint/LiteralInCondition:
@@ -51,18 +57,20 @@ Lint/Loop:
51
57
  Enabled: false
52
58
  Lint/NestedMethodDefinition:
53
59
  Enabled: false
60
+ Lint/NextWithoutAccumulator:
61
+ Enabled: false
54
62
  Lint/NonLocalExitFromIterator:
55
63
  Enabled: false
56
64
  Lint/ParenthesesAsGroupedExpression:
57
65
  Enabled: false
66
+ Lint/RandOne:
67
+ Enabled: false
58
68
  Lint/RequireParentheses:
59
69
  Enabled: false
60
70
  Lint/RescueException:
61
71
  Enabled: false
62
72
  Lint/ShadowingOuterLocalVariable:
63
73
  Enabled: false
64
- Lint/SpaceBeforeFirstArg:
65
- Enabled: false
66
74
  Lint/StringConversionInInterpolation:
67
75
  Enabled: false
68
76
  Lint/UnderscorePrefixedVariableName:
@@ -87,42 +95,66 @@ Lint/UselessSetterCall:
87
95
  Enabled: false
88
96
  Lint/Void:
89
97
  Enabled: false
90
- Metrics/BlockNesting:
91
- Enabled: false
92
- Metrics/ClassLength:
93
- Enabled: false
94
- Metrics/ModuleLength:
95
- Enabled: false
96
98
  Metrics/CyclomaticComplexity:
97
99
  Enabled: false
98
100
  Metrics/AbcSize:
99
101
  Enabled: false
102
+ Metrics/BlockNesting:
103
+ Enabled: false
104
+ Metrics/ClassLength:
105
+ Enabled: false
100
106
  Metrics/LineLength:
101
107
  Enabled: false
102
108
  Metrics/MethodLength:
103
109
  Enabled: false
110
+ Metrics/ModuleLength:
111
+ Enabled: false
104
112
  Metrics/ParameterLists:
105
113
  Enabled: false
106
114
  Metrics/PerceivedComplexity:
107
115
  Enabled: false
108
116
  Performance/CaseWhenSplat:
109
117
  Enabled: false
118
+ Performance/Casecmp:
119
+ Enabled: false
110
120
  Performance/Count:
111
121
  Enabled: false
112
122
  Performance/Detect:
113
123
  Enabled: false
124
+ Performance/DoubleStartEndWith:
125
+ Enabled: false
126
+ Performance/EndWith:
127
+ Enabled: false
114
128
  Performance/FixedSize:
115
129
  Enabled: false
116
130
  Performance/FlatMap:
117
131
  Enabled: false
132
+ Performance/HashEachMethods:
133
+ Enabled: false
134
+ Performance/LstripRstrip:
135
+ Enabled: false
136
+ Performance/RangeInclude:
137
+ Enabled: false
138
+ Performance/RedundantBlockCall:
139
+ Enabled: false
140
+ Performance/RedundantMatch:
141
+ Enabled: false
142
+ Performance/RedundantMerge:
143
+ Enabled: false
144
+ Performance/RedundantSortBy:
145
+ Enabled: false
118
146
  Performance/ReverseEach:
119
147
  Enabled: false
120
148
  Performance/Sample:
121
149
  Enabled: false
122
150
  Performance/Size:
123
151
  Enabled: false
152
+ Performance/StartWith:
153
+ Enabled: false
124
154
  Performance/StringReplacement:
125
155
  Enabled: false
156
+ Performance/TimesMap:
157
+ Enabled: false
126
158
  Style/AccessModifierIndentation:
127
159
  Enabled: false
128
160
  Style/AccessorMethodName:
@@ -153,10 +185,10 @@ Style/BeginBlock:
153
185
  Enabled: false
154
186
  Style/BlockComments:
155
187
  Enabled: false
156
- Style/BlockEndNewline:
157
- Enabled: false
158
188
  Style/BlockDelimiters:
159
189
  Enabled: false
190
+ Style/BlockEndNewline:
191
+ Enabled: false
160
192
  Style/BracesAroundHashParameters:
161
193
  Enabled: false
162
194
  Style/CaseEquality:
@@ -187,10 +219,12 @@ Style/CommentAnnotation:
187
219
  Enabled: false
188
220
  Style/CommentIndentation:
189
221
  Enabled: false
190
- Style/Copyright:
222
+ Style/ConditionalAssignment:
191
223
  Enabled: false
192
224
  Style/ConstantName:
193
225
  Enabled: false
226
+ Style/Copyright:
227
+ Enabled: false
194
228
  Style/DefWithParentheses:
195
229
  Enabled: false
196
230
  Style/DeprecatedHashMethods:
@@ -207,8 +241,6 @@ Style/ElseAlignment:
207
241
  Enabled: false
208
242
  Style/EmptyElse:
209
243
  Enabled: false
210
- Style/MissingElse:
211
- Enabled: false
212
244
  Style/EmptyLineBetweenDefs:
213
245
  Enabled: false
214
246
  Style/EmptyLines:
@@ -253,18 +285,26 @@ Style/For:
253
285
  Enabled: false
254
286
  Style/FormatString:
255
287
  Enabled: false
288
+ Style/FrozenStringLiteralComment:
289
+ Enabled: false
256
290
  Style/GlobalVars:
257
291
  Enabled: false
258
292
  Style/GuardClause:
259
293
  Enabled: false
260
294
  Style/HashSyntax:
261
295
  Enabled: false
296
+ Style/IdenticalConditionalBranches:
297
+ Enabled: false
298
+ Style/IfInsideElse:
299
+ Enabled: false
262
300
  Style/IfUnlessModifier:
263
301
  Enabled: false
264
302
  Style/IfWithSemicolon:
265
303
  Enabled: false
266
304
  Style/IndentArray:
267
305
  Enabled: false
306
+ Style/IndentAssignment:
307
+ Enabled: false
268
308
  Style/IndentHash:
269
309
  Enabled: false
270
310
  Style/IndentationConsistency:
@@ -293,14 +333,28 @@ Style/MethodDefParentheses:
293
333
  Enabled: false
294
334
  Style/MethodName:
295
335
  Enabled: false
336
+ Style/MissingElse:
337
+ Enabled: false
296
338
  Style/ModuleFunction:
297
339
  Enabled: false
340
+ Style/MultilineArrayBraceLayout:
341
+ Enabled: false
342
+ Style/MultilineAssignmentLayout:
343
+ Enabled: false
298
344
  Style/MultilineBlockChain:
299
345
  Enabled: false
300
346
  Style/MultilineBlockLayout:
301
347
  Enabled: false
348
+ Style/MultilineHashBraceLayout:
349
+ Enabled: false
302
350
  Style/MultilineIfThen:
303
351
  Enabled: false
352
+ Style/MultilineMethodCallBraceLayout:
353
+ Enabled: false
354
+ Style/MultilineMethodCallIndentation:
355
+ Enabled: false
356
+ Style/MultilineMethodDefinitionBraceLayout:
357
+ Enabled: false
304
358
  Style/MultilineOperationIndentation:
305
359
  Enabled: false
306
360
  Style/MultilineTernaryOperator:
@@ -313,6 +367,8 @@ Style/NegatedWhile:
313
367
  Enabled: false
314
368
  Style/NestedModifier:
315
369
  Enabled: false
370
+ Style/NestedParenthesizedCalls:
371
+ Enabled: false
316
372
  Style/NestedTernaryOperator:
317
373
  Enabled: false
318
374
  Style/Next:
@@ -329,10 +385,10 @@ Style/OneLineConditional:
329
385
  Enabled: false
330
386
  Style/OpMethod:
331
387
  Enabled: false
332
- Style/OptionalArguments:
333
- Enabled: false
334
388
  Style/OptionHash:
335
389
  Enabled: false
390
+ Style/OptionalArguments:
391
+ Enabled: false
336
392
  Style/ParallelAssignment:
337
393
  Enabled: false
338
394
  Style/ParenthesesAroundCondition:
@@ -355,6 +411,8 @@ Style/RedundantException:
355
411
  Enabled: false
356
412
  Style/RedundantFreeze:
357
413
  Enabled: false
414
+ Style/RedundantParentheses:
415
+ Enabled: false
358
416
  Style/RedundantReturn:
359
417
  Enabled: false
360
418
  Style/RedundantSelf:
@@ -377,14 +435,10 @@ Style/SingleLineBlockParams:
377
435
  Enabled: false
378
436
  Style/SingleLineMethods:
379
437
  Enabled: false
380
- Style/SingleSpaceBeforeFirstArg:
381
- Enabled: false
382
438
  Style/SpaceAfterColon:
383
439
  Enabled: false
384
440
  Style/SpaceAfterComma:
385
441
  Enabled: false
386
- Style/SpaceAfterControlKeyword:
387
- Enabled: false
388
442
  Style/SpaceAfterMethodName:
389
443
  Enabled: false
390
444
  Style/SpaceAfterNot:
@@ -395,6 +449,8 @@ Style/SpaceAroundBlockParameters:
395
449
  Enabled: false
396
450
  Style/SpaceAroundEqualsInParameterDefault:
397
451
  Enabled: false
452
+ Style/SpaceAroundKeyword:
453
+ Enabled: false
398
454
  Style/SpaceAroundOperators:
399
455
  Enabled: false
400
456
  Style/SpaceBeforeBlockBraces:
@@ -403,7 +459,7 @@ Style/SpaceBeforeComma:
403
459
  Enabled: false
404
460
  Style/SpaceBeforeComment:
405
461
  Enabled: false
406
- Style/SpaceBeforeModifierKeyword:
462
+ Style/SpaceBeforeFirstArg:
407
463
  Enabled: false
408
464
  Style/SpaceBeforeSemicolon:
409
465
  Enabled: false
@@ -441,7 +497,11 @@ Style/Tab:
441
497
  Enabled: false
442
498
  Style/TrailingBlankLines:
443
499
  Enabled: false
444
- Style/TrailingComma:
500
+ Style/TrailingCommaInArguments:
501
+ Enabled: false
502
+ Style/TrailingCommaInLiteral:
503
+ Enabled: false
504
+ Style/TrailingUnderscoreVariable:
445
505
  Enabled: false
446
506
  Style/TrailingWhitespace:
447
507
  Enabled: false
@@ -451,9 +511,9 @@ Style/UnlessElse:
451
511
  Enabled: false
452
512
  Style/UnneededCapitalW:
453
513
  Enabled: false
454
- Style/UnneededPercentQ:
514
+ Style/UnneededInterpolation:
455
515
  Enabled: false
456
- Style/TrailingUnderscoreVariable:
516
+ Style/UnneededPercentQ:
457
517
  Enabled: false
458
518
  Style/VariableInterpolation:
459
519
  Enabled: false
@@ -467,12 +527,12 @@ Style/WhileUntilModifier:
467
527
  Enabled: false
468
528
  Style/WordArray:
469
529
  Enabled: false
530
+ Style/ZeroLengthPredicate:
531
+ Enabled: false
470
532
  Rails/ActionFilter:
471
533
  Enabled: false
472
534
  Rails/Date:
473
535
  Enabled: false
474
- Rails/DefaultScope:
475
- Enabled: false
476
536
  Rails/Delegate:
477
537
  Enabled: false
478
538
  Rails/FindBy: