deprecation_toolkit 1.4.0 → 2.0.0

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