standard 0.1.0 → 1.51.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +11 -0
  3. data/.github/workflows/test.yml +24 -0
  4. data/.github/workflows/update.yml +54 -0
  5. data/.gitignore +3 -0
  6. data/.standard.yml +1 -1
  7. data/CHANGELOG.md +703 -0
  8. data/Gemfile +13 -0
  9. data/Gemfile.lock +71 -37
  10. data/LICENSE.txt +3 -4
  11. data/README.md +459 -264
  12. data/Rakefile +5 -4
  13. data/bin/console +0 -4
  14. data/bin/rake +27 -0
  15. data/bin/run +9 -0
  16. data/config/base.yml +1065 -193
  17. data/config/default.yml +8 -0
  18. data/config/ruby-1.8.yml +10 -2
  19. data/config/ruby-1.9.yml +11 -1
  20. data/config/ruby-2.0.yml +4 -0
  21. data/config/ruby-2.1.yml +4 -0
  22. data/config/ruby-2.2.yml +13 -5
  23. data/config/ruby-2.3.yml +10 -0
  24. data/config/ruby-2.4.yml +10 -0
  25. data/config/ruby-2.5.yml +10 -0
  26. data/config/ruby-2.6.yml +13 -0
  27. data/config/ruby-2.7.yml +10 -0
  28. data/config/ruby-3.0.yml +13 -0
  29. data/config/ruby-3.1.yml +11 -0
  30. data/config/ruby-3.2.yml +4 -0
  31. data/config/ruby-3.3.yml +7 -0
  32. data/docs/ARCHITECTURE.md +33 -0
  33. data/docs/RELEASE.md +41 -0
  34. data/docs/RUBY_VERSIONS.md +51 -0
  35. data/docs/UPGRADING.md +31 -0
  36. data/lib/ruby_lsp/standard/addon.rb +58 -0
  37. data/lib/ruby_lsp/standard/wraps_built_in_lsp_standardizer.rb +44 -0
  38. data/lib/standard/base/plugin.rb +69 -0
  39. data/lib/standard/base.rb +8 -0
  40. data/lib/standard/builds_config.rb +11 -1
  41. data/lib/standard/cli.rb +1 -7
  42. data/lib/standard/creates_config_store/assigns_rubocop_yaml.rb +2 -18
  43. data/lib/standard/creates_config_store/configures_ignored_paths.rb +2 -2
  44. data/lib/standard/creates_config_store/merges_user_config_extensions.rb +37 -0
  45. data/lib/standard/creates_config_store/sets_target_ruby_version.rb +21 -8
  46. data/lib/standard/creates_config_store.rb +5 -0
  47. data/lib/standard/formatter.rb +92 -37
  48. data/lib/standard/loads_runner.rb +17 -3
  49. data/lib/standard/loads_yaml_config.rb +18 -11
  50. data/lib/standard/lsp/diagnostic.rb +174 -0
  51. data/lib/standard/lsp/kills_server.rb +10 -0
  52. data/lib/standard/lsp/logger.rb +21 -0
  53. data/lib/standard/lsp/routes.rb +175 -0
  54. data/lib/standard/lsp/server.rb +37 -0
  55. data/lib/standard/lsp/standardizer.rb +34 -0
  56. data/lib/standard/lsp/stdin_rubocop_runner.rb +71 -0
  57. data/lib/standard/merges_settings.rb +22 -11
  58. data/lib/standard/plugin/combines_plugin_configs.rb +15 -0
  59. data/lib/standard/plugin/creates_runner_context.rb +15 -0
  60. data/lib/standard/plugin/determines_class_constant.rb +56 -0
  61. data/lib/standard/plugin/initializes_plugins.rb +23 -0
  62. data/lib/standard/plugin/merges_plugins_into_rubocop_config.rb +177 -0
  63. data/lib/standard/plugin/standardizes_configured_plugins.rb +37 -0
  64. data/lib/standard/plugin.rb +11 -0
  65. data/lib/standard/railtie.rb +1 -1
  66. data/lib/standard/rake.rb +8 -1
  67. data/lib/standard/{parses_cli_option.rb → resolves_yaml_option.rb} +9 -2
  68. data/lib/standard/rubocop/ext.rb +17 -0
  69. data/lib/standard/runners/genignore.rb +44 -0
  70. data/lib/standard/runners/help.rb +9 -5
  71. data/lib/standard/runners/lsp.rb +11 -0
  72. data/lib/standard/runners/rubocop.rb +14 -18
  73. data/lib/standard/runners/verbose_version.rb +14 -0
  74. data/lib/standard/version.rb +1 -1
  75. data/lib/standard.rb +6 -4
  76. data/standard.gemspec +22 -20
  77. metadata +72 -73
  78. data/.circleci/config.yml +0 -35
  79. data/lib/standard/cop/semantic_blocks.rb +0 -162
  80. data/lib/standard/detects_fixability.rb +0 -20
data/config/base.yml CHANGED
@@ -1,12 +1,3 @@
1
- require:
2
- - rubocop-performance
3
-
4
- AllCops:
5
- # Prevent RuboCop from exploding when it finds an older-than-2.3 .ruby-version
6
- TargetRubyVersion: 2.5
7
- DisabledByDefault: true
8
- Exclude: []
9
-
10
1
  Bundler/DuplicatedGem:
11
2
  Enabled: true
12
3
  Include:
@@ -14,6 +5,18 @@ Bundler/DuplicatedGem:
14
5
  - '**/Gemfile'
15
6
  - '**/gems.rb'
16
7
 
8
+ Bundler/DuplicatedGroup:
9
+ Enabled: false
10
+
11
+ Bundler/GemComment:
12
+ Enabled: false
13
+
14
+ Bundler/GemFilename:
15
+ Enabled: false
16
+
17
+ Bundler/GemVersion:
18
+ Enabled: false
19
+
17
20
  Bundler/InsecureProtocolSource:
18
21
  Enabled: true
19
22
  Include:
@@ -21,30 +24,63 @@ Bundler/InsecureProtocolSource:
21
24
  - '**/Gemfile'
22
25
  - '**/gems.rb'
23
26
 
27
+ Bundler/OrderedGems:
28
+ Enabled: false
29
+
30
+ Gemspec/AddRuntimeDependency:
31
+ Enabled: false
32
+
33
+ Gemspec/AttributeAssignment:
34
+ Enabled: false
35
+
36
+ Gemspec/DependencyVersion:
37
+ Enabled: false
38
+
39
+ Gemspec/DeprecatedAttributeAssignment:
40
+ Enabled: true
41
+
42
+ Gemspec/DevelopmentDependencies:
43
+ Enabled: false
44
+
24
45
  Gemspec/DuplicatedAssignment:
25
46
  Enabled: true
26
47
  Include:
27
48
  - '**/*.gemspec'
28
49
 
50
+ Gemspec/OrderedDependencies:
51
+ Enabled: false
52
+
53
+ Gemspec/RequireMFA:
54
+ Enabled: false
55
+
56
+ Gemspec/RequiredRubyVersion:
57
+ Enabled: false
58
+
59
+ Gemspec/RubyVersionGlobalsUsage:
60
+ Enabled: false
61
+
29
62
  Layout/AccessModifierIndentation:
30
63
  Enabled: true
31
64
  EnforcedStyle: indent
32
65
  IndentationWidth: ~
33
66
 
34
- Layout/AlignArray:
67
+ Layout/ArgumentAlignment:
35
68
  Enabled: true
69
+ EnforcedStyle: with_fixed_indentation
36
70
 
37
- Layout/AlignHash:
71
+ Layout/ArrayAlignment:
38
72
  Enabled: true
39
- EnforcedHashRocketStyle: key
40
- EnforcedColonStyle: key
41
- EnforcedLastArgumentHashStyle: always_inspect
73
+ EnforcedStyle: with_fixed_indentation
42
74
 
43
- Layout/AlignParameters:
75
+ Layout/AssignmentIndentation:
44
76
  Enabled: true
45
- EnforcedStyle: with_fixed_indentation
46
77
  IndentationWidth: ~
47
78
 
79
+ Layout/BeginEndAlignment:
80
+ Enabled: true
81
+ EnforcedStyleAlignWith: start_of_line
82
+ Severity: warning
83
+
48
84
  Layout/BlockAlignment:
49
85
  Enabled: true
50
86
  EnforcedStyleAlignWith: either
@@ -52,10 +88,12 @@ Layout/BlockAlignment:
52
88
  Layout/BlockEndNewline:
53
89
  Enabled: true
54
90
 
