armitage-rubocop 0.83.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,49 @@
1
+ Metrics/AbcSize:
2
+ Enabled: true
3
+ Max: 19
4
+ IgnoredMethods: []
5
+
6
+ Metrics/BlockLength:
7
+ Enabled: true
8
+ CountComments: false
9
+ Max: 25
10
+ ExcludedMethods: []
11
+ Exclude:
12
+ - Rakefile
13
+ - spec/**/*
14
+ - '*.gemspec'
15
+
16
+ Metrics/BlockNesting:
17
+ Enabled: true
18
+ CountBlocks: false
19
+ Max: 3
20
+
21
+ Metrics/ClassLength:
22
+ Enabled: true
23
+ CountComments: false
24
+ Max: 100
25
+
26
+ Metrics/CyclomaticComplexity:
27
+ Enabled: true
28
+ Max: 10
29
+ IgnoredMethods: []
30
+
31
+ Metrics/MethodLength:
32
+ Enabled: true
33
+ Max: 25
34
+ CountComments: false
35
+
36
+ Metrics/ModuleLength:
37
+ Enabled: true
38
+ CountComments: false
39
+ Max: 100
40
+
41
+ Metrics/ParameterLists:
42
+ Enabled: true
43
+ Max: 5
44
+ CountKeywordArgs: true
45
+
46
+ Metrics/PerceivedComplexity:
47
+ Enabled: true
48
+ Max: 10
49
+ IgnoredMethods: []
@@ -0,0 +1,2 @@
1
+ Migration/DepartmentName:
2
+ Enabled: true
@@ -0,0 +1,72 @@
1
+ Naming/AccessorMethodName:
2
+ Enabled: false
3
+
4
+ Naming/AsciiIdentifiers:
5
+ Enabled: true
6
+
7
+ Naming/BinaryOperatorParameterName:
8
+ Enabled: false
9
+
10
+ Naming/ClassAndModuleCamelCase:
11
+ Enabled: true
12
+
13
+ Naming/ConstantName:
14
+ Enabled: true
15
+
16
+ Naming/FileName:
17
+ Enabled: true
18
+ ExpectMatchingDefinition: false
19
+ IgnoreExecutableScripts: true
20
+
21
+ Naming/HeredocDelimiterCase:
22
+ Enabled: true
23
+ EnforcedStyle: uppercase
24
+
25
+ Naming/HeredocDelimiterNaming:
26
+ Enabled: false
27
+
28
+ Naming/MemoizedInstanceVariableName:
29
+ Enabled: false
30
+
31
+ Naming/MethodName:
32
+ Enabled: true
33
+ EnforcedStyle: snake_case
34
+
35
+ Naming/PredicateName:
36
+ Enabled: false
37
+
38
+ Naming/RescuedExceptionsVariableName:
39
+ Enabled: true
40
+ PreferredName: error
41
+
42
+ Naming/BlockParameterName:
43
+ Enabled: true
44
+ MinNameLength: 1
45
+ AllowNamesEndingInNumbers: true
46
+ AllowedNames: []
47
+ ForbiddenNames: []
48
+
49
+ Naming/MethodParameterName:
50
+ Enabled: true
51
+ MinNameLength: 1
52
+ AllowNamesEndingInNumbers: true
53
+ AllowedNames:
54
+ - 'io'
55
+ - 'id'
56
+ - 'to'
57
+ - 'by'
58
+ - 'on'
59
+ - 'in'
60
+ - 'at'
61
+ - 'ip'
62
+ - 'db'
63
+ - 'os'
64
+ ForbiddenNames: []
65
+
66
+ Naming/VariableName:
67
+ Enabled: true
68
+ EnforcedStyle: snake_case
69
+
70
+ Naming/VariableNumber:
71
+ Enabled: true
72
+ EnforcedStyle: snake_case
@@ -0,0 +1,83 @@
1
+ Performance/Caller:
2
+ Enabled: true
3
+
4
+ Performance/CaseWhenSplat:
5
+ Enabled: true
6
+ AutoCorrect: true
7
+
8
+ Performance/Casecmp:
9
+ Enabled: false
10
+
11
+ Performance/ChainArrayAllocation:
12
+ Enabled: false
13
+
14
+ Performance/CompareWithBlock:
15
+ Enabled: true
16
+
17
+ Performance/Count:
18
+ Enabled: true
19
+ SafeAutoCorrect: false
20
+
21
+ Performance/Detect:
22
+ Enabled: true
23
+ SafeAutoCorrect: false
24
+
25
+ Performance/DoubleStartEndWith:
26
+ Enabled: true
27
+ IncludeActiveSupportAliases: false
28
+
29
+ Performance/EndWith:
30
+ Enabled: true
31
+ AutoCorrect: false
32
+
33
+ Performance/FixedSize:
34
+ Enabled: true
35
+
36
+ Performance/FlatMap:
37
+ Enabled: true
38
+ EnabledForFlattenWithoutParams: false
39
+
40
+ Performance/InefficientHashSearch:
41
+ Enabled: true
42
+
43
+ Performance/OpenStruct:
44
+ Enabled: true
45
+
46
+ Performance/RangeInclude:
47
+ Enabled: true
48
+
49
+ Performance/RedundantBlockCall:
50
+ Enabled: true
51
+
52
+ Performance/RedundantMatch:
53
+ Enabled: true
54
+
55
+ Performance/RedundantMerge:
56
+ Enabled: true
57
+ MaxKeyValuePairs: 1
58
+
59
+ Performance/RegexpMatch:
60
+ Enabled: true
61
+
62
+ Performance/ReverseEach:
63
+ Enabled: true
64
+
65
+ Performance/Size:
66
+ Enabled: true
67
+
68
+ Performance/StartWith:
69
+ Enabled: true
70
+ AutoCorrect: false
71
+
72
+ Performance/StringReplacement:
73
+ Enabled: true
74
+
75
+ Performance/TimesMap:
76
+ Enabled: true
77
+ AutoCorrect: false
78
+
79
+ Performance/UnfreezeString:
80
+ Enabled: true
81
+
82
+ Performance/UriDefaultParser:
83
+ Enabled: true
@@ -0,0 +1,202 @@
1
+ Rails/ActionFilter:
2
+ Enabled: true
3
+ EnforcedStyle: action
4
+
5
+ Rails/ActiveRecordAliases:
6
+ Enabled: true
7
+
8
+ Rails/ActiveRecordOverride:
9
+ Enabled: true
10
+ Include:
11
+ - app/models/**/*.rb
12
+
13
+ Rails/ActiveSupportAliases:
14
+ Enabled: true
15
+
16
+ Rails/ApplicationJob:
17
+ Enabled: true
18
+
19
+ Rails/ApplicationRecord:
20
+ Enabled: true
21
+
22
+ Rails/ApplicationController:
23
+ Enabled: false
24
+
25
+ Rails/ApplicationMailer:
26
+ Enabled: false
27
+
28
+ Rails/RakeEnvironment:
29
+ Enabled: true
30
+
31
+ Rails/AssertNot:
32
+ Enabled: true
33
+
34
+ Rails/BelongsTo:
35
+ Enabled: true
36
+
37
+ Rails/Blank:
38
+ Enabled: false
39
+
40
+ Rails/BulkChangeTable:
41
+ Enabled: true
42
+ Database: postgresql
43
+
44
+ Rails/CreateTableWithTimestamps:
45
+ Enabled: false
46
+
47
+ Rails/Date:
48
+ Enabled: true
49
+ EnforcedStyle: flexible
50
+
51
+ Rails/Delegate:
52
+ Enabled: false
53
+
54
+ Rails/DelegateAllowBlank:
55
+ Enabled: true
56
+
57
+ Rails/DynamicFindBy:
58
+ Enabled: true
59
+
60
+ Rails/EnumHash:
61
+ Enabled: true
62
+ Include:
63
+ - app/models/**/*.rb
64
+
65
+ Rails/EnumUniqueness:
66
+ Enabled: true
67
+
68
+ Rails/EnvironmentComparison:
69
+ Enabled: true
70
+
71
+ Rails/Exit:
72
+ Enabled: true
73
+
74
+ Rails/FilePath:
75
+ Enabled: true
76
+ EnforcedStyle: arguments
77
+
78
+ Rails/FindBy:
79
+ Enabled: true
80
+
81
+ Rails/FindEach:
82
+ Enabled: true
83
+
84
+ Rails/HasAndBelongsToMany:
85
+ Enabled: true
86
+
87
+ Rails/HasManyOrHasOneDependent:
88
+ Enabled: true
89
+
90
+ Rails/HttpPositionalArguments:
91
+ Enabled: true
92
+
93
+ Rails/HttpStatus:
94
+ Enabled: false
95
+
96
+ Rails/IgnoredSkipActionFilterOption:
97
+ Enabled: true
98
+
99
+ Rails/IndexBy:
100
+ Enabled: true
101
+
102
+ Rails/IndexWith:
103
+ Enabled: true
104
+
105
+ Rails/InverseOf:
106
+ Enabled: true
107
+
108
+ Rails/LexicallyScopedActionFilter:
109
+ Enabled: true
110
+
111
+ Rails/LinkToBlank:
112
+ Enabled: true
113
+
114
+ Rails/NotNullColumn:
115
+ Enabled: true
116
+
117
+ Rails/Output:
118
+ Enabled: true
119
+
120
+ Rails/OutputSafety:
121
+ Enabled: false
122
+
123
+ Rails/PluralizationGrammar:
124
+ Enabled: true
125
+
126
+ Rails/Presence:
127
+ Enabled: true
128
+
129
+ Rails/Present:
130
+ Enabled: true
131
+
132
+ Rails/ReadWriteAttribute:
133
+ Enabled: true
134
+
135
+ Rails/RedundantAllowNil:
136
+ Enabled: true
137
+ Include:
138
+ - app/models/**/*.rb
139
+
140
+ Rails/RedundantReceiverInWithOptions:
141
+ Enabled: true
142
+
143
+ Rails/ReflectionClassName:
144
+ Enabled: true
145
+
146
+ Rails/RefuteMethods:
147
+ Enabled: true
148
+ EnforcedStyle: assert_not
149
+ Include:
150
+ - 'test/**/*'
151
+ - 'spec/**/*'
152
+
153
+ Rails/RelativeDateConstant:
154
+ Enabled: true
155
+ AutoCorrect: false
156
+
157
+ Rails/RequestReferer:
158
+ Enabled: true
159
+ EnforcedStyle: referer
160
+
161
+ Rails/ReversibleMigration:
162
+ Enabled: true
163
+
164
+ Rails/SafeNavigation:
165
+ Enabled: true
166
+
167
+ Rails/SafeNavigationWithBlank:
168
+ Enabled: true
169
+
170
+ Rails/SaveBang:
171
+ Enabled: true
172
+ AllowImplicitReturn: true
173
+
174
+ Rails/ScopeArgs:
175
+ Enabled: true
176
+
177
+ Rails/SkipsModelValidations:
178
+ Enabled: false
179
+
180
+ Rails/TimeZone:
181
+ Enabled: true
182
+ EnforcedStyle: flexible
183
+
184
+ Rails/UniqBeforePluck:
185
+ Enabled: true
186
+ EnforcedStyle: conservative
187
+
188
+ Rails/UniqueValidationWithoutIndex:
189
+ Enabled: true
190
+ Include:
191
+ - app/models/**/*.rb
192
+
193
+ Rails/UnknownEnv:
194
+ Enabled: true
195
+ Environments:
196
+ - development
197
+ - test
198
+ - staging
199
+ - production
200
+
201
+ Rails/Validation:
202
+ Enabled: true
@@ -0,0 +1,14 @@
1
+ Rake/MethodDefinitionInTask:
2
+ Enabled: true
3
+
4
+ Rake/DuplicateTask:
5
+ Enabled: true
6
+
7
+ Rake/DuplicateNamespace:
8
+ Enabled: true
9
+
10
+ Rake/Desc:
11
+ Enabled: true
12
+
13
+ Rake/ClassDefinitionInTask:
14
+ Enabled: true
@@ -0,0 +1,15 @@
1
+ Security/Eval:
2
+ Enabled: false
3
+
4
+ Security/JSONLoad:
5
+ Enabled: true
6
+ AutoCorrect: false
7
+
8
+ Security/MarshalLoad:
9
+ Enabled: false
10
+
11
+ Security/Open:
12
+ Enabled: true
13
+
14
+ Security/YAMLLoad:
15
+ Enabled: false
@@ -0,0 +1,587 @@
1
+ Style/AccessModifierDeclarations:
2
+ Enabled: true
3
+ EnforcedStyle: group
4
+ AllowModifiersOnSymbols: true
5
+
6
+ Style/Alias:
7
+ Enabled: true
8
+ EnforcedStyle: prefer_alias_method
9
+
10
+ Style/AndOr:
11
+ Enabled: false
12
+ EnforcedStyle: always
13
+
14
+ Style/ArrayJoin:
15
+ Enabled: true
16
+
17
+ Style/AsciiComments:
18
+ Enabled: false
19
+ AllowedChars: []
20
+
21
+ Style/Attr:
22
+ Enabled: true
23
+
24
+ Style/AutoResourceCleanup:
25
+ Enabled: false
26
+
27
+ Style/BarePercentLiterals:
28
+ Enabled: true
29
+ EnforcedStyle: bare_percent
30
+
31
+ Style/BeginBlock:
32
+ Enabled: true
33
+
34
+ Style/BlockComments:
35
+ Enabled: true
36
+
37
+ Style/BlockDelimiters:
38
+ Enabled: true
39
+ EnforcedStyle: line_count_based
40
+ AllowBracesOnProceduralOneLiners: false
41
+ BracesRequiredMethods: ['sig']
42
+
43
+ Style/CaseEquality:
44
+ Enabled: true
45
+
46
+ Style/CharacterLiteral:
47
+ Enabled: true
48
+
49
+ Style/ClassAndModuleChildren:
50
+ Enabled: false
51
+
52
+ Style/ClassCheck:
53
+ Enabled: true
54
+ EnforcedStyle: is_a?
55
+
56
+ Style/ClassMethods:
57
+ Enabled: true
58
+
59
+ Style/ClassVars:
60
+ Enabled: true
61
+
62
+ Style/CollectionMethods:
63
+ Enabled: false
64
+
65
+ Style/ColonMethodCall:
66
+ Enabled: true
67
+
68
+ Style/ColonMethodDefinition:
69
+ Enabled: true
70
+
71
+ Style/CommandLiteral:
72
+ Enabled: false
73
+
74
+ Style/CommentAnnotation:
75
+ Enabled: false
76
+
77
+ Style/CommentedKeyword:
78
+ Enabled: false
79
+
80
+ Style/ConditionalAssignment:
81
+ Enabled: false
82
+
83
+ Style/ConstantVisibility:
84
+ Enabled: false
85
+
86
+ Style/Copyright:
87
+ Enabled: false
88
+
89
+ Style/DateTime:
90
+ Enabled: false
91
+ AllowCoercion: false
92
+
93
+ Style/DefWithParentheses:
94
+ Enabled: true
95
+
96
+ Style/Dir:
97
+ Enabled: true
98
+
99
+ Style/DisableCopsWithinSourceCodeDirective:
100
+ Enabled: false
101
+
102
+ Style/Documentation:
103
+ Enabled: false
104
+
105
+ Style/DocumentationMethod:
106
+ Enabled: false
107
+
108
+ Style/DoubleNegation:
109
+ Enabled: false
110
+
111
+ Style/EachForSimpleLoop:
112
+ Enabled: false
113
+
114
+ Style/EachWithObject:
115
+ Enabled: true
116
+
117
+ Style/EmptyBlockParameter:
118
+ Enabled: true
119
+
120
+ Style/EmptyCaseCondition:
121
+ Enabled: false
122
+
123
+ Style/EmptyElse:
124
+ Enabled: true
125
+ EnforcedStyle: empty
126
+
127
+ Style/EmptyLambdaParameter:
128
+ Enabled: true
129
+
130
+ Style/EmptyLiteral:
131
+ Enabled: true
132
+
133
+ Style/EmptyMethod:
134
+ Enabled: true
135
+ EnforcedStyle: compact
136
+
137
+ Style/Encoding:
138
+ Enabled: false
139
+
140
+ Style/EndBlock:
141
+ Enabled: true
142
+ AutoCorrect: true
143
+
144
+ Style/EvalWithLocation:
145
+ Enabled: true
146
+
147
+ Style/EvenOdd:
148
+ Enabled: true
149
+
150
+ Style/ExpandPathArguments:
151
+ Enabled: true
152
+
153
+ Style/ExponentialNotation:
154
+ Enabled: true
155
+ EnforcedStyle: scientific
156
+
157
+ Style/FloatDivision:
158
+ Enabled: false
159
+
160
+ Style/For:
161
+ Enabled: true
162
+ EnforcedStyle: each
163
+ AutoCorrect: true
164
+
165
+ Style/FormatString:
166
+ Enabled: true
167
+ EnforcedStyle: format
168
+
169
+ Style/FormatStringToken:
170
+ Enabled: true
171
+ EnforcedStyle: annotated
172
+
173
+ Style/FrozenStringLiteralComment:
174
+ Enabled: true
175
+ EnforcedStyle: always
176
+
177
+ Style/GlobalVars:
178
+ Enabled: true
179
+ AllowedVariables: []
180
+
181
+ Style/GuardClause:
182
+ Enabled: false
183
+ MinBodyLength: 1
184
+
185
+ Style/HashEachMethods:
186
+ Enabled: true
187
+
188
+ Style/HashSyntax:
189
+ Enabled: true
190
+ EnforcedStyle: ruby19
191
+ UseHashRocketsWithSymbolValues: false
192
+ PreferHashRocketsForNonAlnumEndingSymbols: false
193
+
194
+ Style/HashTransformKeys:
195
+ Enabled: false
196
+
197
+ Style/HashTransformValues:
198
+ Enabled: false
199
+
200
+ Style/IdenticalConditionalBranches:
201
+ Enabled: true
202
+
203
+ Style/IfInsideElse:
204
+ Enabled: true
205
+ AllowIfModifier: true
206
+
207
+ Style/IfUnlessModifier:
208
+ Enabled: false
209
+
210
+ Style/IfUnlessModifierOfIfUnless:
211
+ Enabled: true
212
+
213
+ Style/IfWithSemicolon:
214
+ Enabled: true
215
+ AutoCorrect: true
216
+
217
+ Style/ImplicitRuntimeError:
218
+ Enabled: false
219
+
220
+ Style/InfiniteLoop:
221
+ Enabled: true
222
+
223
+ Style/InlineComment:
224
+ Enabled: false
225
+
226
+ Style/InverseMethods:
227
+ Enabled: true
228
+
229
+ Style/IpAddresses:
230
+ Enabled: false
231
+
232
+ Style/Lambda:
233
+ Enabled: true
234
+ EnforcedStyle: line_count_dependent
235
+
236
+ Style/LambdaCall:
237
+ Enabled: false
238
+
239
+ Style/LineEndConcatenation:
240
+ Enabled: true
241
+
242
+ Style/MethodCallWithArgsParentheses:
243
+ Enabled: false
244
+ IgnoredMethods: []
245
+
246
+ Style/MethodCallWithoutArgsParentheses:
247
+ Enabled: true
248
+
249
+ Style/MethodCalledOnDoEndBlock:
250
+ Enabled: false
251
+
252
+ Style/MethodDefParentheses:
253
+ Enabled: true
254
+ EnforcedStyle: require_parentheses
255
+
256
+ Style/MethodMissingSuper:
257
+ Enabled: false
258
+
259
+ Style/MinMax:
260
+ Enabled: true
261
+
262
+ Style/MissingElse:
263
+ Enabled: false
264
+
265
+ Style/MissingRespondToMissing:
266
+ Enabled: true
267
+
268
+ Style/MixinGrouping:
269
+ Enabled: true
270
+ EnforcedStyle: separated
271
+
272
+ Style/MixinUsage:
273
+ Enabled: true
274
+
275
+ Style/ModuleFunction:
276
+ Enabled: false
277
+
278
+ Style/MultilineBlockChain:
279
+ Enabled: false
280
+
281
+ Style/MultilineIfModifier:
282
+ Enabled: false
283
+
284
+ Style/MultilineIfThen:
285
+ Enabled: true
286
+
287
+ Style/MultilineMemoization:
288
+ Enabled: true
289
+ EnforcedStyle: keyword
290
+
291
+ Style/MultilineMethodSignature:
292
+ Enabled: false
293
+
294
+ Style/MultilineTernaryOperator:
295
+ Enabled: false
296
+
297
+ Style/MultilineWhenThen:
298
+ Enabled: true
299
+
300
+ Style/MultipleComparison:
301
+ Enabled: true
302
+
303
+ Style/MutableConstant:
304
+ Enabled: true
305
+
306
+ Style/NegatedIf:
307
+ Enabled: true
308
+ EnforcedStyle: both
309
+
310
+ Style/NegatedUnless:
311
+ Enabled: false
312
+ EnforcedStyle: both
313
+
314
+ Style/NegatedWhile:
315
+ Enabled: true
316
+
317
+ Style/NestedModifier:
318
+ Enabled: true
319
+
320
+ Style/NestedParenthesizedCalls:
321
+ Enabled: true
322
+
323
+ Style/NestedTernaryOperator:
324
+ Enabled: true
325
+
326
+ Style/Next:
327
+ Enabled: true
328
+ EnforcedStyle: skip_modifier_ifs
329
+ MinBodyLength: 3
330
+
331
+ Style/NilComparison:
332
+ Enabled: true
333
+ EnforcedStyle: predicate
334
+
335
+ Style/NonNilCheck:
336
+ Enabled: true
337
+ IncludeSemanticChanges: false
338
+
339
+ Style/Not:
340
+ Enabled: true
341
+
342
+ Style/NumericLiteralPrefix:
343
+ Enabled: true
344
+ EnforcedOctalStyle: zero_with_o
345
+
346
+ Style/NumericLiterals:
347
+ Enabled: false
348
+
349
+ Style/NumericPredicate:
350
+ Enabled: true
351
+ EnforcedStyle: predicate
352
+ AutoCorrect: false
353
+ IgnoredMethods: []
354
+
355
+ Style/OneLineConditional:
356
+ Enabled: true
357
+
358
+ Style/OptionHash:
359
+ Enabled: false
360
+
361
+ Style/OptionalArguments:
362
+ Enabled: true
363
+
364
+ Style/ParallelAssignment:
365
+ Enabled: false
366
+
367
+ Style/ParenthesesAroundCondition:
368
+ Enabled: false
369
+
370
+ Style/PercentLiteralDelimiters:
371
+ Enabled: true
372
+
373
+ Style/PercentQLiterals:
374
+ Enabled: true
375
+ EnforcedStyle: lower_case_q
376
+
377
+ Style/PerlBackrefs:
378
+ Enabled: true
379
+
380
+ Style/PreferredHashMethods:
381
+ Enabled: true
382
+ EnforcedStyle: short
383
+
384
+ Style/Proc:
385
+ Enabled: true
386
+
387
+ Style/RaiseArgs:
388
+ Enabled: true
389
+ EnforcedStyle: exploded
390
+
391
+ Style/RandomWithOffset:
392
+ Enabled: true
393
+
394
+ Style/RedundantBegin:
395
+ Enabled: true
396
+
397
+ Style/RedundantConditional:
398
+ Enabled: true
399
+
400
+ Style/RedundantException:
401
+ Enabled: false
402
+
403
+ Style/RedundantFreeze:
404
+ Enabled: true
405
+
406
+ Style/RedundantParentheses:
407
+ Enabled: true
408
+
409
+ Style/RedundantReturn:
410
+ Enabled: true
411
+ AllowMultipleReturnValues: false
412
+
413
+ Style/RedundantSelf:
414
+ Enabled: true
415
+
416
+ Style/RedundantSortBy:
417
+ Enabled: true
418
+
419
+ Style/RegexpLiteral:
420
+ Enabled: false
421
+
422
+ Style/RescueModifier:
423
+ Enabled: false
424
+
425
+ Style/RescueStandardError:
426
+ Enabled: false
427
+
428
+ Style/ReturnNil:
429
+ Enabled: false
430
+
431
+ Style/SafeNavigation:
432
+ Enabled: true
433
+ ConvertCodeThatCanStartToReturnNil: false
434
+
435
+ Style/Sample:
436
+ Enabled: true
437
+
438
+ Style/SelfAssignment:
439
+ Enabled: true
440
+
441
+ Style/Semicolon:
442
+ Enabled: true
443
+ AllowAsExpressionSeparator: false
444
+
445
+ Style/Send:
446
+ Enabled: false
447
+
448
+ Style/SignalException:
449
+ Enabled: true
450
+ EnforcedStyle: only_raise
451
+
452
+ Style/SingleLineBlockParams:
453
+ Enabled: false
454
+
455
+ Style/SingleLineMethods:
456
+ Enabled: true
457
+ AllowIfMethodIsEmpty: true
458
+ Exclude:
459
+ - spec/**/*
460
+
461
+ Style/SlicingWithRange:
462
+ Enabled: true
463
+
464
+ Style/SpecialGlobalVars:
465
+ Enabled: true
466
+
467
+ Style/StabbyLambdaParentheses:
468
+ Enabled: true
469
+ EnforcedStyle: require_parentheses
470
+
471
+ Style/StderrPuts:
472
+ Enabled: true
473
+
474
+ Style/StringHashKeys:
475
+ Enabled: false
476
+
477
+ Style/StringLiterals:
478
+ Enabled: true
479
+ EnforcedStyle: single_quotes
480
+ ConsistentQuotesInMultiline: true
481
+
482
+ Style/StringLiteralsInInterpolation:
483
+ Enabled: true
484
+ EnforcedStyle: single_quotes
485
+
486
+ Style/StringMethods:
487
+ Enabled: false
488
+
489
+ Style/Strip:
490
+ Enabled: true
491
+
492
+ Style/StructInheritance:
493
+ Enabled: true
494
+
495
+ Style/SymbolArray:
496
+ Enabled: true
497
+ EnforcedStyle: percent
498
+
499
+ Style/SymbolLiteral:
500
+ Enabled: true
501
+
502
+ Style/SymbolProc:
503
+ Enabled: true
504
+
505
+ Style/TernaryParentheses:
506
+ Enabled: true
507
+ EnforcedStyle: require_parentheses_when_complex
508
+ AllowSafeAssignment: true
509
+
510
+ Style/TrailingBodyOnClass:
511
+ Enabled: true
512
+
513
+ Style/TrailingBodyOnMethodDefinition:
514
+ Enabled: true
515
+
516
+ Style/TrailingBodyOnModule:
517
+ Enabled: true
518
+
519
+ Style/TrailingCommaInArguments:
520
+ Enabled: true
521
+ EnforcedStyleForMultiline: no_comma
522
+
523
+ Style/TrailingCommaInArrayLiteral:
524
+ Enabled: true
525
+ EnforcedStyleForMultiline: no_comma
526
+
527
+ Style/TrailingCommaInBlockArgs:
528
+ Enabled: false
529
+
530
+ Style/TrailingCommaInHashLiteral:
531
+ Enabled: true
532
+ EnforcedStyleForMultiline: no_comma
533
+
534
+ Style/TrailingMethodEndStatement:
535
+ Enabled: true
536
+
537
+ Style/TrailingUnderscoreVariable:
538
+ Enabled: true
539
+ AllowNamedUnderscoreVariables: true
540
+
541
+ Style/TrivialAccessors:
542
+ Enabled: false
543
+
544
+ Style/UnlessElse:
545
+ Enabled: false
546
+
547
+ Style/RedundantCapitalW:
548
+ Enabled: true
549
+
550
+ Style/RedundantCondition:
551
+ Enabled: true
552
+
553
+ Style/RedundantInterpolation:
554
+ Enabled: true
555
+
556
+ Style/RedundantPercentQ:
557
+ Enabled: true
558
+
559
+ Style/RedundantSort:
560
+ Enabled: true
561
+
562
+ Style/UnpackFirst:
563
+ Enabled: true
564
+
565
+ Style/VariableInterpolation:
566
+ Enabled: true
567
+
568
+ Style/WhenThen:
569
+ Enabled: true
570
+
571
+ Style/WhileUntilDo:
572
+ Enabled: true
573
+
574
+ Style/WhileUntilModifier:
575
+ Enabled: false
576
+
577
+ Style/WordArray:
578
+ Enabled: true
579
+ EnforcedStyle: percent
580
+ MinSize: 2
581
+
582
+ Style/YodaCondition:
583
+ Enabled: false
584
+ EnforcedStyle: forbid_for_all_comparison_operators
585
+
586
+ Style/ZeroLengthPredicate:
587
+ Enabled: true