yoshiki 7.0.0 → 8.0.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
data/.devfu-rubocop.yml CHANGED
@@ -1,8 +1,3 @@
1
- require:
2
- - rubocop-rails
3
- - rubocop-rake
4
- - rubocop-rspec
5
-
6
1
  AllCops:
7
2
  DisplayCopNames: true
8
3
  DisplayStyleGuide: true
@@ -15,194 +10,108 @@ AllCops:
15
10
  - lib/templates/**/*
16
11
  - vendor/**/*
17
12
 
18
- Rails:
19
- Enabled: true
13
+ inherit_from:
14
+ - .rubocop-defaults-rails.yml
20
15
 
21
- Gemspec/DeprecatedAttributeAssignment: # new in 1.30
22
- Enabled: true
23
16
 
24
- Gemspec/RequireMFA: # new in 1.23
17
+ Capybara/SpecificFinders: # new in 2.13
18
+ Enabled: false # prefer find('#css-id')
19
+
20
+ FactoryBot/ConsistentParenthesesStyle: # new in 2.14
25
21
  Enabled: true
22
+ EnforcedStyle: omit_parentheses # default is `require_parentheses`
26
23
 
27
24
  Layout/AccessModifierIndentation:
28
- EnforcedStyle: outdent
25
+ EnforcedStyle: outdent # default is `indent`
26
+
27
+ Layout/BeginEndAlignment:
28
+ EnforcedStyleAlignWith: begin # default is `start_of_line`
29
29
 
30
30
  Layout/CaseIndentation:
31
- IndentOneStep: true
32
- EnforcedStyle: end
31
+ EnforcedStyle: end # default is `case`
32
+ IndentOneStep: true # default is `false`
33
+
34
+ Layout/CommentIndentation:
35
+ AllowForAlignment: true # default is `false`
33
36
 
34
37
  Layout/DefEndAlignment:
35
- EnforcedStyleAlignWith: start_of_line
38
+ EnforcedStyleAlignWith: def # default is `start_of_line`
36
39
  AutoCorrect: true
37
40
 
38
- Layout/ElseAlignment:
39
- Enabled: false
40
-
41
41
  Layout/EmptyLineBetweenDefs:
42
42
  AllowAdjacentOneLineDefs: true
43
+ DefLikeMacros: # default is `[]`
44
+ - after
45
+ - before
46
+ - context
47
+ - describe
48
+ - it
49
+ - let
50
+ - let!
51
+ - subject
43
52
 
44
53
  Layout/EmptyLinesAroundBlockBody:
45
- EnforcedStyle: no_empty_lines
46
- Exclude:
47
- - spec/**/*
48
- - '**/*.rake'
54
+ Exclude: # mostly *no* but yes
55
+ - spec/**/* # - for rspec context/describe
56
+ - '**/*.rake' # - rake namespaces
49
57
 
50
58
  Layout/EmptyLinesAroundClassBody:
51
- EnforcedStyle: empty_lines_except_namespace
59
+ EnforcedStyle: empty_lines_except_namespace # default is `no_empty_lines`
52
60
 
53
61
  Layout/EmptyLinesAroundModuleBody:
54
- EnforcedStyle: empty_lines_except_namespace
55
-
56
- Layout/EndAlignment:
57
- EnforcedStyleAlignWith: variable
58
- AutoCorrect: true
62
+ EnforcedStyle: empty_lines_except_namespace # default is `no_empty_lines`
59
63
 
60
64
  Layout/ExtraSpacing:
61
- AllowForAlignment: true
62
- ForceEqualSignAlignment: true
65
+ ForceEqualSignAlignment: true # default is `false`
63
66
  Exclude:
64
67
  - Gemfile
65
68
 
66
69
  Layout/HashAlignment:
67
- EnforcedHashRocketStyle: table
68
- EnforcedColonStyle: table
69
-
70
- Layout/LineContinuationLeadingSpace: # new in 1.31
71
- Enabled: true
72
-
73
- Layout/LineContinuationSpacing: # new in 1.31
74
- Enabled: true
75
-
76
- Layout/LineEndStringConcatenationIndentation: # new in 1.18
77
- Enabled: true
78
-
79
- Layout/LineLength:
80
- Max: 120
81
- IgnoreCopDirectives: true
70
+ EnforcedHashRocketStyle: table # default is `key`
71
+ EnforcedColonStyle: table # default is `key`
82
72
 