55
- # Disabled because IndentOneStep can't be configured for one-liner cases. See:
56
- # https://github.com/rubocop-hq/rubocop/issues/6447
57
- # Layout/CaseIndentation:
58
- # Enabled: true
91
+ Layout/CaseIndentation:
92
+ Enabled: true
93
+ EnforcedStyle: end
94
+
95
+ Layout/ClassStructure:
96
+ Enabled: false
59
97
 
60
98
  Layout/ClosingHeredocIndentation:
61
99
  Enabled: true
@@ -72,7 +110,6 @@ Layout/ConditionPosition:
72
110
  Layout/DefEndAlignment:
73
111
  Enabled: true
74
112
  EnforcedStyleAlignWith: start_of_line
75
- AutoCorrect: false
76
113
  Severity: warning
77
114
 
78
115
  Layout/DotPosition:
@@ -87,23 +124,35 @@ Layout/EmptyComment:
87
124
  AllowBorderComment: true
88
125
  AllowMarginComment: true
89
126
 
127
+ Layout/EmptyLineAfterGuardClause:
128
+ Enabled: false
129
+
90
130
  Layout/EmptyLineAfterMagicComment:
91
131
  Enabled: true
92
132
 
133
+ Layout/EmptyLineAfterMultilineCondition:
134
+ Enabled: false
135
+
93
136
  Layout/EmptyLineBetweenDefs:
94
137
  Enabled: true
95
- AllowAdjacentOneLineDefs: false
138
+ AllowAdjacentOneLineDefs: true
96
139
  NumberOfEmptyLines: 1
97
140
 
98
141
  Layout/EmptyLines:
99
142
  Enabled: true
100
143
 
144
+ Layout/EmptyLinesAfterModuleInclusion:
145
+ Enabled: true
146
+
101
147
  Layout/EmptyLinesAroundAccessModifier:
102
148
  Enabled: true
103
149
 
104
150
  Layout/EmptyLinesAroundArguments:
105
151
  Enabled: true
106
152
 
153
+ Layout/EmptyLinesAroundAttributeAccessor:
154
+ Enabled: false
155
+
107
156
  Layout/EmptyLinesAroundBeginBody:
108
157
  Enabled: true
109
158
 
@@ -127,7 +176,6 @@ Layout/EmptyLinesAroundModuleBody:
127
176
 
128
177
  Layout/EndAlignment:
129
178
  Enabled: true
130
- AutoCorrect: true
131
179
  EnforcedStyleAlignWith: variable
132
180
  Severity: warning
133
181
 
@@ -137,55 +185,97 @@ Layout/EndOfLine:
137
185
 
138
186
  Layout/ExtraSpacing:
139
187
  Enabled: true
140
- AllowForAlignment: true
141
- AllowBeforeTrailingComments: false
188
+ AllowForAlignment: false
189
+ AllowBeforeTrailingComments: true
142
190
  ForceEqualSignAlignment: false
143
191
 
144
- Layout/IndentFirstArgument:
192
+ Layout/FirstArgumentIndentation:
145
193
  Enabled: true
146
194
  EnforcedStyle: consistent
147
195
  IndentationWidth: ~
148
196
 
149
- Layout/IndentFirstArrayElement:
197
+ Layout/FirstArrayElementIndentation:
150
198
  Enabled: true
151
199
  EnforcedStyle: consistent
152
200
  IndentationWidth: ~
153
201
 
154
- Layout/IndentAssignment:
155
- Enabled: true
156
- IndentationWidth: ~
202
+ Layout/FirstArrayElementLineBreak:
203
+ Enabled: false
157
204
 
158
- Layout/IndentFirstHashElement:
205
+ Layout/FirstHashElementIndentation:
159
206
  Enabled: true
160
207
  EnforcedStyle: consistent
161
208
  IndentationWidth: ~
162
209
 
163
- Layout/IndentHeredoc:
210
+ Layout/FirstHashElementLineBreak:
211
+ Enabled: false
212
+
213
+ Layout/FirstMethodArgumentLineBreak:
214
+ Enabled: false
215
+
216
+ Layout/FirstMethodParameterLineBreak:
217
+ Enabled: false
218
+
219
+ Layout/FirstParameterIndentation:
220
+ Enabled: false
221
+
222
+ Layout/HashAlignment:
223
+ Enabled: true
224
+ EnforcedHashRocketStyle: key
225
+ EnforcedColonStyle: key
226
+ EnforcedLastArgumentHashStyle: always_inspect
227
+
228
+ Layout/HeredocArgumentClosingParenthesis:
229
+ Enabled: false
230
+
231
+ Layout/HeredocIndentation:
164
232
  Enabled: true
165
- EnforcedStyle: squiggly
166
233
 
167
234
  Layout/IndentationConsistency:
168
235
  Enabled: true
169
236
  EnforcedStyle: normal
170
237
 
238
+ Layout/IndentationStyle:
239
+ Enabled: true
240
+ IndentationWidth: ~
241
+
171
242
  Layout/IndentationWidth:
172
243
  Enabled: true
173
244
  Width: 2
174
- IgnoredPatterns: []
245
+ AllowedPatterns: []
175
246
 
176
247
  Layout/InitialIndentation:
177
248
  Enabled: true
178
249
 
179
- Layout/LeadingBlankLines:
250
+ Layout/LeadingCommentSpace:
251
+ Enabled: true
252
+ AllowRBSInlineAnnotation: true
253
+
254
+ Layout/LeadingEmptyLines:
180
255
  Enabled: true
181
256
 
182
- Layout/LeadingCommentSpace:
257
+ Layout/LineContinuationLeadingSpace:
258
+ Enabled: false
259
+
260
+ Layout/LineContinuationSpacing:
183
261
  Enabled: true
184
262
 
263
+ Layout/LineEndStringConcatenationIndentation:
264
+ Enabled: false
265
+
266
+ Layout/LineLength:
267
+ Enabled: false
268
+
185
269
  Layout/MultilineArrayBraceLayout:
186
270
  Enabled: true
187
271
  EnforcedStyle: symmetrical
188
272
 
273
+ Layout/MultilineArrayLineBreaks:
274
+ Enabled: false
275
+
276
+ Layout/MultilineAssignmentLayout:
277
+ Enabled: false
278
+
189
279
  Layout/MultilineBlockLayout:
190
280
  Enabled: true
191
281
 
@@ -193,6 +283,12 @@ Layout/MultilineHashBraceLayout:
193
283
  Enabled: true
194
284
  EnforcedStyle: symmetrical
195
285
 
286
+ Layout/MultilineHashKeyLineBreaks:
287
+ Enabled: false
288
+
289
+ Layout/MultilineMethodArgumentLineBreaks:
290
+ Enabled: false
291
+
196
292
  Layout/MultilineMethodCallBraceLayout:
197
293
  Enabled: true
198
294
  EnforcedStyle: symmetrical
@@ -206,14 +302,28 @@ Layout/MultilineMethodDefinitionBraceLayout:
206
302
  Enabled: true
207
303
  EnforcedStyle: symmetrical
208
304
 
305
+ Layout/MultilineMethodParameterLineBreaks:
306
+ Enabled: false
307
+
209
308
  Layout/MultilineOperationIndentation:
210
309
  Enabled: true
211
310
  EnforcedStyle: indented
212
311
  IndentationWidth: ~
213
312
 
313
+ Layout/ParameterAlignment:
314
+ Enabled: true
315
+ EnforcedStyle: with_fixed_indentation
316
+ IndentationWidth: ~
317
+
318
+ Layout/RedundantLineBreak:
319
+ Enabled: false
320
+
214
321
  Layout/RescueEnsureAlignment:
215
322
  Enabled: true
216
323
 
324
+ Layout/SingleLineBlockChain:
325
+ Enabled: false
326
+
217
327
  Layout/SpaceAfterColon:
218
328
  Enabled: true
219
329
 
@@ -240,6 +350,9 @@ Layout/SpaceAroundEqualsInParameterDefault:
240
350
  Layout/SpaceAroundKeyword:
241
351
  Enabled: true
242
352
 
353
+ Layout/SpaceAroundMethodCallOperator:
354
+ Enabled: true
355
+
243
356
  Layout/SpaceAroundOperators:
244
357
  Enabled: true
245
358
  AllowForAlignment: true
@@ -249,6 +362,9 @@ Layout/SpaceBeforeBlockBraces:
249
362
  EnforcedStyle: space
250
363
  EnforcedStyleForEmptyBraces: space
251
364
 
365
+ Layout/SpaceBeforeBrackets:
366
+ Enabled: false
367
+
252
368
  Layout/SpaceBeforeComma:
253
369
  Enabled: true
254
370
 
