deprecation_toolkit 1.0.0

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.
@@ -0,0 +1,1180 @@
1
+ # Recommended rubocop version: ~> 0.56.0
2
+
3
+ AllCops:
4
+ Exclude:
5
+ - 'db/schema.rb'
6
+ DisabledByDefault: true
7
+
8
+ Layout/AccessModifierIndentation:
9
+ EnforcedStyle: indent
10
+ SupportedStyles:
11
+ - outdent
12
+ - indent
13
+ IndentationWidth:
14
+
15
+ Style/Alias:
16
+ EnforcedStyle: prefer_alias_method
17
+ SupportedStyles:
18
+ - prefer_alias
19
+ - prefer_alias_method
20
+
21
+ Layout/AlignHash:
22
+ EnforcedHashRocketStyle: key
23
+ EnforcedColonStyle: key
24
+ EnforcedLastArgumentHashStyle: ignore_implicit
25
+ SupportedLastArgumentHashStyles:
26
+ - always_inspect
27
+ - always_ignore
28
+ - ignore_implicit
29
+ - ignore_explicit
30
+
31
+ Layout/AlignParameters:
32
+ EnforcedStyle: with_fixed_indentation
33
+ SupportedStyles:
34
+ - with_first_parameter
35
+ - with_fixed_indentation
36
+ IndentationWidth:
37
+
38
+ Style/AndOr:
39
+ EnforcedStyle: always
40
+ SupportedStyles:
41
+ - always
42
+ - conditionals
43
+
44
+ Style/BarePercentLiterals:
45
+ EnforcedStyle: bare_percent
46
+ SupportedStyles:
47
+ - percent_q
48
+ - bare_percent
49
+
50
+ Style/BlockDelimiters:
51
+ EnforcedStyle: line_count_based
52
+ SupportedStyles:
53
+ - line_count_based
54
+ - semantic
55
+ - braces_for_chaining
56
+ ProceduralMethods:
57
+ - benchmark
58
+ - bm
59
+ - bmbm
60
+ - create
61
+ - each_with_object
62
+ - measure
63
+ - new
64
+ - realtime
65
+ - tap
66
+ - with_object
67
+ FunctionalMethods:
68
+ - let
69
+ - let!
70
+ - subject
71
+ - watch
72
+ IgnoredMethods:
73
+ - lambda
74
+ - proc
75
+ - it
76
+
77
+ Style/BracesAroundHashParameters:
78
+ EnforcedStyle: no_braces
79
+ SupportedStyles:
80
+ - braces
81
+ - no_braces
82
+ - context_dependent
83
+
84
+ Layout/CaseIndentation:
85
+ EnforcedStyle: end
86
+ SupportedStyles:
87
+ - case
88
+ - end
89
+ IndentOneStep: false
90
+ IndentationWidth:
91
+
92
+ Style/ClassAndModuleChildren:
93
+ EnforcedStyle: nested
94
+ SupportedStyles:
95
+ - nested
96
+ - compact
97
+
98
+ Style/ClassCheck:
99
+ EnforcedStyle: is_a?
100
+ SupportedStyles:
101
+ - is_a?
102
+ - kind_of?
103
+
104
+ Style/CommandLiteral:
105
+ EnforcedStyle: backticks
106
+ SupportedStyles:
107
+ - backticks
108
+ - percent_x
109
+ - mixed
110
+ AllowInnerBackticks: false
111
+
112
+ Style/CommentAnnotation:
113
+ Keywords:
114
+ - TODO
115
+ - FIXME
116
+ - OPTIMIZE
117
+ - HACK
118
+ - REVIEW
119
+
120
+ Style/ConditionalAssignment:
121
+ EnforcedStyle: assign_to_condition
122
+ SupportedStyles:
123
+ - assign_to_condition
124
+ - assign_inside_condition
125
+ SingleLineConditionsOnly: true
126
+
127
+ Layout/DotPosition:
128
+ EnforcedStyle: leading
129
+ SupportedStyles:
130
+ - leading
131
+ - trailing
132
+
133
+ Style/EmptyElse:
134
+ EnforcedStyle: both
135
+ SupportedStyles:
136
+ - empty
137
+ - nil
138
+ - both
139
+
140
+ Layout/EmptyLineBetweenDefs:
141
+ AllowAdjacentOneLineDefs: false
142
+
143
+ Layout/EmptyLinesAroundBlockBody:
144
+ EnforcedStyle: no_empty_lines
145
+ SupportedStyles:
146
+ - empty_lines
147
+ - no_empty_lines
148
+
149
+ Layout/EmptyLinesAroundClassBody:
150
+ EnforcedStyle: no_empty_lines
151
+ SupportedStyles:
152
+ - empty_lines
153
+ - empty_lines_except_namespace
154
+ - no_empty_lines
155
+
156
+ Layout/EmptyLinesAroundModuleBody:
157
+ EnforcedStyle: no_empty_lines
158
+ SupportedStyles:
159
+ - empty_lines
160
+ - empty_lines_except_namespace
161
+ - no_empty_lines
162
+
163
+ Layout/ExtraSpacing:
164
+ AllowForAlignment: true
165
+ ForceEqualSignAlignment: false
166
+
167
+ Naming/FileName:
168
+ Exclude: []
169
+ ExpectMatchingDefinition: false
170
+ Regex:
171
+ IgnoreExecutableScripts: true
172
+
173
+ Layout/FirstParameterIndentation:
174
+ EnforcedStyle: consistent
175
+ SupportedStyles:
176
+ - consistent
177
+ - special_for_inner_method_call
178
+ - special_for_inner_method_call_in_parentheses
179
+ IndentationWidth:
180
+
181
+ Style/For:
182
+ EnforcedStyle: each
183
+ SupportedStyles:
184
+ - for
185
+ - each
186
+
187
+ Style/FormatString:
188
+ EnforcedStyle: format
189
+ SupportedStyles:
190
+ - format
191
+ - sprintf
192
+ - percent
193
+
194
+ Style/FrozenStringLiteralComment:
195
+ Details: >-
196
+ Add `# frozen_string_literal: true` to the top of the file. Frozen string
197
+ literals will become the default in a future Ruby version, and we want to
198
+ make sure we're ready.
199
+ EnforcedStyle: when_needed
200
+ SupportedStyles:
201
+ - when_needed
202
+ - always
203
+ - never
204
+
205
+ Style/GlobalVars:
206
+ AllowedVariables: []
207
+
208
+ Style/HashSyntax:
209
+ EnforcedStyle: ruby19
210
+ SupportedStyles:
211
+ - ruby19
212
+ - hash_rockets
213
+ - no_mixed_keys
214
+ - ruby19_no_mixed_keys
215
+ UseHashRocketsWithSymbolValues: false
216
+ PreferHashRocketsForNonAlnumEndingSymbols: false
217
+
218
+ Layout/IndentationConsistency:
219
+ EnforcedStyle: normal
220
+ SupportedStyles:
221
+ - normal
222
+ - rails
223
+
224
+ Layout/IndentationWidth:
225
+ Width: 2
226
+
227
+ Layout/IndentArray:
228
+ EnforcedStyle: consistent
229
+ SupportedStyles:
230
+ - special_inside_parentheses
231
+ - consistent
232
+ - align_brackets
233
+ IndentationWidth:
234
+
235
+ Layout/IndentAssignment:
236
+ IndentationWidth:
237
+
238
+ Layout/IndentHash:
239
+ EnforcedStyle: consistent
240
+ SupportedStyles:
241
+ - special_inside_parentheses
242
+ - consistent
243
+ - align_braces
244
+ IndentationWidth:
245
+
246
+ Style/LambdaCall:
247
+ EnforcedStyle: call
248
+ SupportedStyles:
249
+ - call
250
+ - braces
251
+
252
+ Style/Next:
253
+ EnforcedStyle: skip_modifier_ifs
254
+ MinBodyLength: 3
255
+ SupportedStyles:
256
+ - skip_modifier_ifs
257
+ - always
258
+
259
+ Style/NonNilCheck:
260
+ IncludeSemanticChanges: false
261
+
262
+ Style/MethodDefParentheses:
263
+ EnforcedStyle: require_parentheses
264
+ SupportedStyles:
265
+ - require_parentheses
266
+ - require_no_parentheses
267
+ - require_no_parentheses_except_multiline
268
+
269
+ Naming/MethodName:
270
+ EnforcedStyle: snake_case
271
+ SupportedStyles:
272
+ - snake_case
273
+ - camelCase
274
+
275
+ Layout/MultilineArrayBraceLayout:
276
+ EnforcedStyle: symmetrical
277
+ SupportedStyles:
278
+ - symmetrical
279
+ - new_line
280
+ - same_line
281
+
282
+ Layout/MultilineHashBraceLayout:
283
+ EnforcedStyle: symmetrical
284
+ SupportedStyles:
285
+ - symmetrical
286
+ - new_line
287
+ - same_line
288
+
289
+ Layout/MultilineMethodCallBraceLayout:
290
+ EnforcedStyle: symmetrical
291
+ SupportedStyles:
292
+ - symmetrical
293
+ - new_line
294
+ - same_line
295
+
296
+ Layout/MultilineMethodCallIndentation:
297
+ EnforcedStyle: indented
298
+ SupportedStyles:
299
+ - aligned
300
+ - indented
301
+ - indented_relative_to_receiver
302
+ IndentationWidth: 2
303
+
304
+ Layout/MultilineMethodDefinitionBraceLayout:
305
+ EnforcedStyle: symmetrical
306
+ SupportedStyles:
307
+ - symmetrical
308
+ - new_line
309
+ - same_line
310
+
311
+ Style/NumericLiteralPrefix:
312
+ EnforcedOctalStyle: zero_only
313
+ SupportedOctalStyles:
314
+ - zero_with_o
315
+ - zero_only
316
+
317
+ Style/ParenthesesAroundCondition:
318
+ AllowSafeAssignment: true
319
+
320
+ Style/PercentLiteralDelimiters:
321
+ PreferredDelimiters:
322
+ '%': '()'
323
+ '%i': '()'
324
+ '%q': '()'
325
+ '%Q': '()'
326
+ '%r': '{}'
327
+ '%s': '()'
328
+ '%w': '()'
329
+ '%W': '()'
330
+ '%x': '()'
331
+
332
+ Style/PercentQLiterals:
333
+ EnforcedStyle: lower_case_q
334
+ SupportedStyles:
335
+ - lower_case_q
336
+ - upper_case_q
337
+
338
+ Naming/PredicateName:
339
+ NamePrefix:
340
+ - is_
341
+ NamePrefixBlacklist:
342
+ - is_
343
+ NameWhitelist:
344
+ - is_a?
345
+ Exclude:
346
+ - 'spec/**/*'
347
+
348
+ Style/PreferredHashMethods:
349
+ EnforcedStyle: short
350
+ SupportedStyles:
351
+ - short
352
+ - verbose
353
+
354
+ Style/RaiseArgs:
355
+ EnforcedStyle: exploded
356
+ SupportedStyles:
357
+ - compact
358
+ - exploded
359
+
360
+ Style/RedundantReturn:
361
+ AllowMultipleReturnValues: false
362
+
363
+ Style/RegexpLiteral:
364
+ EnforcedStyle: mixed
365
+ SupportedStyles:
366
+ - slashes
367
+ - percent_r
368
+ - mixed
369
+ AllowInnerSlashes: false
370
+
371
+ Style/SafeNavigation:
372
+ ConvertCodeThatCanStartToReturnNil: false
373
+ Enabled: true
374
+
375
+ Lint/SafeNavigationChain:
376
+ Enabled: true
377
+
378
+ Style/Semicolon:
379
+ AllowAsExpressionSeparator: false
380
+
381
+ Style/SignalException:
382
+ EnforcedStyle: only_raise
383
+ SupportedStyles:
384
+ - only_raise
385
+ - only_fail
386
+ - semantic
387
+
388
+ Style/SingleLineMethods:
389
+ AllowIfMethodIsEmpty: true
390
+
391
+ Layout/SpaceBeforeFirstArg:
392
+ AllowForAlignment: true
393
+
394
+ Style/SpecialGlobalVars:
395
+ EnforcedStyle: use_english_names
396
+ SupportedStyles:
397
+ - use_perl_names
398
+ - use_english_names
399
+
400
+ Style/StabbyLambdaParentheses:
401
+ EnforcedStyle: require_parentheses
402
+ SupportedStyles:
403
+ - require_parentheses
404
+ - require_no_parentheses
405
+
406
+ Style/StringLiteralsInInterpolation:
407
+ EnforcedStyle: single_quotes
408
+ SupportedStyles:
409
+ - single_quotes
410
+ - double_quotes
411
+
412
+ Layout/SpaceAroundBlockParameters:
413
+ EnforcedStyleInsidePipes: no_space
414
+ SupportedStylesInsidePipes:
415
+ - space
416
+ - no_space
417
+
418
+ Layout/SpaceAroundEqualsInParameterDefault:
419
+ EnforcedStyle: space
420
+ SupportedStyles:
421
+ - space
422
+ - no_space
423
+
424
+ Layout/SpaceAroundOperators:
425
+ AllowForAlignment: true
426
+
427
+ Layout/SpaceBeforeBlockBraces:
428
+ EnforcedStyle: space
429
+ EnforcedStyleForEmptyBraces: space
430
+ SupportedStyles:
431
+ - space
432
+ - no_space
433
+
434
+ Layout/SpaceInsideBlockBraces:
435
+ EnforcedStyle: space
436
+ SupportedStyles:
437
+ - space
438
+ - no_space
439
+ EnforcedStyleForEmptyBraces: no_space
440
+ SpaceBeforeBlockParameters: true
441
+
442
+ Layout/SpaceInsideHashLiteralBraces:
443
+ EnforcedStyle: space
444
+ EnforcedStyleForEmptyBraces: no_space
445
+ SupportedStyles:
446
+ - space
447
+ - no_space
448
+ - compact
449
+
450
+ Layout/SpaceInsideStringInterpolation:
451
+ EnforcedStyle: no_space
452
+ SupportedStyles:
453
+ - space
454
+ - no_space
455
+
456
+ Style/SymbolProc:
457
+ IgnoredMethods:
458
+ - respond_to
459
+ - define_method
460
+
461
+ Style/TernaryParentheses:
462
+ EnforcedStyle: require_no_parentheses
463
+ SupportedStyles:
464
+ - require_parentheses
465
+ - require_no_parentheses
466
+ AllowSafeAssignment: true
467
+
468
+ Layout/TrailingBlankLines:
469
+ EnforcedStyle: final_newline
470
+ SupportedStyles:
471
+ - final_newline
472
+ - final_blank_line
473
+
474
+ Style/TrivialAccessors:
475
+ ExactNameMatch: true
476
+ AllowPredicates: true
477
+ AllowDSLWriters: false
478
+ IgnoreClassMethods: false
479
+ Whitelist:
480
+ - to_ary
481
+ - to_a
482
+ - to_c
483
+ - to_enum
484
+ - to_h
485
+ - to_hash
486
+ - to_i
487
+ - to_int
488
+ - to_io
489
+ - to_open
490
+ - to_path
491
+ - to_proc
492
+ - to_r
493
+ - to_regexp
494
+ - to_str
495
+ - to_s
496
+ - to_sym
497
+
498
+ Naming/VariableName:
499
+ EnforcedStyle: snake_case
500
+ SupportedStyles:
501
+ - snake_case
502
+ - camelCase
503
+
504
+ Style/WhileUntilModifier:
505
+ Enabled: true
506
+
507
+ Style/WordArray:
508
+ EnforcedStyle: percent
509
+ SupportedStyles:
510
+ - percent
511
+ - brackets
512
+ MinSize: 0
513
+ WordRegex: !ruby/regexp /\A[\p{Word}\n\t]+\z/
514
+
515
+ Metrics/BlockNesting:
516
+ Max: 3
517
+
518
+ Metrics/LineLength:
519
+ Max: 120
520
+ AllowHeredoc: true
521
+ AllowURI: true
522
+ URISchemes:
523
+ - http
524
+ - https
525
+ IgnoreCopDirectives: false
526
+ IgnoredPatterns:
527
+ - '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)'
528
+
529
+ Metrics/ParameterLists:
530
+ Max: 5
531
+ CountKeywordArgs: false
532
+
533
+ Layout/BlockAlignment:
534
+ EnforcedStyleAlignWith: either
535
+ SupportedStylesAlignWith:
536
+ - either
537
+ - start_of_block
538
+ - start_of_line
539
+
540
+ Layout/EndAlignment:
541
+ EnforcedStyleAlignWith: variable
542
+ SupportedStylesAlignWith:
543
+ - keyword
544
+ - variable
545
+ - start_of_line
546
+
547
+ Layout/DefEndAlignment:
548
+ EnforcedStyleAlignWith: start_of_line
549
+ SupportedStylesAlignWith:
550
+ - start_of_line
551
+ - def
552
+
553
+ Lint/InheritException:
554
+ EnforcedStyle: runtime_error
555
+ SupportedStyles:
556
+ - runtime_error
557
+ - standard_error
558
+
559
+ Lint/UnusedBlockArgument:
560
+ IgnoreEmptyBlocks: true
561
+ AllowUnusedKeywordArguments: false
562
+
563
+ Lint/UnusedMethodArgument:
564
+ AllowUnusedKeywordArguments: false
565
+ IgnoreEmptyMethods: true
566
+
567
+ Performance/RedundantMerge:
568
+ MaxKeyValuePairs: 2
569
+
570
+ Rails/ActionFilter:
571
+ EnforcedStyle: action
572
+ SupportedStyles:
573
+ - action
574
+ - filter
575
+ Include:
576
+ - app/controllers/**/*.rb
577
+
578
+ Rails/Date:
579
+ EnforcedStyle: flexible
580
+ SupportedStyles:
581
+ - strict
582
+ - flexible
583
+
584
+ Rails/DynamicFindBy:
585
+ Whitelist:
586
+ - find_by_sql
587
+
588
+ Rails/Exit:
589
+ Include:
590
+ - app/**/*.rb
591
+ - config/**/*.rb
592
+ - lib/**/*.rb
593
+ Exclude:
594
+ - 'lib/**/*.rake'
595
+
596
+ Rails/FindBy:
597
+ Include:
598
+ - app/models/**/*.rb
599
+
600
+ Rails/FindEach:
601
+ Include:
602
+ - app/models/**/*.rb
603
+
604
+ Rails/HasAndBelongsToMany:
605
+ Include:
606
+ - app/models/**/*.rb
607
+
608
+ Rails/NotNullColumn:
609
+ Include:
610
+ - db/migrate/*.rb
611
+
612
+ Rails/Output:
613
+ Include:
614
+ - app/**/*.rb
615
+ - config/**/*.rb
616
+ - db/**/*.rb
617
+ - lib/**/*.rb
618
+
619
+ Rails/ReadWriteAttribute:
620
+ Include:
621
+ - app/models/**/*.rb
622
+
623
+ Rails/RequestReferer:
624
+ EnforcedStyle: referer
625
+ SupportedStyles:
626
+ - referer
627
+ - referrer
628
+
629
+ Rails/SafeNavigation:
630
+ ConvertTry: false
631
+
632
+ Rails/ScopeArgs:
633
+ Include:
634
+ - app/models/**/*.rb
635
+
636
+ Rails/TimeZone:
637
+ EnforcedStyle: flexible
638
+ SupportedStyles:
639
+ - strict
640
+ - flexible
641
+
642
+ Rails/UniqBeforePluck:
643
+ EnforcedStyle: conservative
644
+ SupportedStyles:
645
+ - conservative
646
+ - aggressive
647
+
648
+ Rails/Validation:
649
+ Include:
650
+ - app/models/**/*.rb
651
+
652
+ Naming/AccessorMethodName:
653
+ Enabled: true
654
+
655
+ Layout/AlignArray:
656
+ Enabled: true
657
+
658
+ Style/ArrayJoin:
659
+ Enabled: true
660
+
661
+ Naming/AsciiIdentifiers:
662
+ Enabled: true
663
+
664
+ Style/Attr:
665
+ Enabled: true
666
+
667
+ Style/BeginBlock:
668
+ Enabled: true
669
+
670
+ Style/BlockComments:
671
+ Enabled: true
672
+
673
+ Layout/BlockEndNewline:
674
+ Enabled: true
675
+
676
+ Style/CaseEquality:
677
+ Enabled: true
678
+
679
+ Style/CharacterLiteral:
680
+ Enabled: true
681
+
682
+ Naming/ClassAndModuleCamelCase:
683
+ Enabled: true
684
+
685
+ Style/ClassMethods:
686
+ Enabled: true
687
+
688
+ Style/ClassVars:
689
+ Enabled: true
690
+
691
+ Layout/ClosingParenthesisIndentation:
692
+ Enabled: true
693
+
694
+ Style/ColonMethodCall:
695
+ Enabled: true
696
+
697
+ Layout/CommentIndentation:
698
+ Enabled: true
699
+
700
+ Naming/ConstantName:
701
+ Enabled: true
702
+
703
+ Style/DateTime:
704
+ Enabled: true
705
+
706
+ Style/DefWithParentheses:
707
+ Enabled: true
708
+
709
+ Style/EachForSimpleLoop:
710
+ Enabled: true
711
+
712
+ Style/EachWithObject:
713
+ Enabled: true
714
+
715
+ Layout/ElseAlignment:
716
+ Enabled: true
717
+
718
+ Style/EmptyCaseCondition:
719
+ Enabled: true
720
+
721
+ Layout/EmptyLines:
722
+ Enabled: true
723
+
724
+ Layout/EmptyLinesAroundAccessModifier:
725
+ Enabled: true
726
+
727
+ Layout/EmptyLinesAroundMethodBody:
728
+ Enabled: true
729
+
730
+ Style/EmptyLiteral:
731
+ Enabled: true
732
+
733
+ Style/EndBlock:
734
+ Enabled: true
735
+
736
+ Layout/EndOfLine:
737
+ Enabled: true
738
+
739
+ Style/EvenOdd:
740
+ Enabled: true
741
+
742
+ Layout/InitialIndentation:
743
+ Enabled: true
744
+
745
+ Style/FlipFlop:
746
+ Enabled: true
747
+
748
+ Style/IfInsideElse:
749
+ Enabled: true
750
+
751
+ Style/IfUnlessModifierOfIfUnless:
752
+ Enabled: true
753
+
754
+ Style/IfWithSemicolon:
755
+ Enabled: true
756
+
757
+ Style/IdenticalConditionalBranches:
758
+ Enabled: true
759
+
760
+ Style/InfiniteLoop:
761
+ Enabled: true
762
+
763
+ Layout/LeadingCommentSpace:
764
+ Enabled: true
765
+
766
+ Style/LineEndConcatenation:
767
+ Enabled: true
768
+
769
+ Style/MethodCallWithoutArgsParentheses:
770
+ Enabled: true
771
+
772
+ Style/MethodMissingSuper:
773
+ Enabled: true
774
+
775
+ Style/MissingRespondToMissing:
776
+ Enabled: true
777
+
778
+ Style/MultilineBlockChain:
779
+ Enabled: true
780
+
781
+ Layout/MultilineBlockLayout:
782
+ Enabled: true
783
+
784
+ Style/MultilineIfThen:
785
+ Enabled: true
786
+
787
+ Style/MultilineMemoization:
788
+ Enabled: true
789
+
790
+ Style/MultilineTernaryOperator:
791
+ Enabled: true
792
+
793
+ Style/NegatedIf:
794
+ Enabled: true
795
+
796
+ Style/NegatedWhile:
797
+ Enabled: true
798
+
799
+ Style/NestedModifier:
800
+ Enabled: true
801
+
802
+ Style/NestedParenthesizedCalls:
803
+ Enabled: true
804
+
805
+ Style/NestedTernaryOperator:
806
+ Enabled: true
807
+
808
+ Style/NilComparison:
809
+ Enabled: true
810
+
811
+ Style/Not:
812
+ Enabled: true
813
+
814
+ Style/OneLineConditional:
815
+ Enabled: true
816
+
817
+ Naming/BinaryOperatorParameterName:
818
+ Enabled: true
819
+
820
+ Style/OptionalArguments:
821
+ Enabled: true
822
+
823
+ Style/ParallelAssignment:
824
+ Enabled: true
825
+
826
+ Style/PerlBackrefs:
827
+ Enabled: true
828
+
829
+ Style/Proc:
830
+ Enabled: true
831
+
832
+ Style/RedundantBegin:
833
+ Enabled: true
834
+
835
+ Style/RedundantException:
836
+ Enabled: true
837
+
838
+ Style/RedundantFreeze:
839
+ Enabled: true
840
+
841
+ Style/RedundantParentheses:
842
+ Enabled: true
843
+
844
+ Style/RedundantSelf:
845
+ Enabled: true
846
+
847
+ Layout/RescueEnsureAlignment:
848
+ Enabled: true
849
+
850
+ Style/RescueModifier:
851
+ Enabled: true
852
+
853
+ Style/SelfAssignment:
854
+ Enabled: true
855
+
856
+ Layout/SpaceAfterColon:
857
+ Enabled: true
858
+
859
+ Layout/SpaceAfterComma:
860
+ Enabled: true
861
+
862
+ Layout/SpaceAfterMethodName:
863
+ Enabled: true
864
+
865
+ Layout/SpaceAfterNot:
866
+ Enabled: true
867
+
868
+ Layout/SpaceAfterSemicolon:
869
+ Enabled: true
870
+
871
+ Layout/SpaceBeforeComma:
872
+ Enabled: true
873
+
874
+ Layout/SpaceBeforeComment:
875
+ Enabled: true
876
+
877
+ Layout/SpaceBeforeSemicolon:
878
+ Enabled: true
879
+
880
+ Layout/SpaceAroundKeyword:
881
+ Enabled: true
882
+
883
+ Layout/SpaceInsideArrayPercentLiteral:
884
+ Enabled: true
885
+
886
+ Layout/SpaceInsidePercentLiteralDelimiters:
887
+ Enabled: true
888
+
889
+ Layout/SpaceInsideArrayLiteralBrackets:
890
+ Enabled: true
891
+
892
+ Layout/SpaceInsideParens:
893
+ Enabled: true
894
+
895
+ Layout/SpaceInsideRangeLiteral:
896
+ Enabled: true
897
+
898
+ Style/SymbolLiteral:
899
+ Enabled: true
900
+
901
+ Layout/Tab:
902
+ Enabled: true
903
+
904
+ Layout/TrailingWhitespace:
905
+ Enabled: true
906
+
907
+ Style/UnlessElse:
908
+ Enabled: true
909
+
910
+ Style/UnneededCapitalW:
911
+ Enabled: true
912
+
913
+ Style/UnneededInterpolation:
914
+ Enabled: true
915
+
916
+ Style/UnneededPercentQ:
917
+ Enabled: true
918
+
919
+ Style/VariableInterpolation:
920
+ Enabled: true
921
+
922
+ Style/WhenThen:
923
+ Enabled: true
924
+
925
+ Style/WhileUntilDo:
926
+ Enabled: true
927
+
928
+ Style/ZeroLengthPredicate:
929
+ Enabled: true
930
+
931
+ Layout/IndentHeredoc:
932
+ EnforcedStyle: squiggly
933
+
934
+ Lint/AmbiguousOperator:
935
+ Enabled: true
936
+
937
+ Lint/AmbiguousRegexpLiteral:
938
+ Enabled: true
939
+
940
+ Lint/CircularArgumentReference:
941
+ Enabled: true
942
+
943
+ Layout/ConditionPosition:
944
+ Enabled: true
945
+
946
+ Lint/Debugger:
947
+ Enabled: true
948
+
949
+ Lint/DeprecatedClassMethods:
950
+ Enabled: true
951
+
952
+ Lint/DuplicateMethods:
953
+ Enabled: true
954
+
955
+ Lint/DuplicatedKey:
956
+ Enabled: true
957
+
958
+ Lint/EachWithObjectArgument:
959
+ Enabled: true
960
+
961
+ Lint/ElseLayout:
962
+ Enabled: true
963
+
964
+ Lint/EmptyEnsure:
965
+ Enabled: true
966
+
967
+ Lint/EmptyInterpolation:
968
+ Enabled: true
969
+
970
+ Lint/EndInMethod:
971
+ Enabled: true
972
+
973
+ Lint/EnsureReturn:
974
+ Enabled: true
975
+
976
+ Lint/FloatOutOfRange:
977
+ Enabled: true
978
+
979
+ Lint/FormatParameterMismatch:
980
+ Enabled: true
981
+
982
+ Lint/HandleExceptions:
983
+ Enabled: true
984
+
985
+ Lint/ImplicitStringConcatenation:
986
+ Description: Checks for adjacent string literals on the same line, which could
987
+ better be represented as a single string literal.
988
+
989
+ Lint/IneffectiveAccessModifier:
990
+ Description: Checks for attempts to use `private` or `protected` to set the visibility
991
+ of a class method, which does not work.
992
+
993
+ Lint/LiteralAsCondition:
994
+ Enabled: true
995
+
996
+ Lint/LiteralInInterpolation:
997
+ Enabled: true
998
+
999
+ Lint/Loop:
1000
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
1001
+ for post-loop tests.
1002
+
1003
+ Lint/NestedMethodDefinition:
1004
+ Enabled: true
1005
+
1006
+ Lint/NextWithoutAccumulator:
1007
+ Description: Do not omit the accumulator when calling `next` in a `reduce`/`inject`
1008
+ block.
1009
+
1010
+ Lint/NonLocalExitFromIterator:
1011
+ Enabled: true
1012
+
1013
+ Lint/ParenthesesAsGroupedExpression:
1014
+ Enabled: true
1015
+
1016
+ Lint/PercentStringArray:
1017
+ Enabled: true
1018
+
1019
+ Lint/PercentSymbolArray:
1020
+ Enabled: true
1021
+
1022
+ Lint/RandOne:
1023
+ Description: Checks for `rand(1)` calls. Such calls always return `0` and most
1024
+ likely a mistake.
1025
+
1026
+ Lint/RequireParentheses:
1027
+ Enabled: true
1028
+
1029
+ Lint/RescueException:
1030
+ Enabled: true
1031
+
1032
+ Lint/ShadowedException:
1033
+ Enabled: true
1034
+
1035
+ Lint/ShadowingOuterLocalVariable:
1036
+ Enabled: true
1037
+
1038
+ Lint/StringConversionInInterpolation:
1039
+ Enabled: true
1040
+
1041
+ Lint/UnderscorePrefixedVariableName:
1042
+ Enabled: true
1043
+
1044
+ Lint/UnifiedInteger:
1045
+ Enabled: true
1046
+
1047
+ Lint/UnneededCopDisableDirective:
1048
+ Enabled: true
1049
+
1050
+ Lint/UnneededCopEnableDirective:
1051
+ Enabled: true
1052
+
1053
+ Lint/UnneededSplatExpansion:
1054
+ Enabled: true
1055
+
1056
+ Lint/UnreachableCode:
1057
+ Enabled: true
1058
+
1059
+ Lint/UselessAccessModifier:
1060
+ ContextCreatingMethods: []
1061
+
1062
+ Lint/UselessAssignment:
1063
+ Enabled: true
1064
+
1065
+ Lint/UselessComparison:
1066
+ Enabled: true
1067
+
1068
+ Lint/UselessElseWithoutRescue:
1069
+ Enabled: true
1070
+
1071
+ Lint/UselessSetterCall:
1072
+ Enabled: true
1073
+
1074
+ Lint/Void:
1075
+ Enabled: true
1076
+
1077
+ Performance/CaseWhenSplat:
1078
+ Enabled: true
1079
+
1080
+ Performance/Count:
1081
+ SafeMode: true
1082
+
1083
+ Performance/Detect:
1084
+ SafeMode: true
1085
+
1086
+ Performance/DoubleStartEndWith:
1087
+ Enabled: true
1088
+
1089
+ Performance/EndWith:
1090
+ Enabled: true
1091
+
1092
+ Performance/FixedSize:
1093
+ Enabled: true
1094
+
1095
+ Performance/FlatMap:
1096
+ EnabledForFlattenWithoutParams: false
1097
+
1098
+ Performance/LstripRstrip:
1099
+ Enabled: true
1100
+
1101
+ Performance/RangeInclude:
1102
+ Enabled: true
1103
+
1104
+ Performance/RedundantBlockCall:
1105
+ Enabled: true
1106
+
1107
+ Performance/RedundantMatch:
1108
+ Enabled: true
1109
+
1110
+ Performance/RedundantSortBy:
1111
+ Enabled: true
1112
+
1113
+ Performance/ReverseEach:
1114
+ Enabled: true
1115
+
1116
+ Performance/Sample:
1117
+ Enabled: true
1118
+
1119
+ Performance/Size:
1120
+ Enabled: true
1121
+
1122
+ Performance/CompareWithBlock:
1123
+ Enabled: true
1124
+
1125
+ Performance/StartWith:
1126
+ Enabled: true
1127
+
1128
+ Performance/StringReplacement:
1129
+ Enabled: true
1130
+
1131
+ Rails/DelegateAllowBlank:
1132
+ Enabled: true
1133
+
1134
+ Rails/HttpPositionalArguments:
1135
+ Include:
1136
+ - spec/**/*
1137
+ - test/**/*
1138
+
1139
+ Rails/OutputSafety:
1140
+ Enabled: true
1141
+
1142
+ Rails/PluralizationGrammar:
1143
+ Enabled: true
1144
+
1145
+ Security/Eval:
1146
+ Enabled: true
1147
+
1148
+ Security/JSONLoad:
1149
+ Enabled: true
1150
+
1151
+ Security/Open:
1152
+ Enabled: true
1153
+
1154
+ Lint/BigDecimalNew:
1155
+ Enabled: true
1156
+
1157
+ Style/TrailingBodyOnClass:
1158
+ Enabled: true
1159
+
1160
+ Style/TrailingBodyOnModule:
1161
+ Enabled: true
1162
+
1163
+ Style/TrailingCommaInArrayLiteral:
1164
+ EnforcedStyleForMultiline: comma
1165
+ Enabled: true
1166
+
1167
+ Style/TrailingCommaInHashLiteral:
1168
+ EnforcedStyleForMultiline: comma
1169
+ Enabled: true
1170
+
1171
+ Layout/SpaceInsideReferenceBrackets:
1172
+ EnforcedStyle: no_space
1173
+ EnforcedStyleForEmptyBrackets: no_space
1174
+ Enabled: true
1175
+
1176
+ Style/ModuleFunction:
1177
+ EnforcedStyle: extend_self
1178
+
1179
+ Lint/OrderedMagicComments:
1180
+ Enabled: true