83
73
  Layout/MultilineOperationIndentation:
84
- EnforcedStyle: indented
85
-
86
- Layout/SpaceBeforeBrackets: # new in 1.7
87
- Enabled: true
74
+ EnforcedStyle: indented # default is `aligned`
88
75
 
89
76
  Layout/SpaceInsideArrayLiteralBrackets:
90
- EnforcedStyle: space
77
+ EnforcedStyle: space # default is `no_space`
91
78
  EnforcedStyleForEmptyBrackets: no_space
92
79
 
93
80
  Layout/SpaceInsidePercentLiteralDelimiters:
94
- Enabled: false
95
-
96
- Layout/SpaceInsideReferenceBrackets:
97
- EnforcedStyle: no_space
98
- EnforcedStyleForEmptyBrackets: no_space
81
+ Enabled: false # doesn't support the `space` enforced style
99
82
 
100
83
  Layout/SpaceInsideStringInterpolation:
101
- EnforcedStyle: space
102
-
103
- Lint/AmbiguousAssignment: # new in 1.7
104
- Enabled: true
84
+ EnforcedStyle: space # default is `no_space`
105
85
 
86
+ # this cop now allows configuration with `AllowedMethods` & `AllowedPatterns`
106
87
  Lint/AmbiguousBlockAssociation:
107
- Enabled: false
88
+ Enabled: true
108
89
 
109
90
  Lint/AmbiguousOperator:
110
91
  Enabled: false
111
92
 
112
- Lint/AmbiguousOperatorPrecedence: # new in 1.21
113
- Enabled: true
114
-
115
- Lint/AmbiguousRange: # new in 1.19
116
- Enabled: true
117
-
118
93
  Lint/AmbiguousRegexpLiteral:
119
94
  Enabled: false
120
95
 
121
96
  Lint/AssignmentInCondition:
122
97
  Enabled: false
123
98
 
124
- Lint/ConstantOverwrittenInRescue: # new in 1.31
125
- Enabled: true
126
-
127
- Lint/DeprecatedConstants: # new in 1.8
128
- Enabled: true
129
-
130
- Lint/DuplicateBranch: # new in 1.3
131
- Enabled: true
132
-
133
- Lint/DuplicateMagicComment: # new in 1.37
134
- Enabled: true
135
-
136
- Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
137
- Enabled: true
138
-
139
- Lint/EmptyBlock: # new in 1.1
140
- Enabled: true
141
-
142
- Lint/EmptyClass: # new in 1.3
143
- Enabled: true
144
-
145
- Lint/EmptyInPattern: # new in 1.16
146
- Enabled: true
147
-
148
- Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
149
- Enabled: true
150
-
151
- Lint/LambdaWithoutLiteralBlock: # new in 1.8
152
- Enabled: true
153
-
154
- Lint/NonAtomicFileOperation: # new in 1.31
155
- Enabled: true
156
-
157
- Lint/NoReturnInBeginEndBlocks: # new in 1.2
158
- Enabled: true
159
-
160
- Lint/NumberedParameterAssignment: # new in 1.9
161
- Enabled: true
162
-
163
- Lint/OrAssignmentToConstant: # new in 1.9
164
- Enabled: true
165
-
166
- Lint/RedundantDirGlobSort: # new in 1.8
167
- Enabled: true
168
-
169
99
  Lint/RedundantSplatExpansion:
170
100
  Enabled: false
171
101
 
172
- Lint/RefinementImportMethods: # new in 1.27
173
- Enabled: true
174
-
175
- Lint/RequireRangeParentheses: # new in 1.32
176
- Enabled: false
177
-
178
- Lint/RequireRelativeSelfPath: # new in 1.22
179
- Enabled: true
180
-
181
- Lint/SymbolConversion: # new in 1.9
182
- Enabled: true
183
-
184
- Lint/ToEnumArguments: # new in 1.1
185
- Enabled: true
186
-
187
- Lint/TripleQuotes: # new in 1.9
188
- Enabled: true
189
-
190
- Lint/UnexpectedBlockArity: # new in 1.5
191
- Enabled: true
192
-
193
- Lint/UnmodifiedReduceAccumulator: # new in 1.1
194
- Enabled: true
195
-
196
- Lint/UselessRuby2Keywords: # new in 1.23
197
- Enabled: true
198
-
199
- Lint/Void:
200
- Exclude:
201
- - spec/**/*.rb
202
-
102
+ # this cop now allows configuration with AllowedMethods, AllowedPatterns,
103
+ # and CountAsOne
203
104
  Metrics/BlockLength:
204
- Enabled: false
205
-
105
+ AllowedMethods:
106
+ - describe
107
+ - context
108
+ CountAsOne:
109
+ - array
110
+ - heredoc
111
+ - method_call
112
+
113
+ # this cop now allows configuration with AllowedMethods, AllowedPatterns,
114
+ # and CountAsOne
206
115
  Metrics/MethodLength:
207
116
  Exclude:
208
117
  - db/migrate/**/*
@@ -215,14 +124,11 @@ Naming/AsciiIdentifiers:
215
124
 
216
125
  Naming/BlockForwarding: # new in 1.24
217
126
  Enabled: true
218
- EnforcedStyle: explicit
127
+ EnforcedStyle: explicit # default is `anonymous`
219
128
 
220
129
  Naming/InclusiveLanguage:
221
130
  Enabled: false
222
131
 
223
- Naming/MemoizedInstanceVariableName:
224
- EnforcedStyleForLeadingUnderscores: disallowed
225
-
226
132
  Naming/PredicateName:
227
133
  NamePrefix:
228
134
  - is_
@@ -234,185 +140,32 @@ Naming/PredicateName:
234
140
  AllowedMethods:
235
141
  - is_a?
236
142
 
237
- Naming/VariableNumber:
238
- EnforcedStyle: snake_case
239
-
240
- Rails/ActionControllerFlashBeforeRender: # new in 2.16
241
- Enabled: true
242
-
243
- Rails/ActionControllerTestCase: # new in 2.14
244
- Enabled: true
245
-
246
- Rails/ActionOrder: # new in 2.17
247
- Enabled: true
248
-
249
- Rails/ActiveRecordCallbacksOrder: # new in 2.7
250
- Enabled: true
251
-
252
- Rails/ActiveSupportOnLoad: # new in 2.16
253
- Enabled: true
254
-
255
- Rails/AddColumnIndex: # new in 2.11
256
- Enabled: true
257
-
258
- Rails/AfterCommitOverride: # new in 2.8
259
- Enabled: true
260
-
261
- Rails/AttributeDefaultBlockValue: # new in 2.9
262
- Enabled: true
263
-
264
- Rails/CompactBlank: # new in 2.13
265
- Enabled: true
266
-
267
- Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
268
- Enabled: true
269
-
270
- Rails/DotSeparatedKeys: # new in 2.15
271
- Enabled: true
272
-
273
- Rails/DuplicateAssociation: # new in 2.14
274
- Enabled: true
275
-
276
- Rails/DuplicateScope: # new in 2.14
277
- Enabled: true
278
-
279
- Rails/DurationArithmetic: # new in 2.13
280
- Enabled: true
281
-
282
- Rails/EagerEvaluationLogMessage: # new in 2.11
283
- Enabled: true
284
-
285
- Rails/ExpandedDateRange: # new in 2.11
286
- Enabled: true
287
-
288
- Rails/FindById: # new in 2.7
289
- Enabled: true
290
-
291
- Rails/FreezeTime: # new in 2.16
292
- Enabled: true
293
-
294
- Rails/IgnoredColumnsAssignment: # new in 2.17
295
- Enabled: true
296
-
297
- Rails/I18nLazyLookup: # new in 2.14
298
- Enabled: true
299
-
300
- Rails/I18nLocaleAssignment: # new in 2.11
301
- Enabled: true
302
-
303
- Rails/I18nLocaleTexts: # new in 2.14
304
- Enabled: true
305
-
306
143
  Rails/Inquiry: # new in 2.7
307
144
  Enabled: false
308
145
 
309
- Rails/MailerName: # new in 2.7
310
- Enabled: true
311
-
312
- Rails/MatchRoute: # new in 2.7
313
- Enabled: true
314
-
315
- Rails/MigrationClassName: # new in 2.14
316
- Enabled: true
317
-
318
- Rails/NegateInclude: # new in 2.7
319
- Enabled: true
320
-
321
146
  Rails/Output:
322
147
  Exclude:
323
148
  - 'config/unicorn.rb'
324
149
 
325
- Rails/Pluck: # new in 2.7
326
- Enabled: true
327
-
328
150
  Rails/PluckInWhere: # new in 2.7