@@ -304,76 +420,151 @@ Layout/SpaceInsideStringInterpolation:
304
420
  Enabled: true
305
421
  EnforcedStyle: no_space
306
422
 
307
- Layout/Tab:
308
- Enabled: true
309
- IndentationWidth: ~
310
-
311
- Layout/TrailingBlankLines:
423
+ Layout/TrailingEmptyLines:
312
424
  Enabled: true
313
425
  EnforcedStyle: final_newline
314
426
 
315
427
  Layout/TrailingWhitespace:
316
428
  Enabled: true
317
- AllowInHeredoc: false
429
+ AllowInHeredoc: true
318
430
 
319
- Lint/AmbiguousBlockAssociation:
431
+ Lint/AmbiguousAssignment:
320
432
  Enabled: true
321
433
 
434
+ Lint/AmbiguousBlockAssociation:
435
+ Enabled: false
436
+
322
437
  Lint/AmbiguousOperator:
323
438
  Enabled: true
324
439
 
440
+ Lint/AmbiguousOperatorPrecedence:
441
+ Enabled: false
442
+
443
+ Lint/AmbiguousRange:
444
+ Enabled: false
445
+
325
446
  Lint/AmbiguousRegexpLiteral:
326
447
  Enabled: true
327
448
 
449
+ Lint/ArrayLiteralInRegexp:
450
+ Enabled: true
451
+ AutoCorrect: false
452
+
328
453
  Lint/AssignmentInCondition:
329
454
  Enabled: true
330
455
  AllowSafeAssignment: true
456
+ # Intentionally disable autocorrect to force us to intentionally decide
457
+ # whether assignment is intended as opposed to comparison
458
+ AutoCorrect: false
331
459
 
332
460
  Lint/BigDecimalNew:
333
461
  Enabled: true
334
462
 
463
+ Lint/BinaryOperatorWithIdenticalOperands:
464
+ Enabled: true
465
+
335
466
  Lint/BooleanSymbol:
336
467
  Enabled: true
337
468
 
338
469
  Lint/CircularArgumentReference:
339
470
  Enabled: true
340
471
 
472
+ Lint/ConstantDefinitionInBlock:
473
+ Enabled: true
474
+
475
+ Lint/ConstantOverwrittenInRescue:
476
+ Enabled: true
477
+
478
+ Lint/ConstantReassignment:
479
+ Enabled: true
480
+
481
+ Lint/ConstantResolution:
482
+ Enabled: false
483
+
484
+ Lint/CopDirectiveSyntax:
485
+ Enabled: true
486
+
341
487
  Lint/Debugger:
342
488
  Enabled: true
343
489
 
344
490
  Lint/DeprecatedClassMethods:
345
491
  Enabled: true
346
492
 
493
+ Lint/DeprecatedConstants:
494
+ Enabled: true
495
+
496
+ Lint/DeprecatedOpenSSLConstant:
497
+ Enabled: true
498
+
499
+ Lint/DisjunctiveAssignmentInConstructor:
500
+ Enabled: false
501
+
502
+ Lint/DuplicateBranch:
503
+ Enabled: false
504
+
347
505
  Lint/DuplicateCaseCondition:
348
506
  Enabled: true
349
507
 
508
+ Lint/DuplicateElsifCondition:
509
+ Enabled: true
510
+
511
+ Lint/DuplicateHashKey:
512
+ Enabled: true
513
+
514
+ Lint/DuplicateMagicComment:
515
+ Enabled: true
516
+
517
+ Lint/DuplicateMatchPattern:
518
+ Enabled: false
519
+
350
520
  Lint/DuplicateMethods:
351
521
  Enabled: true
352
522
 
353
- Lint/DuplicatedKey:
523
+ Lint/DuplicateRegexpCharacterClassElement:
524
+ Enabled: true
525
+
526
+ Lint/DuplicateRequire:
527
+ Enabled: true
528
+
529
+ Lint/DuplicateRescueException:
354
530
  Enabled: true
355
531
 
532
+ Lint/DuplicateSetElement:
533
+ Enabled: false
534
+
356
535
  Lint/EachWithObjectArgument:
357
536
  Enabled: true
358
537
 
359
538
  Lint/ElseLayout:
360
539
  Enabled: true
361
540
 
541
+ Lint/EmptyBlock:
542
+ Enabled: false
543
+
544
+ Lint/EmptyClass:
545
+ Enabled: false
546
+
547
+ Lint/EmptyConditionalBody:
548
+ Enabled: false
549
+
362
550
  Lint/EmptyEnsure:
363
551
  Enabled: true
364
- AutoCorrect: false
365
552
 
366
553
  Lint/EmptyExpression:
367
554
  Enabled: true
368
555
 
556
+ Lint/EmptyFile:
557
+ Enabled: false
558
+
559
+ Lint/EmptyInPattern:
560
+ Enabled: false
561
+
369
562
  Lint/EmptyInterpolation:
370
563
  Enabled: true
371
564
 
372
565
  Lint/EmptyWhen:
373
566
  Enabled: true
374
-
375
- Lint/EndInMethod:
376
- Enabled: true
567
+ AllowComments: true
377
568
 
378
569
  Lint/EnsureReturn:
379
570
  Enabled: true
@@ -384,15 +575,33 @@ Lint/ErbNewArguments:
384
575
  Lint/FlipFlop:
385
576
  Enabled: true
386
577
 
578
+ Lint/FloatComparison:
579
+ Enabled: true
580
+
387
581
  Lint/FloatOutOfRange:
388
582
  Enabled: true
389
583
 
390
584
  Lint/FormatParameterMismatch:
391
585
  Enabled: true
392
586
 
587
+ Lint/HashCompareByIdentity:
588
+ Enabled: false
589
+
590
+ Lint/HashNewWithKeywordArgumentsAsDefault:
591
+ Enabled: true
592
+
593
+ Lint/HeredocMethodCallPosition:
594
+ Enabled: false
595
+
596
+ Lint/IdentityComparison:
597
+ Enabled: true
598
+
393
599
  Lint/ImplicitStringConcatenation:
394
600
  Enabled: true
395
601
 
602
+ Lint/IncompatibleIoSelectWithFiberScheduler:
603
+ Enabled: false
604
+
396
605
  Lint/IneffectiveAccessModifier:
397
606
  Enabled: true
398
607
 
@@ -403,9 +612,18 @@ Lint/InheritException:
403
612
  Lint/InterpolationCheck:
404
613
  Enabled: true
405
614
 
615
+ Lint/ItWithoutArgumentsInBlock:
616
+ Enabled: true
617
+
618
+ Lint/LambdaWithoutLiteralBlock:
619
+ Enabled: false
620
+
406
621
  Lint/LiteralAsCondition:
407
622
  Enabled: true
408
623
 
624
+ Lint/LiteralAssignmentInCondition:
625
+ Enabled: true
626
+
409
627
  Lint/LiteralInInterpolation:
410
628
  Enabled: true
411
629
 
@@ -416,7 +634,16 @@ Lint/MissingCopEnableDirective:
416
634
  Enabled: true
417
635
  MaximumRangeSize: .inf
418
636
 
419
- Lint/MultipleCompare:
637
+ Lint/MissingSuper:
638
+ Enabled: false
639
+
640
+ Lint/MixedCaseRange:
641
+ Enabled: true
642
+
643
+ Lint/MixedRegexpCaptureTypes:
644
+ Enabled: true
645
+
646
+ Lint/MultipleComparison:
420
647
  Enabled: true
421
648
 
422
649
  Lint/NestedMethodDefinition:
@@ -428,33 +655,99 @@ Lint/NestedPercentLiteral:
428
655
  Lint/NextWithoutAccumulator:
429
656
  Enabled: true
430
657
 
658
+ Lint/NoReturnInBeginEndBlocks:
659
+ Enabled: false
660
+
661
+ Lint/NonAtomicFileOperation:
662
+ Enabled: false
663
+
664
+ Lint/NonDeterministicRequireOrder:
665
+ Enabled: true
666
+
431
667
  Lint/NonLocalExitFromIterator:
432
668
  Enabled: true
433
669
 
670
+ Lint/NumberConversion:
671
+ Enabled: false
672
+
673
+ Lint/NumberedParameterAssignment:
674
+ Enabled: true
675
+
676
+ Lint/NumericOperationWithConstantResult:
677
+ Enabled: false
678
+
679
+ Lint/OrAssignmentToConstant:
680
+ Enabled: true
681
+
434
682
  Lint/OrderedMagicComments:
435
683
  Enabled: true
436
684
 
685
+ Lint/OutOfRangeRegexpRef:
686
+ Enabled: true
687
+
437
688
  Lint/ParenthesesAsGroupedExpression:
438
689
  Enabled: true
439
690
 
691
+ Lint/PercentStringArray:
692
+ Enabled: false
693
+
440
694
  Lint/PercentSymbolArray:
441
695
  Enabled: true
442
696
 
697
+ Lint/RaiseException:
698
+ Enabled: true
699
+
443
700
  Lint/RandOne:
444
701
  Enabled: true
445
702
 
703
+ Lint/RedundantCopDisableDirective:
704
+ Enabled: false
705
+
706
+ Lint/RedundantCopEnableDirective:
707
+ Enabled: false
708
+
709
+ Lint/RedundantDirGlobSort:
710
+ Enabled: false
711
+
712
+ Lint/RedundantRegexpQuantifiers:
713
+ Enabled: true
714
+
715
+ Lint/RedundantRequireStatement:
716
+ Enabled: true
717
+
718
+ Lint/RedundantSafeNavigation:
719
+ Enabled: false
720
+
721
+ Lint/RedundantSplatExpansion:
722
+ Enabled: true
723
+
724
+ Lint/RedundantStringCoercion:
725
+ Enabled: true
726
+
727
+ Lint/RedundantTypeConversion:
728
+ Enabled: true
729
+
446
730
  Lint/RedundantWithIndex:
447
731
  Enabled: true
448
732
 
449
733
  Lint/RedundantWithObject:
450
734
  Enabled: true
451
735
 
736
+ Lint/RefinementImportMethods:
737
+ Enabled: true
738
+
452
739
  Lint/RegexpAsCondition:
453
740
  Enabled: true
454
741
 
455
742
  Lint/RequireParentheses:
456
743
  Enabled: true
457
744
 
745
+ Lint/RequireRangeParentheses:
746
+ Enabled: true
747
+
748
+ Lint/RequireRelativeSelfPath:
749
+ Enabled: true
750
+
458
751
  Lint/RescueException:
459
752
  Enabled: true
460
753
 
@@ -466,7 +759,7 @@ Lint/ReturnInVoidContext:
466
759
 
467
760
  Lint/SafeNavigationChain:
468
761
  Enabled: true
469
- Whitelist:
762
+ AllowedMethods:
470
763
  - present?
471
764
  - blank?
472
765
  - presence
@@ -475,13 +768,25 @@ Lint/SafeNavigationChain:
475
768
 
476
769
  Lint/SafeNavigationConsistency:
477
770
  Enabled: true
478
- Whitelist:
771
+ AllowedMethods:
479
772
  - present?
480
773
  - blank?
481
774
  - presence
482
775
  - try
483
776
  - try!
484
777
 
778
+ Lint/SafeNavigationWithEmpty:
779
+ Enabled: true
780
+
781
+ Lint/ScriptPermission:
782
+ Enabled: false
783
+
784
+ Lint/SelfAssignment:
785
+ Enabled: true
786
+
787
+ Lint/SendWithMixinArgument:
788
+ Enabled: false
789
+
485
790
  Lint/ShadowedArgument:
486
791
  Enabled: true
487
792
  IgnoreImplicitReferences: false
@@ -489,214 +794,276 @@ Lint/ShadowedArgument:
489
794
  Lint/ShadowedException:
490
795
  Enabled: true
491
796
 
492
- Lint/StringConversionInInterpolation:
797
+ Lint/ShadowingOuterLocalVariable:
798
+ Enabled: false
799
+
800
+ Lint/SharedMutableDefault:
801
+ Enabled: true
802
+
803
+ Lint/StructNewOverride:
804
+ Enabled: false
805
+
806
+ Lint/SuppressedException:
807
+ Enabled: false
808
+
809
+ Lint/SuppressedExceptionInNumberConversion:
810
+ Enabled: true
811
+ AutoCorrect: false
812
+
813
+ Lint/SymbolConversion:
493
814
  Enabled: true
494
815
 
495
816
  Lint/Syntax:
496
817
  Enabled: true
497
818
 
498
- Lint/UnderscorePrefixedVariableName:
819
+ Lint/ToEnumArguments:
820
+ Enabled: false
821
+
822
+ Lint/ToJSON:
823
+ Enabled: false
824
+
825
+ Lint/TopLevelReturnWithArgument:
499
826
  Enabled: true
500
827
 
501
- Lint/UnifiedInteger:
828
+ Lint/TrailingCommaInAttributeDeclaration:
829
+ Enabled: true
830
+
831
+ Lint/TripleQuotes:
502
832
  Enabled: true
503
833
 
504
- Lint/UnneededRequireStatement:
834
+ Lint/UnderscorePrefixedVariableName:
505
835
  Enabled: true
506
836
 
507
- Lint/UnneededSplatExpansion:
837
+ Lint/UnescapedBracketInRegexp:
838
+ Enabled: false
839
+
840
+ Lint/UnexpectedBlockArity:
841
+ Enabled: false
842
+
843
+ Lint/UnifiedInteger:
508
844
  Enabled: true
509
845
 
846
+ Lint/UnmodifiedReduceAccumulator:
847
+ Enabled: false
848
+
510
849
  Lint/UnreachableCode:
511
850
  Enabled: true
512
851
 
852
+ Lint/UnreachableLoop:
853
+ Enabled: false
854
+
855
+ Lint/UnusedBlockArgument:
856
+ Enabled: false
857
+
858
+ Lint/UnusedMethodArgument:
859
+ Enabled: false
860
+
513
861
  Lint/UriEscapeUnescape:
514
862
  Enabled: true
515
863
 
516
864
  Lint/UriRegexp:
517
865
  Enabled: true
518
866
 
867
+ Lint/UselessAccessModifier:
868
+ Enabled: false
869
+
519
870
  Lint/UselessAssignment:
520
871
  Enabled: true
521
872
 
522
- Lint/UselessComparison:
873
+ Lint/UselessConstantScoping:
874
+ Enabled: false
875
+
876
+ Lint/UselessDefaultValueArgument:
877
+ Enabled: false
878
+
879
+ Lint/UselessDefined:
523
880
  Enabled: true
524
881
 
525
882
  Lint/UselessElseWithoutRescue:
526
- Enabled: true
883
+ Enabled: false
527
884
 
528
- Lint/UselessSetterCall:
529
- Enabled: true
885
+ Lint/UselessMethodDefinition:
886
+ Enabled: false
530
887
 
531
- Lint/Void:
532
- Enabled: true
533
- CheckForMethodsWithNoSideEffects: false
888
+ Lint/UselessNumericOperation:
889
+ Enabled: false
534
890
 
535
- Naming/AccessorMethodName:
891
+ Lint/UselessOr:
536
892
  Enabled: true
537
893
 
538
- Naming/AsciiIdentifiers:
894
+ Lint/UselessRescue:
539
895
  Enabled: true
540
896
 
541
- Naming/BinaryOperatorParameterName:
897
+ Lint/UselessRuby2Keywords:
542
898
  Enabled: true
543
899
 
544
- Naming/ClassAndModuleCamelCase:
900
+ Lint/UselessSetterCall:
545
901
  Enabled: true
546
902
 
547
- Naming/ConstantName:
903
+ Lint/UselessTimes:
548
904
  Enabled: true
549
905
 
550
- Naming/HeredocDelimiterCase:
906
+ Lint/Void:
551
907
  Enabled: true
552
- EnforcedStyle: uppercase
908
+ CheckForMethodsWithNoSideEffects: false
553
909
 
554
- Naming/MethodName:
555
- Enabled: true
556
- EnforcedStyle: snake_case
910
+ Metrics/AbcSize:
911
+ Enabled: false
557
912
 
558
- Naming/UncommunicativeBlockParamName:
559
- Enabled: true
560
- MinNameLength: 1
561
- AllowNamesEndingInNumbers: true
562
- AllowedNames: []
563
- ForbiddenNames: []
913
+ Metrics/BlockLength:
914
+ Enabled: false
564
915
 
565
- Naming/VariableName:
566
- Enabled: true
567
- EnforcedStyle: snake_case
916
+ Metrics/BlockNesting:
917
+ Enabled: false
568
918
 
569
- Performance/Caller:
570
- Enabled: true
919
+ Metrics/ClassLength:
920
+ Enabled: false
571
921
 
572
- Performance/CompareWithBlock:
573
- Enabled: true
922
+ Metrics/CollectionLiteralLength:
923
+ Enabled: false
574
924
 
575
- Performance/Count:
576
- Enabled: true
577
- SafeMode: true
925
+ Metrics/CyclomaticComplexity:
926
+ Enabled: false
578
927
 