329
151
  Enabled: true
330
- EnforcedStyle: aggressive
152
+ EnforcedStyle: aggressive # default is `conservative`
331
153
 
332
154
  Rails/ReadWriteAttribute:
333
155
  Enabled: false
334
156
 
335
- Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
336
- Enabled: true
337
-
338
- Rails/RedundantTravelBack: # new in 2.12
339
- Enabled: true
340
-
341
- Rails/RenderInline: # new in 2.7
342
- Enabled: true
343
-
344
- Rails/RenderPlainText: # new in 2.7
345
- Enabled: true
346
-
347
- Rails/RootJoinChain: # new in 2.13
348
- Enabled: true
349
-
350
- Rails/RootPathnameMethods: # new in 2.16
351
- Enabled: true
352
-
353
- Rails/RootPublicPath: # new in 2.15
354
- Enabled: true
355
-
356
157
  Rails/ShortI18n: # new in 2.7
357
158
  Enabled: true
358
- EnforcedStyle: aggressive
159
+ EnforcedStyle: aggressive # default is `conservative`
359
160
 
360
161
  Rails/SkipsModelValidations:
361
162
  Enabled: false
362
163
 
363
- Rails/SquishedSQLHeredocs: # new in 2.8
364
- Enabled: true
365
-
366
- Rails/StripHeredoc: # new in 2.15
367
- Enabled: true
368
-
369
- Rails/TimeZoneAssignment: # new in 2.10
370
- Enabled: true
371
-
372
- # prefer to_s(:format)
373
164
  Rails/ToFormattedS: # new in 2.15
374
- Enabled: false
165
+ Enabled: false # prefer to_s(:format)
375
166
 
376
- # prefer to_s(:format)
377
167
  Rails/ToSWithArgument: # new in 2.16
378
- Enabled: false
379
-
380
- Rails/TopLevelHashWithIndifferentAccess: # new in 2.16
381
- Enabled: true
382
-
383
- Rails/TransactionExitStatement: # new in 2.14
384
- Enabled: true
385
-
386
- Rails/UnusedIgnoredColumns: # new in 2.11
387
- Enabled: true
388
-
389
- Rails/WhereEquals: # new in 2.9
390
- Enabled: true
391
-
392
- Rails/WhereExists: # new in 2.7
393
- Enabled: true
394
-
395
- Rails/WhereMissing: # new in 2.16
396
- Enabled: true
397
-
398
- Rails/WhereNot: # new in 2.8
399
- Enabled: true
400
-
401
- Rails/WhereNotWithMultipleConditions: # new in 2.17
402
- Enabled: true
403
-
404
- RSpec/BeEq: # new in 2.9.0
405
- Enabled: true
406
-
407
- RSpec/BeNil: # new in 2.9.0
408
- Enabled: true
409
- EnforcedStyle: be
410
-
411
- RSpec/ChangeByZero: # new in 2.11.0
412
- Enabled: true
413
-
414
- RSpec/ClassCheck: # new in 2.13
415
- Enabled: true
168
+ Enabled: false # prefer to_s(:format)
416
169
 
417
170
  RSpec/ContextWording:
418
171
  Prefixes:
@@ -424,171 +177,49 @@ RSpec/ContextWording:
424
177
  - with
425
178
  - without
426
179
 
427
- RSpec/DescribeClass:
428
- Exclude:
429
- - 'spec/features/**/*'
430
-
431
- RSpec/ExcessiveDocstringSpacing: # new in 2.5
432
- Enabled: true
433
-
434
- RSpec/IdenticalEqualityAssertion: # new in 2.4
435
- Enabled: true
436
-
437
180
  RSpec/ImplicitExpect:
438
181
  EnforcedStyle: should
439
182
 
440
183
  RSpec/ImplicitSubject:
441
- Enabled: false
184
+ EnforcedStyle: single_statement_only # default is `single_line_only`
442
185
 
443
186
  RSpec/LeadingSubject:
444
- Enabled: false
445
-
446
- RSpec/LetSetup:
447
- Enabled: false
187
+ Enabled: false # prefer subject after all let and let!
448
188
 
189
+ # this cop can be configured with `AllowedGroups`
449
190
  RSpec/NestedGroups:
450
191
  Enabled: false
451
192
 