579
- Performance/Detect:
580
- Enabled: true
581
- SafeMode: true
928
+ Metrics/MethodLength:
929
+ Enabled: false
582
930
 
583
- Performance/DoubleStartEndWith:
584
- Enabled: true
585
- IncludeActiveSupportAliases: false
931
+ Metrics/ModuleLength:
932
+ Enabled: false
586
933
 
587
- Performance/EndWith:
588
- Enabled: true
589
- SafeAutoCorrect: false
590
- AutoCorrect: false
934
+ Metrics/ParameterLists:
935
+ Enabled: false
591
936
 
592
- Performance/FixedSize:
593
- Enabled: true
937
+ Metrics/PerceivedComplexity:
938
+ Enabled: false
594
939
 
595
- Performance/FlatMap:
940
+ Migration/DepartmentName:
596
941
  Enabled: true
597
- EnabledForFlattenWithoutParams: false
598
942
 
599
- Performance/InefficientHashSearch:
600
- Enabled: true
601
- Safe: false
943
+ Naming/AccessorMethodName:
944
+ Enabled: false
602
945
 
603
- Performance/RangeInclude:
604
- Enabled: true
605
- Safe: false
946
+ Naming/AsciiIdentifiers:
947
+ Enabled: false
606
948
 
607
- Performance/RedundantMatch:
949
+ Naming/BinaryOperatorParameterName:
608
950
  Enabled: true
609
951
 
610
- Performance/RedundantMerge:
611
- Enabled: true
612
- MaxKeyValuePairs: 2
952
+ Naming/BlockForwarding:
953
+ Enabled: false
613
954
 
614
- Performance/RegexpMatch:
955
+ Naming/BlockParameterName:
615
956
  Enabled: true
957
+ MinNameLength: 1
958
+ AllowNamesEndingInNumbers: true
959
+ AllowedNames: []
960
+ ForbiddenNames: []
616
961
 
617
- Performance/ReverseEach:
962
+ Naming/ClassAndModuleCamelCase:
618
963
  Enabled: true
619
964
 
620
- Performance/Size:
965
+ Naming/ConstantName:
621
966
  Enabled: true
622
967
 
623
- Performance/StartWith:
624
- Enabled: true
625
- SafeAutoCorrect: false
626
- AutoCorrect: false
968
+ Naming/FileName:
969
+ Enabled: false
627
970
 
628
- Performance/StringReplacement:
971
+ Naming/HeredocDelimiterCase:
629
972
  Enabled: true
973
+ EnforcedStyle: uppercase
974
+
975
+ Naming/HeredocDelimiterNaming:
976
+ Enabled: false
977
+
978
+ Naming/InclusiveLanguage:
979
+ Enabled: false
980
+
981
+ Naming/MemoizedInstanceVariableName:
982
+ Enabled: false
983
+
984
+ Naming/MethodName:
985
+ Enabled: false
986
+
987
+ Naming/MethodParameterName:
988
+ Enabled: false
989
+
990
+ Naming/PredicateMethod:
991
+ Enabled: false
630
992
 
631
- Performance/UnfreezeString:
993
+ Naming/PredicatePrefix:
994
+ Enabled: false
995
+
996
+ Naming/RescuedExceptionsVariableName:
997
+ Enabled: false
998
+
999
+ Naming/VariableName:
632
1000
  Enabled: true
1001
+ EnforcedStyle: snake_case
633
1002
 
634
- Performance/UriDefaultParser:
1003
+ Naming/VariableNumber:
1004
+ Enabled: false
1005
+
1006
+ Security/CompoundHash:
635
1007
  Enabled: true
636
1008
 
637
1009
  Security/Eval:
638
1010
  Enabled: true
639
1011
 
1012
+ Security/IoMethods:
1013
+ Enabled: false
1014
+
640
1015
  Security/JSONLoad:
641
1016
  Enabled: true
642
- AutoCorrect: false
643
- SafeAutoCorrect: false
1017
+
1018
+ Security/MarshalLoad:
1019
+ Enabled: false
644
1020
 
645
1021
  Security/Open:
646
1022
  Enabled: true
647
- Safe: false
648
1023
 
649
1024
  Security/YAMLLoad:
650
1025
  Enabled: true
651
- SafeAutoCorrect: false
652
-
653
-
654
- Standard/SemanticBlocks:
655
- ProceduralMethods:
656
- - benchmark
657
- - bm
658
- - bmbm
659
- - tap
660
- # Enumerable
661
- - cycle
662
- - each
663
- - each_cons
664
- - each_entry
665
- - each_slice
666
- - each_with_index
667
- # Rails
668
- - transaction
669
- FunctionalMethods:
670
- - let
671
- - let!
672
- - subject
673
- - watch
674
- - Given
675
- - Given!
676
- - Invariant
677
- - Then
678
- - And
679
- IgnoredMethods:
680
- - lambda
681
- - proc
682
- - describe
683
- - it
684
- - When
1026
+
1027
+ Style/AccessModifierDeclarations:
1028
+ Enabled: false
1029
+
1030
+ Style/AccessorGrouping:
1031
+ Enabled: false
685
1032
 
686
1033
  Style/Alias:
687
1034
  Enabled: true
688
- EnforcedStyle: prefer_alias
1035
+ EnforcedStyle: prefer_alias_method
1036
+
1037
+ Style/AmbiguousEndlessMethodDefinition:
1038
+ Enabled: false
689
1039
 
690
1040
  Style/AndOr:
691
1041
  Enabled: true
692
- EnforcedStyle: always
1042
+
1043
+ Style/ArgumentsForwarding:
1044
+ Enabled: false
1045
+
1046
+ Style/ArrayCoercion:
1047
+ Enabled: false
1048
+
1049
+ Style/ArrayFirstLast:
1050
+ Enabled: false
1051
+
1052
+ Style/ArrayIntersect:
1053
+ Enabled: false
693
1054
 
694
1055
  Style/ArrayJoin:
695
1056
  Enabled: true
696
1057
 
1058
+ Style/AsciiComments:
1059
+ Enabled: false
1060
+
697
1061
  Style/Attr:
698
1062
  Enabled: true
699
1063
 
1064
+ Style/AutoResourceCleanup:
1065
+ Enabled: false
1066
+
700
1067
  Style/BarePercentLiterals:
701
1068
  Enabled: true
702
1069
  EnforcedStyle: bare_percent
@@ -704,45 +1071,135 @@ Style/BarePercentLiterals:
704
1071
  Style/BeginBlock:
705
1072
  Enabled: true
706
1073
 
1074
+ Style/BisectedAttrAccessor:
1075
+ Enabled: false
1076
+
1077
+ Style/BitwisePredicate:
1078
+ Enabled: false
1079
+
707
1080
  Style/BlockComments:
708
1081
  Enabled: true
709
1082
 
1083
+ Style/BlockDelimiters:
1084
+ Enabled: false
1085
+
1086
+ Style/CaseEquality:
1087
+ Enabled: false
1088
+
1089
+ Style/CaseLikeIf:
1090
+ Enabled: false
1091
+
710
1092
  Style/CharacterLiteral:
711
1093
  Enabled: true
712
1094
 
1095
+ Style/ClassAndModuleChildren:
1096
+ Enabled: false
1097
+
713
1098
  Style/ClassCheck:
714
1099
  Enabled: true
715
1100
  EnforcedStyle: is_a?
716
1101
 
1102
+ Style/ClassEqualityComparison:
1103
+ Enabled: true
1104
+
717
1105
  Style/ClassMethods:
718
1106
  Enabled: true
719
1107
 
1108
+ Style/ClassMethodsDefinitions:
1109
+ Enabled: false
1110
+
1111
+ Style/ClassVars:
1112
+ Enabled: false
1113
+
1114
+ Style/CollectionCompact:
1115
+ Enabled: false
1116
+
1117
+ Style/CollectionMethods:
1118
+ Enabled: false
1119
+
1120
+ Style/CollectionQuerying:
1121
+ Enabled: false
1122
+
720
1123
  Style/ColonMethodCall:
721
1124
  Enabled: true
722
1125
 
723
1126
  Style/ColonMethodDefinition:
724
1127
  Enabled: true
725
1128
 
1129
+ Style/CombinableDefined:
1130
+ Enabled: false
1131
+
1132
+ Style/CombinableLoops:
1133
+ Enabled: false
1134
+
726
1135
  Style/CommandLiteral:
727
1136
  Enabled: true
728
1137
  EnforcedStyle: mixed
729
1138
  AllowInnerBackticks: false
730
1139
 
1140
+ Style/CommentAnnotation:
1141
+ Enabled: false
1142
+
731
1143
  Style/CommentedKeyword:
1144
+ Enabled: false
1145
+
1146
+ Style/ComparableBetween:
1147
+ Enabled: true
1148
+
1149
+ Style/ComparableClamp:
732
1150
  Enabled: true
733
1151
 
1152
+ Style/ConcatArrayLiterals:
1153
+ Enabled: false
1154
+
734
1155
  Style/ConditionalAssignment:
735
1156
  Enabled: true
736
1157
  EnforcedStyle: assign_to_condition
737
1158
  SingleLineConditionsOnly: true
738
1159
  IncludeTernaryExpressions: true
739
1160
 
1161
+ Style/ConstantVisibility:
1162
+ Enabled: false
1163
+
1164
+ Style/Copyright:
1165
+ Enabled: false
1166
+
1167
+ Style/DataInheritance:
1168
+ Enabled: false
1169
+
1170
+ Style/DateTime:
1171
+ Enabled: false
1172
+
740
1173
  Style/DefWithParentheses:
741
1174
  Enabled: true
742
1175
 
1176
+ Style/DigChain:
1177
+ Enabled: true
1178
+
743
1179
  Style/Dir:
744
1180
  Enabled: true
745
1181
 
1182
+ Style/DirEmpty:
1183
+ Enabled: true
1184
+
1185
+ Style/DisableCopsWithinSourceCodeDirective:
1186
+ Enabled: false
1187
+
1188
+ Style/DocumentDynamicEvalDefinition:
1189
+ Enabled: false
1190
+
1191
+ Style/Documentation:
1192
+ Enabled: false
1193
+
1194
+ Style/DocumentationMethod:
1195
+ Enabled: false
1196
+
1197
+ Style/DoubleCopDisableDirective:
1198
+ Enabled: false
1199
+
1200
+ Style/DoubleNegation:
1201
+ Enabled: false
1202
+
746
1203
  Style/EachForSimpleLoop:
747
1204
  Enabled: true
748
1205
 
@@ -757,8 +1214,12 @@ Style/EmptyCaseCondition:
757
1214
 
758
1215
  Style/EmptyElse:
759
1216
  Enabled: true
1217
+ AllowComments: true
760
1218
  EnforcedStyle: both
761
1219
 
1220
+ Style/EmptyHeredoc:
1221
+ Enabled: false
1222
+
762
1223
  Style/EmptyLambdaParameter:
763
1224
  Enabled: true
764
1225
 
@@ -769,26 +1230,114 @@ Style/EmptyMethod:
769
1230
  Enabled: true
770
1231
  EnforcedStyle: expanded
771
1232
 
1233
+ Style/EmptyStringInsideInterpolation:
1234
+ Enabled: true
1235
+ EnforcedStyle: trailing_conditional
1236
+
772
1237
  Style/Encoding:
773
1238
  Enabled: true
774
1239
 
775
1240
  Style/EndBlock:
776
1241
  Enabled: true
777
1242
 
1243
+ Style/EndlessMethod:
1244
+ Enabled: false
1245
+
1246
+ Style/EnvHome:
1247
+ Enabled: false
1248
+
778
1249
  Style/EvalWithLocation:
779
1250
  Enabled: true
780
1251
 
1252
+ Style/EvenOdd:
1253
+ Enabled: false
1254
+
1255
+ Style/ExactRegexpMatch:
1256
+ Enabled: true
1257
+ Style/ExpandPathArguments:
1258
+ Enabled: false
1259
+
1260
+ Style/ExplicitBlockArgument:
1261
+ Enabled: false
1262
+
1263
+ Style/ExponentialNotation:
1264
+ Enabled: false
1265
+
1266
+ Style/FetchEnvVar:
1267
+ Enabled: false
1268
+
1269
+ Style/FileEmpty:
1270
+ Enabled: false
1271
+
1272
+ Style/FileNull:
1273
+ Enabled: true
1274
+
1275
+ Style/FileRead:
1276
+ Enabled: true
1277
+
1278
+ Style/FileTouch:
1279
+ Enabled: false
1280
+
1281
+ Style/FileWrite:
1282
+ Enabled: true
1283
+
1284
+ Style/FloatDivision:
1285
+ Enabled: false
1286
+
781
1287
  Style/For:
782
1288
  Enabled: true
783
1289
  EnforcedStyle: each
784
1290
 
1291
+ Style/FormatString:
1292
+ Enabled: false
1293
+
1294
+ Style/FormatStringToken:
1295
+ Enabled: false
1296
+
1297
+ Style/FrozenStringLiteralComment:
1298
+ Enabled: false
1299
+
1300
+ Style/GlobalStdStream:
1301
+ Enabled: true
1302
+
785
1303
  Style/GlobalVars:
786
1304
  Enabled: true
787
1305
  AllowedVariables: []
788
1306
 
1307
+ Style/GuardClause:
1308
+ Enabled: false
1309
+
1310
+ Style/HashAsLastArrayItem:
1311
+ Enabled: false
1312
+
1313
+ Style/HashConversion:
1314
+ Enabled: true
1315
+
1316
+ Style/HashEachMethods:
1317
+ Enabled: false
1318
+
1319
+ Style/HashExcept:
1320
+ Enabled: true
1321
+
1322
+ Style/HashFetchChain:
1323
+ Enabled: false
1324
+
1325
+ Style/HashLikeCase:
1326
+ Enabled: false
1327
+
1328
+ Style/HashSlice:
1329
+ Enabled: true
1330
+
789
1331
  Style/HashSyntax:
790
1332
  Enabled: true
791
1333
  EnforcedStyle: ruby19_no_mixed_keys
1334
+ EnforcedShorthandSyntax: either
1335
+
1336
+ Style/HashTransformKeys:
1337
+ Enabled: false
1338
+
1339
+ Style/HashTransformValues:
1340
+ Enabled: false
792
1341
 
793
1342
  Style/IdenticalConditionalBranches:
794
1343
  Enabled: true
@@ -796,15 +1345,54 @@ Style/IdenticalConditionalBranches:
796
1345
  Style/IfInsideElse:
797
1346
  Enabled: true
798
1347
 
1348
+ Style/IfUnlessModifier:
1349
+ Enabled: false
1350
+
799
1351
  Style/IfUnlessModifierOfIfUnless:
800
1352
  Enabled: true
801
1353
 
1354
+ Style/IfWithBooleanLiteralBranches:
1355
+ Enabled: true
1356
+
802
1357
  Style/IfWithSemicolon:
803
1358
  Enabled: true
804
1359
 
1360
+ Style/ImplicitRuntimeError:
1361
+ Enabled: false
1362
+
1363
+ Style/InPatternThen:
1364
+ Enabled: false
1365
+
805
1366
  Style/InfiniteLoop:
806
1367
  Enabled: true
807
- SafeAutoCorrect: true
1368
+
1369
+ Style/InlineComment:
1370
+ Enabled: false
1371
+
1372
+ Style/InverseMethods:
1373
+ Enabled: false
1374
+
1375
+ Style/InvertibleUnlessCondition:
1376
+ Enabled: false
1377
+
1378
+ Style/IpAddresses:
1379
+ Enabled: false
1380
+
1381
+ Style/ItAssignment:
1382
+ Enabled: true
1383
+
1384
+ Style/ItBlockParameter:
1385
+ Enabled: true
1386
+ EnforcedStyle: only_numbered_parameters
1387
+
1388
+ Style/KeywordArgumentsMerging:
1389
+ Enabled: false
1390
+
1391
+ Style/KeywordParametersOrder:
1392
+ Enabled: true
1393
+
1394
+ Style/Lambda:
1395
+ Enabled: false
808
1396
 
809
1397
  Style/LambdaCall:
810
1398
  Enabled: true
@@ -812,14 +1400,43 @@ Style/LambdaCall:
812
1400
 
813
1401
  Style/LineEndConcatenation:
814
1402
  Enabled: true
815
- SafeAutoCorrect: false
816
1403
 
817
- Style/MethodCallWithoutArgsParentheses:
1404
+ Style/MagicCommentFormat:
1405
+ Enabled: false
1406
+
1407
+ Style/MapCompactWithConditionalBlock:
818
1408
  Enabled: true
819
- IgnoredMethods: []
820
1409
 
821
- Style/MethodMissingSuper:
1410
+ Style/MapIntoArray:
1411
+ Enabled: false
1412
+
1413
+ Style/MapToHash:
1414
+ Enabled: false
1415
+
1416
+ Style/MapToSet:
1417
+ Enabled: false
1418
+
1419
+ Style/MethodCallWithArgsParentheses:
1420
+ Enabled: false
1421
+
1422
+ Style/MethodCallWithoutArgsParentheses:
822
1423
  Enabled: true