452
- RSpec/NoExpectationExample: # new in 2.13
453
- Enabled: true
454
-
455
- RSpec/RepeatedExample:
456
- Enabled: false
457
-
458
- RSpec/SortMetadata: # new in 2.14
459
- Enabled: true
460
-
461
- RSpec/SubjectDeclaration: # new in 2.5
462
- Enabled: true
463
-
464
- RSpec/VerifiedDoubleReference: # new in 2.10.0
465
- Enabled: true
466
-
467
- # prefer to_not over not_to or have_no
468
- RSpec/Capybara/NegationMatcher: # new in 2.14
469
- Enabled: false
470
-
471
- RSpec/Capybara/SpecificActions: # new in 2.14
472
- Enabled: true
473
-
474
- # prefer find('#css-id')
475
- RSpec/Capybara/SpecificFinders: # new in 2.13
476
- Enabled: false
477
-
478
- RSpec/Capybara/SpecificMatcher: # new in 2.12
479
- Enabled: true
480
-
481
- RSpec/FactoryBot/ConsistentParenthesesStyle: # new in 2.14
482
- Enabled: true
483
- EnforcedStyle: omit_parentheses
484
-
485
- RSpec/FactoryBot/FactoryClassName:
193
+ RSpec/PendingWithoutReason: # new in 2.16
486
194
  Enabled: false
487
195
 
488
- RSpec/FactoryBot/SyntaxMethods: # new in 2.7
489
- Enabled: true
490
-
491
- RSpec/Rails/AvoidSetupHook: # new in 2.4
492
- Enabled: true
493
-
494
- RSpec/Rails/HaveHttpStatus: # new in 2.12
495
- Enabled: true
496
-
497
- RSpec/Rails/InferredSpecType: # new in 2.14
498
- Enabled: true
499
-
500
- Security/CompoundHash: # new in 1.28
501
- Enabled: true
502
-
503
- Security/IoMethods: # new in 1.22
504
- Enabled: true
505
-
506
196
  Style/AndOr:
507
197
  Enabled: false
508
198
 
509
- Style/ArgumentsForwarding: # new in 1.1
510
- Enabled: true
511
-
512
- Style/ArrayIntersect: # new in 1.40
513
- Enabled: true
514
-
515
199
  Style/AsciiComments:
516
200
  Enabled: false
517
201
 
518
202
  Style/BarePercentLiterals:
519
- EnforcedStyle: percent_q
520
-
521
- Style/BlockDelimiters:
522
- Exclude:
523
- - spec/**/*.rb
524
-
525
- Style/CollectionCompact: # new in 1.2
526
- Enabled: true
203
+ EnforcedStyle: percent_q # default is `bare_percent`
527
204
 
528
205
  Style/CommandLiteral:
529
- EnforcedStyle: mixed
206
+ EnforcedStyle: mixed # default is `backticks`
530
207
 
531
- Style/Documentation:
208
+ Style/Documentation: # default config doesn't exclude migrations
532
209
  Exclude:
533
210
  - 'db/migrate/**/*'
534
211
  - 'spec/**/*'
535
212
  - 'test/**/*'
536
213
 
537
- Style/DocumentDynamicEvalDefinition: # new in 1.1
538
- Enabled: true
539
-
540
214
  Style/DoubleNegation:
541
215
  Enabled: false
542
216
 
543
- Style/EachWithObject:
544
- Enabled: false
545
-
546
- Style/EmptyHeredoc: # new in 1.32
547
- Enabled: true
548
-
549
217
  Style/EndlessMethod: # new in 1.8
550
218
  Enabled: true
551
-
552
- Style/EnvHome: # new in 1.29
553
- Enabled: true
554
-
555
- Style/FetchEnvVar:
556
- Enabled: false
557
-
558
- Style/FileRead: # new in 1.24
559
- Enabled: true
560
-
561
- Style/FileWrite: # new in 1.24
562
- Enabled: true
563
-
564
- Style/GlobalStdStream:
565
- Enabled: false
566
-
567
- Style/HashConversion: # new in 1.10
568
- Enabled: true
569
-
570
- Style/HashExcept: # new in 1.7
571
- Enabled: true
219
+ EnforcedStyle: disallow # default is `allow_single_line`
572
220
 
573
221
  Style/HashSyntax:
574
- EnforcedStyle: ruby19
575
- PreferHashRocketsForNonAlnumEndingSymbols: true
576
-
577
- Style/IfWithBooleanLiteralBranches: # new in 1.9
578
- Enabled: true
579
-
580
- Style/InPatternThen: # new in 1.16
581
- Enabled: true
582
-
583
- Style/MagicCommentFormat: # new in 1.35
584
- Enabled: true
585
- ValueCapitalization: lowercase
586
-
587
- Style/MapCompactWithConditionalBlock: # new in 1.30
588
- Enabled: true
589
-
590
- Style/MapToHash: # new in 1.24
591
- Enabled: true
222
+ EnforcedShorthandSyntax: consistent # default is `always`
592
223
 
593
224
  Style/MethodDefParentheses:
594
225
  EnforcedStyle: require_no_parentheses
@@ -600,43 +231,22 @@ Style/MixinUsage:
600
231
  Style/MultilineIfModifier:
601
232
  Enabled: false
602
233
 
603
- Style/MultilineInPatternThen: # new in 1.16
604
- Enabled: true
605
-
606
- Style/NegatedIfElseCondition: # new in 1.2
607
- Enabled: true
608
-
609
- Style/NestedFileDirname: # new in 1.26
610
- Enabled: true
611
-
612
- Style/NilLambda: # new in 1.3
613
- Enabled: true
614
-
615
234
  Style/Not:
616
235
  Enabled: false
617
236
 
618
237
  Style/NumberedParameters: # new in 1.22
619
238
  Enabled: true
620
- EnforcedStyle: disallow
239
+ EnforcedStyle: disallow # default is `allow_single_line`
621
240
 
622
241
  Style/NumberedParametersLimit:
623
242
  Enabled: true
624
- Max: 0
625
-
626
- Style/ObjectThen: # new in 1.28
627
- Enabled: true
628
-
629
- Style/OpenStructUse: # new in 1.23
630
- Enabled: true
631
-
632
- Style/OperatorMethodCall: # new in 1.37
633
- Enabled: true
243
+ Max: 0 # default is `1`
634
244
 
635
245
  Style/OptionHash:
636
- Enabled: true
246
+ Enabled: true # default is `false`
637
247
 
638
248
  Style/PercentLiteralDelimiters:
639
- PreferredDelimiters:
249
+ PreferredDelimiters: # prefer methods that make arrays to use square brackets
640
250
  '%': '[]'
641
251
  '%i': '[]'
642
252
  '%Q': '{}'
@@ -650,54 +260,20 @@ Style/PercentLiteralDelimiters:
650
260
  Style/PerlBackrefs:
651
261
  Enabled: false
652
262
 
653
- Style/QuotedSymbols: # new in 1.16
654
- Enabled: true
655
-
656
- Style/RedundantArgument: # new in 1.4
657
- Enabled: true
658
-
659
- Style/RedundantConstantBase: # new in 1.40
660
- Enabled: true
661
-
662
- Style/RedundantEach: # new in 1.38
663
- Enabled: true
664
-
665
- Style/RedundantInitialize: # new in 1.27
666
- Enabled: true
667
-
668
- Style/RedundantSelfAssignmentBranch: # new in 1.19
669
- Enabled: true
670
-
671
- Style/RedundantStringEscape: # new in 1.37
672
- Enabled: true
673
-
674
- Style/RegexpLiteral:
675
- EnforcedStyle: mixed
676
-
677
263
  Style/RescueModifier:
678
264
  Enabled: false
679
265
 
680
- Style/SelectByRegexp: # new in 1.22
681
- Enabled: true
682
-
683
266
  Style/Semicolon:
684
- AllowAsExpressionSeparator: true
267
+ AllowAsExpressionSeparator: true # default is `false`
685
268
 
686
269
  Style/SingleLineBlockParams:
687
270
  Methods:
688
271
  - inject:
689
- - a
690
- - t
691
-
692
- Style/StringChars: # new in 1.12
693
- Enabled: true
694
-
695
- Style/SwapValues: # new in 1.1
696
- Enabled: true
272
+ - a # all / accumulator
273
+ - t # this
697
274
 
698
275
  Style/SymbolArray:
699
- EnforcedStyle: percent
700
- MinSize: 3
276
+ MinSize: 3 # default is `2`
701
277
 
702
278
  Style/TrailingUnderscoreVariable:
703
- AllowNamedUnderscoreVariables: false
279
+ AllowNamedUnderscoreVariables: false # defaults to `true`