1424
+ AllowedMethods: []
1425
+
1426
+ Style/MethodCalledOnDoEndBlock:
1427
+ Enabled: false
1428
+
1429
+ Style/MethodDefParentheses:
1430
+ Enabled: false
1431
+
1432
+ Style/MinMax:
1433
+ Enabled: false
1434
+
1435
+ Style/MinMaxComparison:
1436
+ Enabled: false
1437
+
1438
+ Style/MissingElse:
1439
+ Enabled: false
823
1440
 
824
1441
  Style/MissingRespondToMissing:
825
1442
  Enabled: true
@@ -831,29 +1448,61 @@ Style/MixinGrouping:
831
1448
  Style/MixinUsage:
832
1449
  Enabled: true
833
1450
 
1451
+ Style/ModuleFunction:
1452
+ Enabled: false
1453
+
1454
+ Style/MultilineBlockChain:
1455
+ Enabled: false
1456
+
834
1457
  Style/MultilineIfModifier:
835
1458
  Enabled: true
836
1459
 
837
1460
  Style/MultilineIfThen:
838
1461
  Enabled: true
839
1462
 
1463
+ Style/MultilineInPatternThen:
1464
+ Enabled: false
1465
+
840
1466
  Style/MultilineMemoization:
841
1467
  Enabled: true
842
1468
  EnforcedStyle: keyword
843
1469
 
844
- Style/NegatedIf:
1470
+ Style/MultilineMethodSignature:
1471
+ Enabled: false
1472
+
1473
+ Style/MultilineTernaryOperator:
1474
+ Enabled: false
1475
+
1476
+ Style/MultilineWhenThen:
845
1477
  Enabled: true
846
- EnforcedStyle: both
1478
+
1479
+ Style/MultipleComparison:
1480
+ Enabled: false
1481
+
1482
+ Style/MutableConstant:
1483
+ Enabled: false
1484
+
1485
+ Style/NegatedIf:
1486
+ Enabled: false
1487
+
1488
+ Style/NegatedIfElseCondition:
1489
+ Enabled: false
1490
+
1491
+ Style/NegatedUnless:
1492
+ Enabled: false
847
1493
 
848
1494
  Style/NegatedWhile:
849
1495
  Enabled: true
850
1496
 
1497
+ Style/NestedFileDirname:
1498
+ Enabled: true
1499
+
851
1500
  Style/NestedModifier:
852
1501
  Enabled: true
853
1502
 
854
1503
  Style/NestedParenthesizedCalls:
855
1504
  Enabled: true
856
- Whitelist:
1505
+ AllowedMethods:
857
1506
  - be
858
1507
  - be_a
859
1508
  - be_an
@@ -875,10 +1524,16 @@ Style/NestedParenthesizedCalls:
875
1524
  Style/NestedTernaryOperator:
876
1525
  Enabled: true
877
1526
 
1527
+ Style/Next:
1528
+ Enabled: false
1529
+
878
1530
  Style/NilComparison:
879
1531
  Enabled: true
880
1532
  EnforcedStyle: predicate
881
1533
 
1534
+ Style/NilLambda:
1535
+ Enabled: true
1536
+
882
1537
  Style/NonNilCheck:
883
1538
  Enabled: true
884
1539
  IncludeSemanticChanges: false
@@ -886,19 +1541,49 @@ Style/NonNilCheck:
886
1541
  Style/Not:
887
1542
  Enabled: true
888
1543
 
1544
+ Style/NumberedParameters:
1545
+ Enabled: false
1546
+
1547
+ Style/NumberedParametersLimit:
1548
+ Enabled: false
1549
+
889
1550
  Style/NumericLiteralPrefix:
890
1551
  Enabled: true
891
1552
  EnforcedOctalStyle: zero_with_o
892
1553
 
1554
+ Style/NumericLiterals:
1555
+ Enabled: false
1556
+
1557
+ Style/NumericPredicate:
1558
+ Enabled: false
1559
+
1560
+ Style/ObjectThen:
1561
+ Enabled: false
1562
+
893
1563
  Style/OneLineConditional:
894
1564
  Enabled: true
895
1565
 
1566
+ Style/OpenStructUse:
1567
+ Enabled: false
1568
+
1569
+ Style/OperatorMethodCall:
1570
+ Enabled: false
1571
+
1572
+ Style/OptionHash:
1573
+ Enabled: false
1574
+
896
1575
  Style/OptionalArguments:
897
1576
  Enabled: true
898
1577
 
1578
+ Style/OptionalBooleanParameter:
1579
+ Enabled: false
1580
+
899
1581
  Style/OrAssignment:
900
1582
  Enabled: true
901
1583
 
1584
+ Style/ParallelAssignment:
1585
+ Enabled: false
1586
+
902
1587
  Style/ParenthesesAroundCondition:
903
1588
  Enabled: true
904
1589
  AllowSafeAssignment: true
@@ -915,34 +1600,114 @@ Style/PercentLiteralDelimiters:
915
1600
  '%W': '[]'
916
1601
 
917
1602
  Style/PercentQLiterals:
918
- Enabled: true
919
- EnforcedStyle: lower_case_q
1603
+ Enabled: false
1604
+
1605
+ Style/PerlBackrefs:
1606
+ Enabled: false
920
1607
 
921
1608
  Style/PreferredHashMethods:
922
- Enabled: true
923
- EnforcedStyle: short
1609
+ Enabled: false
924
1610
 
925
1611
  Style/Proc:
926
1612
  Enabled: true
927
1613
 
1614
+ Style/QuotedSymbols:
1615
+ Enabled: true
1616
+ EnforcedStyle: same_as_string_literals
1617
+
1618
+ Style/RaiseArgs:
1619
+ Enabled: false
1620
+
928
1621
  Style/RandomWithOffset:
929
1622
  Enabled: true
930
1623
 
1624
+ Style/RedundantArgument:
1625
+ Enabled: false
1626
+
1627
+ Style/RedundantArrayConstructor:
1628
+ Enabled: true
1629
+
1630
+ Style/RedundantArrayFlatten:
1631
+ Enabled: true
1632
+
1633
+ Style/RedundantAssignment:
1634
+ Enabled: true
1635
+
931
1636
  Style/RedundantBegin:
932
1637
  Enabled: true
933
1638
 
1639
+ Style/RedundantCapitalW:
1640
+ Enabled: false
1641
+
1642
+ Style/RedundantCondition:
1643
+ Enabled: true
1644
+
934
1645
  Style/RedundantConditional:
935
1646
  Enabled: true
936
1647
 
1648
+ Style/RedundantConstantBase:
1649
+ Enabled: false
1650
+
1651
+ Style/RedundantCurrentDirectoryInPath:
1652
+ Enabled: true
1653
+
1654
+ Style/RedundantDoubleSplatHashBraces:
1655
+ Enabled: true
1656
+
1657
+ Style/RedundantEach:
1658
+ Enabled: false
1659
+
937
1660
  Style/RedundantException:
938
1661
  Enabled: true
939
1662
 
1663
+ Style/RedundantFetchBlock:
1664
+ Enabled: false
1665
+
1666
+ Style/RedundantFileExtensionInRequire:
1667
+ Enabled: true
1668
+
1669
+ Style/RedundantFilterChain:
1670
+ Enabled: false
1671
+
1672
+ Style/RedundantFormat:
1673
+ Enabled: true
1674
+
940
1675
  Style/RedundantFreeze:
941
1676
  Enabled: true
942
1677
 
1678
+ Style/RedundantHeredocDelimiterQuotes:
1679
+ Enabled: true
1680
+
1681
+ Style/RedundantInitialize:
1682
+ Enabled: false
1683
+
1684
+ Style/RedundantInterpolation:
1685
+ Enabled: true
1686
+
1687
+ Style/RedundantInterpolationUnfreeze:
1688
+ Enabled: true
1689
+
1690
+ Style/RedundantLineContinuation:
1691
+ Enabled: true
1692
+
943
1693
  Style/RedundantParentheses:
944
1694
  Enabled: true
945
1695
 
1696
+ Style/RedundantPercentQ:
1697
+ Enabled: true
1698
+
1699
+ Style/RedundantRegexpArgument:
1700
+ Enabled: true
1701
+
1702
+ Style/RedundantRegexpCharacterClass:
1703
+ Enabled: true
1704
+
1705
+ Style/RedundantRegexpConstructor:
1706
+ Enabled: true
1707
+
1708
+ Style/RedundantRegexpEscape:
1709
+ Enabled: true
1710
+
946
1711
  Style/RedundantReturn:
947
1712
  Enabled: true
948
1713
  AllowMultipleReturnValues: false
@@ -950,9 +1715,27 @@ Style/RedundantReturn:
950
1715
  Style/RedundantSelf:
951
1716
  Enabled: true
952
1717
 
1718
+ Style/RedundantSelfAssignment:
1719
+ Enabled: false
1720
+
1721
+ Style/RedundantSelfAssignmentBranch:
1722
+ Enabled: false
1723
+
1724
+ Style/RedundantSort:
1725
+ Enabled: true
1726
+
953
1727
  Style/RedundantSortBy:
954
1728
  Enabled: true
955
1729
 
1730
+ Style/RedundantStringEscape:
1731
+ Enabled: true
1732
+
1733
+ Style/RegexpLiteral:
1734
+ Enabled: false
1735
+
1736
+ Style/RequireOrder:
1737
+ Enabled: false
1738
+
956
1739
  Style/RescueModifier:
957
1740
  Enabled: true
958
1741
 
@@ -960,19 +1743,31 @@ Style/RescueStandardError:
960
1743
  Enabled: true
961
1744
  EnforcedStyle: implicit
962
1745
 
1746
+ Style/ReturnNil:
1747
+ Enabled: false
1748
+
1749
+ Style/ReturnNilInPredicateMethodDefinition:
1750
+ Enabled: false
1751
+
963
1752
  Style/SafeNavigation:
964
1753
  Enabled: true
965
1754
  ConvertCodeThatCanStartToReturnNil: false
966
- Whitelist:
1755
+ AllowedMethods:
967
1756
  - present?
968
1757
  - blank?
969
1758
  - presence
970
1759
  - try
971
1760
  - try!
972
1761
 
1762
+ Style/SafeNavigationChainLength:
1763
+ Enabled: false
1764
+
973
1765
  Style/Sample:
974
1766
  Enabled: true
975
1767
 
1768
+ Style/SelectByRegexp:
1769
+ Enabled: false
1770
+
976
1771
  Style/SelfAssignment:
977
1772
  Enabled: true
978
1773
 
@@ -980,17 +1775,56 @@ Style/Semicolon:
980
1775
  Enabled: true
981
1776
  AllowAsExpressionSeparator: false
982
1777
 
1778
+ Style/Send:
1779
+ Enabled: false
1780
+
1781
+ Style/SendWithLiteralMethodName:
1782
+ Enabled: false
1783
+
1784
+ Style/SignalException:
1785
+ Enabled: false
1786
+
1787
+ Style/SingleArgumentDig:
1788
+ Enabled: false
1789
+
1790
+ Style/SingleLineBlockParams:
1791
+ Enabled: false
1792
+
1793
+ Style/SingleLineDoEndBlock:
1794
+ Enabled: false
1795
+
983
1796
  Style/SingleLineMethods:
984
1797
  Enabled: true
985
1798
  AllowIfMethodIsEmpty: false
986
1799
 
1800
+ Style/SlicingWithRange:
1801
+ Enabled: true
1802
+
1803
+ Style/SoleNestedConditional:
1804
+ Enabled: false
1805
+
1806
+ Style/SpecialGlobalVars:
1807
+ Enabled: false
1808
+
987
1809
  Style/StabbyLambdaParentheses:
988
1810
  Enabled: true
989
1811
  EnforcedStyle: require_parentheses
990
1812
 
1813
+ Style/StaticClass:
1814
+ Enabled: false
1815
+
991
1816
  Style/StderrPuts:
992
1817
  Enabled: true
993
1818
 
1819
+ Style/StringChars:
1820
+ Enabled: true
1821
+
1822
+ Style/StringConcatenation:
1823
+ Enabled: false
1824
+
1825
+ Style/StringHashKeys:
1826
+ Enabled: false
1827
+
994
1828
  Style/StringLiterals:
995
1829
  Enabled: true
996
1830
  EnforcedStyle: double_quotes
@@ -1000,17 +1834,41 @@ Style/StringLiteralsInInterpolation:
1000
1834
  Enabled: true
1001
1835
  EnforcedStyle: double_quotes
1002
1836
 
1837
+ Style/StringMethods:
1838
+ Enabled: false
1839
+
1003
1840
  Style/Strip:
1004
1841
  Enabled: true
1005
1842
 
1843
+ Style/StructInheritance:
1844
+ Enabled: false
1845
+
1846
+ Style/SuperArguments:
1847
+ Enabled: true
1848
+
1849
+ Style/SuperWithArgsParentheses:
1850
+ Enabled: true
1851
+
1852
+ Style/SwapValues:
1853
+ Enabled: false
1854
+
1855
+ Style/SymbolArray:
1856
+ Enabled: false
1857
+
1006
1858
  Style/SymbolLiteral:
1007
1859
  Enabled: true
1008
1860
 
1861
+ Style/SymbolProc:
1862
+ Enabled: false
1863
+
1009
1864
  Style/TernaryParentheses:
1010
1865
  Enabled: true
1011
- EnforcedStyle: require_no_parentheses
1866
+ EnforcedStyle: require_parentheses_when_complex
1012
1867
  AllowSafeAssignment: true
1013
1868
 
1869
+ Style/TopLevelMethodDefinition:
1870
+ Enabled: false
1871
+
1014
1872
  Style/TrailingBodyOnClass:
1015
1873
  Enabled: true
1016
1874
 
@@ -1020,24 +1878,34 @@ Style/TrailingBodyOnMethodDefinition:
1020
1878
  Style/TrailingBodyOnModule:
1021
1879
  Enabled: true
1022
1880
 
1881
+ Style/TrailingCommaInArguments:
1882
+ Enabled: true
1883
+ EnforcedStyleForMultiline: no_comma
1884
+
1023
1885
  Style/TrailingCommaInArrayLiteral:
1024
1886
  Enabled: true
1025
- EnforcedStyleForMultiline: consistent_comma
1887
+ EnforcedStyleForMultiline: no_comma
1888
+
1889
+ Style/TrailingCommaInBlockArgs:
1890
+ Enabled: true
1026
1891
 
1027
1892
  Style/TrailingCommaInHashLiteral:
1028
1893
  Enabled: true
1029
- EnforcedStyleForMultiline: consistent_comma
1894
+ EnforcedStyleForMultiline: no_comma
1030
1895
 
1031
1896
  Style/TrailingMethodEndStatement:
1032
1897
  Enabled: true
1033
1898
 
1899
+ Style/TrailingUnderscoreVariable:
1900
+ Enabled: false
1901
+
1034
1902
  Style/TrivialAccessors:
1035
1903
  Enabled: true
1036
1904
  ExactNameMatch: true
1037
1905
  AllowPredicates: true
1038
1906
  AllowDSLWriters: false
1039
- IgnoreClassMethods: false
1040
- Whitelist:
1907
+ IgnoreClassMethods: true
1908
+ AllowedMethods:
1041
1909
  - to_ary
1042
1910
  - to_a
1043
1911
  - to_c
@@ -1059,20 +1927,9 @@ Style/TrivialAccessors:
1059
1927
  Style/UnlessElse:
1060
1928
  Enabled: true
1061
1929
 
1062
- Style/UnneededCapitalW:
1063
- Enabled: true
1064
-
1065
- Style/UnneededCondition:
1066
- Enabled: true
1067
-
1068
- Style/UnneededInterpolation:
1069
- Enabled: true
1070
-
1071
- Style/UnneededPercentQ:
1072
- Enabled: true
1073
-
1074
- Style/UnneededSort:
1930
+ Style/UnlessLogicalOperators:
1075
1931
  Enabled: true
1932
+ EnforcedStyle: forbid_mixed_logical_operators
1076
1933
 
1077
1934
  Style/UnpackFirst:
1078
1935
  Enabled: true
@@ -1086,6 +1943,21 @@ Style/WhenThen:
1086
1943
  Style/WhileUntilDo:
1087
1944
  Enabled: true
1088
1945
 
1946
+ Style/WhileUntilModifier:
1947
+ Enabled: false
1948
+
1949
+ Style/WordArray:
1950
+ Enabled: false
1951
+
1952
+ Style/YAMLFileRead:
1953
+ Enabled: true
1954
+
1089
1955
  Style/YodaCondition:
1090
1956
  Enabled: true
1091
1957
  EnforcedStyle: forbid_for_all_comparison_operators
1958
+
1959
+ Style/YodaExpression:
1960
+ Enabled: false
1961
+
1962
+ Style/ZeroLengthPredicate:
1963
+ Enabled: false