mangrove 0.30.1 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +107 -43
  3. data/lib/mangrove/result.rb +78 -0
  4. data/lib/mangrove/version.rb +1 -1
  5. data/lib/tapioca/dsl/compilers/mangrove_enum.rb +7 -1
  6. data/sorbet/config +1 -0
  7. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  8. data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
  9. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
  10. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
  11. data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
  12. data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
  13. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
  14. data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
  15. data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
  16. data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
  17. data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
  18. data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
  19. data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
  20. data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
  21. data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
  22. data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
  23. data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
  24. data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
  25. data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
  26. data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
  27. data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
  28. data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
  29. data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
  30. data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
  31. data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
  32. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
  33. data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
  34. data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
  35. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  36. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  37. data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
  38. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  39. data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
  40. metadata +39 -42
  41. data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
  42. data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
  43. data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
  44. data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
  45. data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
  46. data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
  47. data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
  48. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  49. /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
  50. /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
  51. /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -163,7 +163,7 @@ class RuboCop::Cop::RSpec::AroundBlock < ::RuboCop::Cop::RSpec::Base
163
163
  # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#67
164
164
  def add_no_arg_offense(node); end
165
165
 
166
- # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#84
166
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#82
167
167
  def check_for_numblock(block); end
168
168
 
169
169
  # source://rubocop-rspec//lib/rubocop/cop/rspec/around_block.rb#71
@@ -181,18 +181,17 @@ RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String)
181
181
  # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#7
182
182
  class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base
183
183
  include ::RuboCop::RSpec::Language
184
- extend ::RuboCop::RSpec::Language::NodePattern
185
184
 
186
185
  # Set the config for dynamic DSL configuration-aware helpers
187
186
  # that have no other means of accessing the configuration.
188
187
  #
189
- # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#20
188
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#19
190
189
  def on_new_investigation; end
191
190
 
192
191
  class << self
193
192
  # Invoke the original inherited hook so our cops are recognized
194
193
  #
195
- # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#14
194
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#13
196
195
  def inherited(subclass); end
197
196
  end
198
197
  end
@@ -418,242 +417,6 @@ RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String)
418
417
  # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#27
419
418
  RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
420
419
 
421
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#6
422
- module RuboCop::Cop::RSpec::Capybara; end
423
-
424
- # Checks that no expectations are set on Capybara's `current_path`.
425
- #
426
- # The
427
- # https://www.rubydoc.info/github/teamcapybara/capybara/master/Capybara/RSpecMatchers#have_current_path-instance_method[`have_current_path` matcher]
428
- # should be used on `page` to set expectations on Capybara's
429
- # current path, since it uses
430
- # https://github.com/teamcapybara/capybara/blob/master/README.md#asynchronous-javascript-ajax-and-friends[Capybara's waiting functionality]
431
- # which ensures that preceding actions (like `click_link`) have
432
- # completed.
433
- #
434
- # This cop does not support autocorrection in some cases.
435
- #
436
- # @example
437
- # # bad
438
- # expect(current_path).to eq('/callback')
439
- #
440
- # # good
441
- # expect(page).to have_current_path('/callback')
442
- #
443
- # # bad (does not support autocorrection)
444
- # expect(page.current_path).to match(variable)
445
- #
446
- # # good
447
- # expect(page).to have_current_path('/callback')
448
- #
449
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#34
450
- RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation = RuboCop::Cop::Capybara::CurrentPathExpectation
451
-
452
- # Checks for consistent method usage in feature specs.
453
- #
454
- # By default, the cop disables all Capybara-specific methods that have
455
- # the same native RSpec method (e.g. are just aliases). Some teams
456
- # however may prefer using some of the Capybara methods (like `feature`)
457
- # to make it obvious that the test uses Capybara, while still disable
458
- # the rest of the methods, like `given` (alias for `let`), `background`
459
- # (alias for `before`), etc. You can configure which of the methods to
460
- # be enabled by using the EnabledMethods configuration option.
461
- #
462
- # @example
463
- # # bad
464
- # feature 'User logs in' do
465
- # given(:user) { User.new }
466
- #
467
- # background do
468
- # visit new_session_path
469
- # end
470
- #
471
- # scenario 'with OAuth' do
472
- # # ...
473
- # end
474
- # end
475
- #
476
- # # good
477
- # describe 'User logs in' do
478
- # let(:user) { User.new }
479
- #
480
- # before do
481
- # visit new_session_path
482
- # end
483
- #
484
- # it 'with OAuth' do
485
- # # ...
486
- # end
487
- # end
488
- #
489
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#44
490
- class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base
491
- include ::RuboCop::Cop::RSpec::InsideExampleGroup
492
- extend ::RuboCop::Cop::AutoCorrector
493
-
494
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#61
495
- def capybara_speak(param0 = T.unsafe(nil)); end
496
-
497
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#66
498
- def feature_method(param0 = T.unsafe(nil)); end
499
-
500
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#84
501
- def message(range); end
502
-
503
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#72
504
- def on_block(node); end
505
-
506
- private
507
-
508
- # @return [Boolean]
509
- #
510
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#91
511
- def enabled?(method_name); end
512
-
513
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#95
514
- def enabled_methods; end
515
- end
516
-
517
- # https://github.com/teamcapybara/capybara/blob/e283c1aeaa72441f5403963577e16333bf111a81/lib/capybara/rspec/features.rb#L31-L36
518
- #
519
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#51
520
- RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash)
521
-
522
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#48
523
- RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String)
524
-
525
- # Checks for usage of deprecated style methods.
526
- #
527
- # @example when using `assert_style`
528
- # # bad
529
- # page.find(:css, '#first').assert_style(display: 'block')
530
- #
531
- # # good
532
- # page.find(:css, '#first').assert_matches_style(display: 'block')
533
- # @example when using `has_style?`
534
- # # bad
535
- # expect(page.find(:css, 'first')
536
- # .has_style?(display: 'block')).to be true
537
- #
538
- # # good
539
- # expect(page.find(:css, 'first')
540
- # .matches_style?(display: 'block')).to be true
541
- # @example when using `have_style`
542
- # # bad
543
- # expect(page).to have_style(display: 'block')
544
- #
545
- # # good
546
- # expect(page).to match_style(display: 'block')
547
- #
548
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/match_style.rb#34
549
- RuboCop::Cop::RSpec::Capybara::MatchStyle = RuboCop::Cop::Capybara::MatchStyle
550
-
551
- # Enforces use of `have_no_*` or `not_to` for negated expectations.
552
- #
553
- # @example EnforcedStyle: not_to (default)
554
- # # bad
555
- # expect(page).to have_no_selector
556
- # expect(page).to have_no_css('a')
557
- #
558
- # # good
559
- # expect(page).not_to have_selector
560
- # expect(page).not_to have_css('a')
561
- # @example EnforcedStyle: have_no
562
- # # bad
563
- # expect(page).not_to have_selector
564
- # expect(page).not_to have_css('a')
565
- #
566
- # # good
567
- # expect(page).to have_no_selector
568
- # expect(page).to have_no_css('a')
569
- #
570
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#29
571
- RuboCop::Cop::RSpec::Capybara::NegationMatcher = RuboCop::Cop::Capybara::NegationMatcher
572
-
573
- # Checks for there is a more specific actions offered by Capybara.
574
- #
575
- # @example
576
- #
577
- # # bad
578
- # find('a').click
579
- # find('button.cls').click
580
- # find('a', exact_text: 'foo').click
581
- # find('div button').click
582
- #
583
- # # good
584
- # click_link
585
- # click_button(class: 'cls')
586
- # click_link(exact_text: 'foo')
587
- # find('div').click_button
588
- #
589
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#25
590
- RuboCop::Cop::RSpec::Capybara::SpecificActions = RuboCop::Cop::Capybara::SpecificActions
591
-
592
- # Checks if there is a more specific finder offered by Capybara.
593
- #
594
- # @example
595
- # # bad
596
- # find('#some-id')
597
- # find('[visible][id=some-id]')
598
- #
599
- # # good
600
- # find_by_id('some-id')
601
- # find_by_id('some-id', visible: true)
602
- #
603
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#20
604
- RuboCop::Cop::RSpec::Capybara::SpecificFinders = RuboCop::Cop::Capybara::SpecificFinders
605
-
606
- # Checks for there is a more specific matcher offered by Capybara.
607
- #
608
- # @example
609
- #
610
- # # bad
611
- # expect(page).to have_selector('button')
612
- # expect(page).to have_no_selector('button.cls')
613
- # expect(page).to have_css('button')
614
- # expect(page).to have_no_css('a.cls', href: 'http://example.com')
615
- # expect(page).to have_css('table.cls')
616
- # expect(page).to have_css('select')
617
- # expect(page).to have_css('input', exact_text: 'foo')
618
- #
619
- # # good
620
- # expect(page).to have_button
621
- # expect(page).to have_no_button(class: 'cls')
622
- # expect(page).to have_button
623
- # expect(page).to have_no_link('foo', class: 'cls', href: 'http://example.com')
624
- # expect(page).to have_table(class: 'cls')
625
- # expect(page).to have_select
626
- # expect(page).to have_field('foo')
627
- #
628
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#31
629
- RuboCop::Cop::RSpec::Capybara::SpecificMatcher = RuboCop::Cop::Capybara::SpecificMatcher
630
-
631
- # Checks for boolean visibility in Capybara finders.
632
- #
633
- # Capybara lets you find elements that match a certain visibility
634
- # using the `:visible` option. `:visible` accepts both boolean and
635
- # symbols as values, however using booleans can have unwanted
636
- # effects. `visible: false` does not find just invisible elements,
637
- # but both visible and invisible elements. For expressiveness and
638
- # clarity, use one of the # symbol values, `:all`, `:hidden` or
639
- # `:visible`.
640
- # Read more in
641
- # https://www.rubydoc.info/gems/capybara/Capybara%2FNode%2FFinders:all[the documentation].
642
- #
643
- # @example
644
- # # bad
645
- # expect(page).to have_selector('.foo', visible: false)
646
- # expect(page).to have_css('.foo', visible: true)
647
- # expect(page).to have_link('my link', visible: false)
648
- #
649
- # # good
650
- # expect(page).to have_selector('.foo', visible: :visible)
651
- # expect(page).to have_css('.foo', visible: :all)
652
- # expect(page).to have_link('my link', visible: :hidden)
653
- #
654
- # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#32
655
- RuboCop::Cop::RSpec::Capybara::VisibilityMatcher = RuboCop::Cop::Capybara::VisibilityMatcher
656
-
657
420
  # Prefer negated matchers over `to change.by(0)`.
658
421
  #
659
422
  # In the case of composite expectations, cop suggest using the
@@ -726,10 +489,10 @@ class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base
726
489
 
727
490
  private
728
491
 
729
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#133
492
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#134
730
493
  def autocorrect(corrector, node, change_node); end
731
494
 
732
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#140
495
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#141
733
496
  def autocorrect_compound(corrector, node); end
734
497
 
735
498
  # @return [Boolean]
@@ -737,28 +500,28 @@ class RuboCop::Cop::RSpec::ChangeByZero < ::RuboCop::Cop::RSpec::Base
737
500
  # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#120
738
501
  def compound_expectations?(node); end
739
502
 
740
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#150
503
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#151
741
504
  def insert_operator(corrector, node, change_node); end
742
505
 
743
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#124
506
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#125
744
507
  def message(change_node); end
745
508
 
746
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#128
509
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#129
747
510
  def message_compound(change_node); end
748
511
 
749
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#174
512
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#175
750
513
  def negated_matcher; end
751
514
 
752
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#178
515
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#179
753
516
  def preferred_method; end
754
517
 
755
518
  # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#105
756
519
  def register_offense(node, change_node); end
757
520
 
758
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#163
521
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#164
759
522
  def remove_by_zero(corrector, node, change_node); end
760
523
 
761
- # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#159
524
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/change_by_zero.rb#160
762
525
  def replace_node(node, change_node); end
763
526
  end
764
527
 
@@ -866,6 +629,7 @@ end
866
629
  # Checks where `contain_exactly` is used.
867
630
  #
868
631
  # This cop checks for the following:
632
+ #
869
633
  # - Prefer `match_array` when matching array values.
870
634
  # - Prefer `be_empty` when using `contain_exactly` with no arguments.
871
635
  #
@@ -879,26 +643,26 @@ end
879
643
  # # good
880
644
  # it { is_expected.to contain_exactly(content, *array) }
881
645
  #
882
- # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#22
646
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#23
883
647
  class RuboCop::Cop::RSpec::ContainExactly < ::RuboCop::Cop::RSpec::Base
884
648
  extend ::RuboCop::Cop::AutoCorrector
885
649
 
886
- # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#28
650
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#29
887
651
  def on_send(node); end
888
652
 
889
653
  private
890
654
 
891
- # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#44
655
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#45
892
656
  def autocorrect_for_populated_array(node, corrector); end
893
657
 
894
- # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#36
658
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#37
895
659
  def check_populated_collection(node); end
896
660
  end
897
661
 
898
- # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#25
662
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#26
899
663
  RuboCop::Cop::RSpec::ContainExactly::MSG = T.let(T.unsafe(nil), String)
900
664
 
901
- # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#26
665
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/contain_exactly.rb#27
902
666
  RuboCop::Cop::RSpec::ContainExactly::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
903
667
 
904
668
  # `context` should not be used for specifying methods.
@@ -950,6 +714,9 @@ RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String)
950
714
  # include `if`, `unless`, `for`, `before`, `after`, or `during`.
951
715
  # They may consist of multiple words if desired.
952
716
  #
717
+ # If both `Prefixes` and `AllowedPatterns` are empty, this cop will always
718
+ # report an offense. So you need to set at least one of them.
719
+ #
953
720
  # This cop can be customized allowed context description pattern
954
721
  # with `AllowedPatterns`. By default, there are no checking by pattern.
955
722
  #
@@ -991,41 +758,42 @@ RuboCop::Cop::RSpec::ContextMethod::MSG = T.let(T.unsafe(nil), String)
991
758
  # end
992
759
  # @see http://www.betterspecs.org/#contexts
993
760
  #
994
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#58
761
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#61
995
762
  class RuboCop::Cop::RSpec::ContextWording < ::RuboCop::Cop::RSpec::Base
996
763
  include ::RuboCop::Cop::AllowedPattern
997
764
 
998
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#64
765
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#69
999
766
  def context_wording(param0 = T.unsafe(nil)); end
1000
767
 
1001
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#68
768
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#73
1002
769
  def on_block(node); end
1003
770
 
1004
771
  private
1005
772
 
1006
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#79
773
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#83
1007
774
  def allowed_patterns; end
1008
775
 
1009
- # @return [Boolean]
1010
- #
1011
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#87
1012
- def bad_pattern?(node); end
1013
-
1014
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#93
776
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#91
1015
777
  def description(context); end
1016
778
 
1017
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#101
779
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#107
1018
780
  def expect_patterns; end
1019
781
 
1020
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#83
782
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#99
783
+ def message; end
784
+
785
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#87
1021
786
  def prefix_regexes; end
1022
787
 
1023
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#111
788
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#117
1024
789
  def prefixes; end
1025
790
  end
1026
791
 
1027
- # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#61
1028
- RuboCop::Cop::RSpec::ContextWording::MSG = T.let(T.unsafe(nil), String)
792
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#65
793
+ RuboCop::Cop::RSpec::ContextWording::MSG_ALWAYS = T.let(T.unsafe(nil), String)
794
+
795
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/context_wording.rb#64
796
+ RuboCop::Cop::RSpec::ContextWording::MSG_MATCH = T.let(T.unsafe(nil), String)
1029
797
 
1030
798
  # Check that the first argument to the top-level describe is a constant.
1031
799
  #
@@ -1375,6 +1143,19 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St
1375
1143
  # PreferredMethods:
1376
1144
  # context: describe
1377
1145
  #
1146
+ # If you were previously using the `RSpec/Capybara/FeatureMethods` cop and
1147
+ # want to keep disabling all Capybara-specific methods that have the same
1148
+ # native RSpec method (e.g. are just aliases), use the following config:
1149
+ #
1150
+ # RSpec/Dialect:
1151
+ # PreferredMethods:
1152
+ # background: :before
1153
+ # scenario: :it
1154
+ # xscenario: :xit
1155
+ # given: :let
1156
+ # given!: :let!
1157
+ # feature: :describe
1158
+ #
1378
1159
  # You can expect the following behavior:
1379
1160
  #
1380
1161
  # @example
@@ -1388,19 +1169,19 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St
1388
1169
  # # ...
1389
1170
  # end
1390
1171
  #
1391
- # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#45
1172
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#58
1392
1173
  class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base
1393
1174
  include ::RuboCop::Cop::MethodPreference
1394
1175
  extend ::RuboCop::Cop::AutoCorrector
1395
1176
 
1396
- # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#54
1177
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#67
1397
1178
  def on_send(node); end
1398
1179
 
1399
- # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#52
1180
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#65
1400
1181
  def rspec_method?(param0 = T.unsafe(nil)); end
1401
1182
  end
1402
1183
 
1403
- # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#49
1184
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#62
1404
1185
  RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String)
1405
1186
 
1406
1187
  # Avoid duplicated metadata.
@@ -1544,27 +1325,27 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base
1544
1325
  # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#97
1545
1326
  def examples_inside_block?(param0 = T.unsafe(nil)); end
1546
1327
 
1547
- # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#138
1328
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#139
1548
1329
  def on_block(node); end
1549
1330
 
1550
1331
  private
1551
1332
 
1552
1333
  # @return [Boolean]
1553
1334
  #
1554
- # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#164
1335
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#165
1555
1336
  def conditionals_with_examples?(body); end
1556
1337
 
1557
1338
  # @return [Boolean]
1558
1339
  #
1559
- # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#172
1340
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#173
1560
1341
  def examples_in_branches?(condition_node); end
1561
1342
 
1562
1343
  # @return [Boolean]
1563
1344
  #
1564
- # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#153
1345
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#154
1565
1346
  def offensive?(body); end
1566
1347
 
1567
- # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#178
1348
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_example_group.rb#180
1568
1349
  def removed_range(node); end
1569
1350
  end
1570
1351
 
@@ -1885,7 +1666,7 @@ class RuboCop::Cop::RSpec::EmptyMetadata < ::RuboCop::Cop::RSpec::Base
1885
1666
 
1886
1667
  private
1887
1668
 
1888
- # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#32
1669
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/empty_metadata.rb#33
1889
1670
  def remove_empty_metadata(corrector, node); end
1890
1671
  end
1891
1672
 
@@ -2441,12 +2222,9 @@ class RuboCop::Cop::RSpec::ExpectInLet < ::RuboCop::Cop::RSpec::Base
2441
2222
  # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#25
2442
2223
  def on_block(node); end
2443
2224
 
2444
- # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#25
2445
- def on_numblock(node); end
2446
-
2447
2225
  private
2448
2226
 
2449
- # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#38
2227
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#36
2450
2228
  def message(expect); end
2451
2229
  end
2452
2230
 
@@ -2499,7 +2277,7 @@ module RuboCop::Cop::RSpec::ExplicitHelper
2499
2277
  # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#182
2500
2278
  def predicate_matcher?(param0 = T.unsafe(nil)); end
2501
2279
 
2502
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#191
2280
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#195
2503
2281
  def predicate_matcher_block?(param0 = T.unsafe(nil)); end
2504
2282
 
2505
2283
  private
@@ -2510,7 +2288,7 @@ module RuboCop::Cop::RSpec::ExplicitHelper
2510
2288
  # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#139
2511
2289
  def check_explicit(node); end
2512
2290
 
2513
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#215
2291
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#219
2514
2292
  def corrector_explicit(corrector, to_node, actual, matcher, block_child); end
2515
2293
 
2516
2294
  # @return [Boolean]
@@ -2518,15 +2296,15 @@ module RuboCop::Cop::RSpec::ExplicitHelper
2518
2296
  # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#175
2519
2297
  def heredoc_argument?(matcher); end
2520
2298
 
2521
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#209
2299
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#213
2522
2300
  def message_explicit(matcher); end
2523
2301
 
2524
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#222
2302
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#226
2525
2303
  def move_predicate(corrector, actual, matcher, block_child); end
2526
2304
 
2527
2305
  # @return [Boolean]
2528
2306
  #
2529
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#200
2307
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#204
2530
2308
  def predicate_matcher_name?(name); end
2531
2309
 
2532
2310
  # @return [Boolean]
@@ -2534,10 +2312,10 @@ module RuboCop::Cop::RSpec::ExplicitHelper
2534
2312
  # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#162
2535
2313
  def replaceable_matcher?(matcher); end
2536
2314
 
2537
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#251
2315
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#255
2538
2316
  def replacement_matcher(node); end
2539
2317
 
2540
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#233
2318
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#237
2541
2319
  def to_predicate_method(matcher); end
2542
2320
 
2543
2321
  # @return [Boolean]
@@ -2552,156 +2330,6 @@ RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Ar
2552
2330
  # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#125
2553
2331
  RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String)
2554
2332
 
2555
- # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#6
2556
- module RuboCop::Cop::RSpec::FactoryBot; end
2557
-
2558
- # Always declare attribute values as blocks.
2559
- #
2560
- # @example
2561
- # # bad
2562
- # kind [:active, :rejected].sample
2563
- #
2564
- # # good
2565
- # kind { [:active, :rejected].sample }
2566
- #
2567
- # # bad
2568
- # closed_at 1.day.from_now
2569
- #
2570
- # # good
2571
- # closed_at { 1.day.from_now }
2572
- #
2573
- # # bad
2574
- # count 1
2575
- #
2576
- # # good
2577
- # count { 1 }
2578
- #
2579
- # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#30
2580
- RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically = RuboCop::Cop::FactoryBot::AttributeDefinedStatically
2581
-
2582
- # Use a consistent style for parentheses in factory bot calls.
2583
- #
2584
- # @example
2585
- #
2586
- # # bad
2587
- # create :user
2588
- # build(:user)
2589
- # create(:login)
2590
- # create :login
2591
- # @example `EnforcedStyle: require_parentheses` (default)
2592
- #
2593
- # # good
2594
- # create(:user)
2595
- # create(:user)
2596
- # create(:login)
2597
- # build(:login)
2598
- # @example `EnforcedStyle: omit_parentheses`
2599
- #
2600
- # # good
2601
- # create :user
2602
- # build :user
2603
- # create :login
2604
- # create :login
2605
- #
2606
- # # also good
2607
- # # when method name and first argument are not on same line
2608
- # create(
2609
- # :user
2610
- # )
2611
- # build(
2612
- # :user,
2613
- # name: 'foo'
2614
- # )
2615
- #
2616
- # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#45
2617
- RuboCop::Cop::RSpec::FactoryBot::ConsistentParenthesesStyle = RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle
2618
-
2619
- # Checks for create_list usage.
2620
- #
2621
- # This cop can be configured using the `EnforcedStyle` option
2622
- #
2623
- # @example `EnforcedStyle: create_list` (default)
2624
- # # bad
2625
- # 3.times { create :user }
2626
- #
2627
- # # good
2628
- # create_list :user, 3
2629
- #
2630
- # # bad
2631
- # 3.times { create :user, age: 18 }
2632
- #
2633
- # # good - index is used to alter the created models attributes
2634
- # 3.times { |n| create :user, age: n }
2635
- #
2636
- # # good - contains a method call, may return different values
2637
- # 3.times { create :user, age: rand }
2638
- # @example `EnforcedStyle: n_times`
2639
- # # bad
2640
- # create_list :user, 3
2641
- #
2642
- # # good
2643
- # 3.times { create :user }
2644
- #
2645
- # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#36
2646
- RuboCop::Cop::RSpec::FactoryBot::CreateList = RuboCop::Cop::FactoryBot::CreateList
2647
-
2648
- # Use string value when setting the class attribute explicitly.
2649
- #
2650
- # This cop would promote faster tests by lazy-loading of
2651
- # application files. Also, this could help you suppress potential
2652
- # bugs in combination with external libraries by avoiding a preload
2653
- # of application files from the factory files.
2654
- #
2655
- # @example
2656
- # # bad
2657
- # factory :foo, class: Foo do
2658
- # end
2659
- #
2660
- # # good
2661
- # factory :foo, class: 'Foo' do
2662
- # end
2663
- #
2664
- # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#25
2665
- RuboCop::Cop::RSpec::FactoryBot::FactoryClassName = RuboCop::Cop::FactoryBot::FactoryClassName
2666
-
2667
- # Checks for name style for argument of FactoryBot::Syntax::Methods.
2668
- #
2669
- # @example EnforcedStyle: symbol (default)
2670
- # # bad
2671
- # create('user')
2672
- # build "user", username: "NAME"
2673
- #
2674
- # # good
2675
- # create(:user)
2676
- # build :user, username: "NAME"
2677
- # @example EnforcedStyle: string
2678
- # # bad
2679
- # create(:user)
2680
- # build :user, username: "NAME"
2681
- #
2682
- # # good
2683
- # create('user')
2684
- # build "user", username: "NAME"
2685
- #
2686
- # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#29
2687
- RuboCop::Cop::RSpec::FactoryBot::FactoryNameStyle = RuboCop::Cop::FactoryBot::FactoryNameStyle
2688
-
2689
- # Use shorthands from `FactoryBot::Syntax::Methods` in your specs.
2690
- #
2691
- # @example
2692
- # # bad
2693
- # FactoryBot.create(:bar)
2694
- # FactoryBot.build(:bar)
2695
- # FactoryBot.attributes_for(:bar)
2696
- #
2697
- # # good
2698
- # create(:bar)
2699
- # build(:bar)
2700
- # attributes_for(:bar)
2701
- #
2702
- # source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#51
2703
- RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods = RuboCop::Cop::FactoryBot::SyntaxMethods
2704
-
2705
2333
  # Help methods for file.
2706
2334
  #
2707
2335
  # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#7
@@ -2710,137 +2338,6 @@ module RuboCop::Cop::RSpec::FileHelp
2710
2338
  def expanded_file_path; end
2711
2339
  end
2712
2340
 
2713
- # Checks that spec file paths are consistent and well-formed.
2714
- #
2715
- # This cop is deprecated.
2716
- # We plan to remove it in the next major version update to 3.0.
2717
- # The migration targets are `RSpec/SpecFilePathSuffix`
2718
- # and `RSpec/SpecFilePathFormat`.
2719
- # If you are using this cop, please plan for migration.
2720
- #
2721
- # By default, this checks that spec file paths are consistent with the
2722
- # test subject and enforces that it reflects the described
2723
- # class/module and its optionally called out method.
2724
- #
2725
- # With the configuration option `IgnoreMethods` the called out method will
2726
- # be ignored when determining the enforced path.
2727
- #
2728
- # With the configuration option `CustomTransform` modules or classes can
2729
- # be specified that should not as usual be transformed from CamelCase to
2730
- # snake_case (e.g. 'RuboCop' => 'rubocop' ).
2731
- #
2732
- # With the configuration option `SpecSuffixOnly` test files will only
2733
- # be checked to ensure they end in '_spec.rb'. This option disables
2734
- # checking for consistency in the test subject or test methods.
2735
- #
2736
- # @example
2737
- # # bad
2738
- # whatever_spec.rb # describe MyClass
2739
- #
2740
- # # bad
2741
- # my_class_spec.rb # describe MyClass, '#method'
2742
- #
2743
- # # good
2744
- # my_class_spec.rb # describe MyClass
2745
- #
2746
- # # good
2747
- # my_class_method_spec.rb # describe MyClass, '#method'
2748
- #
2749
- # # good
2750
- # my_class/method_spec.rb # describe MyClass, '#method'
2751
- # @example when configuration is `IgnoreMethods: true`
2752
- # # bad
2753
- # whatever_spec.rb # describe MyClass
2754
- #
2755
- # # good
2756
- # my_class_spec.rb # describe MyClass
2757
- #
2758
- # # good
2759
- # my_class_spec.rb # describe MyClass, '#method'
2760
- # @example when configuration is `SpecSuffixOnly: true`
2761
- # # good
2762
- # whatever_spec.rb # describe MyClass
2763
- #
2764
- # # good
2765
- # my_class_spec.rb # describe MyClass
2766
- #
2767
- # # good
2768
- # my_class_spec.rb # describe MyClass, '#method'
2769
- #
2770
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#65
2771
- class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base
2772
- include ::RuboCop::Cop::RSpec::TopLevelGroup
2773
- include ::RuboCop::Cop::RSpec::Namespace
2774
-
2775
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#72
2776
- def example_group(param0 = T.unsafe(nil)); end
2777
-
2778
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#81
2779
- def on_top_level_example_group(node); end
2780
-
2781
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#79
2782
- def routing_metadata?(param0); end
2783
-
2784
- private
2785
-
2786
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#142
2787
- def camel_to_snake_case(string); end
2788
-
2789
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#149
2790
- def custom_transform; end
2791
-
2792
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#91
2793
- def ensure_correct_file_path(send_node, example_group, arguments); end
2794
-
2795
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#173
2796
- def expanded_file_path; end
2797
-
2798
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#132
2799
- def expected_path(constant); end
2800
-
2801
- # @return [Boolean]
2802
- #
2803
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#157
2804
- def filename_ends_with?(pattern); end
2805
-
2806
- # @return [Boolean]
2807
- #
2808
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#153
2809
- def ignore_methods?; end
2810
-
2811
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#125
2812
- def name_pattern(method_name); end
2813
-
2814
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#107
2815
- def pattern_for(example_group, arguments); end
2816
-
2817
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#121
2818
- def pattern_for_spec_suffix_only; end
2819
-
2820
- # @return [Boolean]
2821
- #
2822
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#161
2823
- def relevant_rubocop_rspec_file?(_file); end
2824
-
2825
- # @return [Boolean]
2826
- #
2827
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#103
2828
- def routing_spec?(args); end
2829
-
2830
- # @return [Boolean]
2831
- #
2832
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#169
2833
- def routing_spec_path?; end
2834
-
2835
- # @return [Boolean]
2836
- #
2837
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#165
2838
- def spec_suffix_only?; end
2839
- end
2840
-
2841
- # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#69
2842
- RuboCop::Cop::RSpec::FilePath::MSG = T.let(T.unsafe(nil), String)
2843
-
2844
2341
  # Helps find the true end location of nodes which might contain heredocs.
2845
2342
  #
2846
2343
  # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#7
@@ -2875,12 +2372,6 @@ end
2875
2372
  # describe 'test' do; end
2876
2373
  #
2877
2374
  # # bad
2878
- # fdescribe 'test' do; end
2879
- #
2880
- # # good
2881
- # describe 'test' do; end
2882
- #
2883
- # # bad
2884
2375
  # shared_examples 'test', focus: true do; end
2885
2376
  #
2886
2377
  # # good
@@ -2895,38 +2386,38 @@ end
2895
2386
  # # bad (does not support autocorrection)
2896
2387
  # focus 'test' do; end
2897
2388
  #
2898
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#52
2389
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#46
2899
2390
  class RuboCop::Cop::RSpec::Focus < ::RuboCop::Cop::RSpec::Base
2900
2391
  include ::RuboCop::Cop::RangeHelp
2901
2392
  extend ::RuboCop::Cop::AutoCorrector
2902
2393
 
2903
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#59
2394
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#53
2904
2395
  def focusable_selector?(param0 = T.unsafe(nil)); end
2905
2396
 
2906
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#77
2397
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#71
2907
2398
  def focused_block?(param0 = T.unsafe(nil)); end
2908
2399
 
2909
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#71
2400
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#65
2910
2401
  def metadata(param0 = T.unsafe(nil)); end
2911
2402
 
2912
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#81
2403
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#75
2913
2404
  def on_send(node); end
2914
2405
 
2915
2406
  private
2916
2407
 
2917
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#110
2408
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#104
2918
2409
  def correct_send(corrector, focus); end
2919
2410
 
2920
2411
  # @yield [node]
2921
2412
  #
2922
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#97
2413
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#91
2923
2414
  def focus_metadata(node, &block); end
2924
2415
 
2925
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#103
2416
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#97
2926
2417
  def with_surrounding(focus); end
2927
2418
  end
2928
2419
 
2929
- # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#56
2420
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/focus.rb#50
2930
2421
  RuboCop::Cop::RSpec::Focus::MSG = T.let(T.unsafe(nil), String)
2931
2422
 
2932
2423
  # Checks the arguments passed to `before`, `around`, and `after`.
@@ -3381,31 +2872,31 @@ class RuboCop::Cop::RSpec::IndexedLet < ::RuboCop::Cop::RSpec::Base
3381
2872
 
3382
2873
  private
3383
2874
 
3384
- # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#104
2875
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#105
3385
2876
  def allowed_identifiers; end
3386
2877
 
3387
- # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#98
2878
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#99
3388
2879
  def cop_config_patterns_values; end
3389
2880
 
3390
- # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#78
2881
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#79
3391
2882
  def filter_indexed_lets(candidates); end
3392
2883
 
3393
2884
  # @return [Boolean]
3394
2885
  #
3395
- # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#87
2886
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#88
3396
2887
  def indexed_let?(node); end
3397
2888
 
3398
- # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#94
2889
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#95
3399
2890
  def let_name_stripped_index(node); end
3400
2891
  end
3401
2892
 
3402
- # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#76
2893
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#77
3403
2894
  RuboCop::Cop::RSpec::IndexedLet::INDEX_REGEX = T.let(T.unsafe(nil), Regexp)
3404
2895
 
3405
2896
  # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#51
3406
2897
  RuboCop::Cop::RSpec::IndexedLet::MSG = T.let(T.unsafe(nil), String)
3407
2898
 
3408
- # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#75
2899
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/indexed_let.rb#76
3409
2900
  RuboCop::Cop::RSpec::IndexedLet::SUFFIX_INDEX_REGEX = T.let(T.unsafe(nil), Regexp)
3410
2901
 
3411
2902
  # A helper for `inflected` style
@@ -4057,6 +3548,7 @@ end
4057
3548
  # Checks where `match_array` is used.
4058
3549
  #
4059
3550
  # This cop checks for the following:
3551
+ #
4060
3552
  # - Prefer `contain_exactly` when matching an array with values.
4061
3553
  # - Prefer `eq` when using `match_array` with an empty array literal.
4062
3554
  #
@@ -4073,26 +3565,26 @@ end
4073
3565
  # # good
4074
3566
  # it { is_expected.to match_array(%w(tremble in fear foolish mortals)) }
4075
3567
  #
4076
- # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#25
3568
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#26
4077
3569
  class RuboCop::Cop::RSpec::MatchArray < ::RuboCop::Cop::RSpec::Base
4078
3570
  extend ::RuboCop::Cop::AutoCorrector
4079
3571
 
4080
- # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#32
3572
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#33
4081
3573
  def match_array_with_empty_array?(param0 = T.unsafe(nil)); end
4082
3574
 
4083
- # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#36
3575
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#37
4084
3576
  def on_send(node); end
4085
3577
 
4086
3578
  private
4087
3579
 
4088
- # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#45
3580
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#46
4089
3581
  def check_populated_array(node); end
4090
3582
  end
4091
3583
 
4092
- # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#28
3584
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#29
4093
3585
  RuboCop::Cop::RSpec::MatchArray::MSG = T.let(T.unsafe(nil), String)
4094
3586
 
4095
- # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#29
3587
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/match_array.rb#30
4096
3588
  RuboCop::Cop::RSpec::MatchArray::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
4097
3589
 
4098
3590
  # Check that chains of messages are not being stubbed.
@@ -4299,59 +3791,59 @@ class RuboCop::Cop::RSpec::MetadataStyle < ::RuboCop::Cop::RSpec::Base
4299
3791
 
4300
3792
  private
4301
3793
 
4302
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#66
3794
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#61
4303
3795
  def autocorrect_pair(corrector, node); end
4304
3796
 
4305
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#71
3797
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#66
4306
3798
  def autocorrect_symbol(corrector, node); end
4307
3799
 
4308
3800
  # @return [Boolean]
4309
3801
  #
4310
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#78
3802
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#73
4311
3803
  def bad_metadata_pair?(node); end
4312
3804
 
4313
3805
  # @return [Boolean]
4314
3806
  #
4315
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#82
3807
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#77
4316
3808
  def bad_metadata_symbol?(_node); end
4317
3809
 
4318
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#86
3810
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#81
4319
3811
  def format_symbol_to_pair_source(node); end
4320
3812
 
4321
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#90
3813
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#85
4322
3814
  def insert_pair(corrector, node); end
4323
3815
 
4324
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#101
3816
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#96
4325
3817
  def insert_pair_as_last_argument(corrector, node); end
4326
3818
 
4327
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#110
3819
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#105
4328
3820
  def insert_pair_to_empty_hash_metadata(corrector, node, hash_node); end
4329
3821
 
4330
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#117
3822
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#112
4331
3823
  def insert_pair_to_non_empty_hash_metadata(corrector, node, hash_node); end
4332
3824
 
4333
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#124
3825
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#119
4334
3826
  def insert_symbol(corrector, node); end
4335
3827
 
4336
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#131
3828
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#126
4337
3829
  def message_for_style; end
4338
3830
 
4339
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#138
3831
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#133
4340
3832
  def on_metadata_pair(node); end
4341
3833
 
4342
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#146
3834
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#141
4343
3835
  def on_metadata_symbol(node); end
4344
3836
 
4345
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#154
3837
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#149
4346
3838
  def remove_pair(corrector, node); end
4347
3839
 
4348
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#164
3840
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#159
4349
3841
  def remove_pair_following(corrector, node); end
4350
3842
 
4351
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#176
3843
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#171
4352
3844
  def remove_pair_preceding(corrector, node); end
4353
3845
 
4354
- # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#188
3846
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#183
4355
3847
  def remove_symbol(corrector, node); end
4356
3848
  end
4357
3849
 
@@ -4381,6 +3873,43 @@ end
4381
3873
  # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#24
4382
3874
  RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String)
4383
3875
 
3876
+ # Checks if `.to`, `not_to` or `to_not` are used.
3877
+ #
3878
+ # The RSpec::Expectations::ExpectationTarget must use `to`, `not_to` or
3879
+ # `to_not` to run. Therefore, this cop checks if other methods are used.
3880
+ #
3881
+ # @example
3882
+ # # bad
3883
+ # expect(something).kind_of? Foo
3884
+ # is_expected == 42
3885
+ # expect{something}.eq? BarError
3886
+ #
3887
+ # # good
3888
+ # expect(something).to be_a Foo
3889
+ # is_expected.to eq 42
3890
+ # expect{something}.to raise_error BarError
3891
+ #
3892
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#22
3893
+ class RuboCop::Cop::RSpec::MissingExpectationTargetMethod < ::RuboCop::Cop::RSpec::Base
3894
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#27
3895
+ def expect?(param0 = T.unsafe(nil)); end
3896
+
3897
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#35
3898
+ def expect_block?(param0 = T.unsafe(nil)); end
3899
+
3900
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#40
3901
+ def expectation_without_runner?(param0 = T.unsafe(nil)); end
3902
+
3903
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#44
3904
+ def on_send(node); end
3905
+ end
3906
+
3907
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#23
3908
+ RuboCop::Cop::RSpec::MissingExpectationTargetMethod::MSG = T.let(T.unsafe(nil), String)
3909
+
3910
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#24
3911
+ RuboCop::Cop::RSpec::MissingExpectationTargetMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
3912
+
4384
3913
  # Checks for multiple top-level example groups.
4385
3914
  #
4386
3915
  # Multiple descriptions for the same class or module should either
@@ -4472,8 +4001,6 @@ RuboCop::Cop::RSpec::MultipleDescribes::MSG = T.let(T.unsafe(nil), String)
4472
4001
  #
4473
4002
  # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#69
4474
4003
  class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base
4475
- include ::RuboCop::Cop::ConfigurableMax
4476
-
4477
4004
  # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#78
4478
4005
  def aggregate_failures?(param0 = T.unsafe(nil), param1); end
4479
4006
 
@@ -4483,6 +4010,9 @@ class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base
4483
4010
  # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#86
4484
4011
  def expect?(param0 = T.unsafe(nil)); end
4485
4012
 
4013
+ # source://rubocop/1.70.0/lib/rubocop/cop/exclude_limit.rb#11
4014
+ def max=(value); end
4015
+
4486
4016
  # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#93
4487
4017
  def on_block(node); end
4488
4018
 
@@ -4506,14 +4036,14 @@ class RuboCop::Cop::RSpec::MultipleExpectations < ::RuboCop::Cop::RSpec::Base
4506
4036
  def max_expectations; end
4507
4037
  end
4508
4038
 
4509
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#74
4039
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#72
4510
4040
  RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc)
4511
4041
 
4512
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#72
4042
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#70
4513
4043
  RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String)
4514
4044
 
4515
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#75
4516
- RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc)
4045
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#73
4046
+ RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc)
4517
4047
 
4518
4048
  # Checks if example groups contain too many `let` and `subject` calls.
4519
4049
  #
@@ -4593,41 +4123,43 @@ RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc)
4593
4123
  #
4594
4124
  # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#84
4595
4125
  class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base
4596
- include ::RuboCop::Cop::ConfigurableMax
4597
4126
  include ::RuboCop::Cop::RSpec::Variable
4598
4127
 
4599
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#90
4128
+ # source://rubocop/1.70.0/lib/rubocop/cop/exclude_limit.rb#11
4129
+ def max=(value); end
4130
+
4131
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#91
4600
4132
  def on_block(node); end
4601
4133
 
4602
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#101
4134
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#102
4603
4135
  def on_new_investigation; end
4604
4136
 
4605
4137
  private
4606
4138
 
4607
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#110
4139
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#111
4608
4140
  def all_helpers(node); end
4609
4141
 
4610
4142
  # @return [Boolean]
4611
4143
  #
4612
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#142
4144
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#141
4613
4145
  def allow_subject?; end
4614
4146
 
4615
4147
  # Returns the value of attribute example_group_memoized_helpers.
4616
4148
  #
4617
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#108
4149
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#109
4618
4150
  def example_group_memoized_helpers; end
4619
4151
 
4620
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#117
4152
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#116
4621
4153
  def helpers(node); end
4622
4154
 
4623
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#138
4155
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#137
4624
4156
  def max; end
4625
4157
 
4626
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#128
4158
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#127
4627
4159
  def variable_nodes(node); end
4628
4160
  end
4629
4161
 
4630
- # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#88
4162
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#87
4631
4163
  RuboCop::Cop::RSpec::MultipleMemoizedHelpers::MSG = T.let(T.unsafe(nil), String)
4632
4164
 
4633
4165
  # Checks if an example group defines `subject` multiple times.
@@ -4796,18 +4328,18 @@ class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base
4796
4328
 
4797
4329
  # @return [Boolean]
4798
4330
  #
4799
- # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#120
4331
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#123
4800
4332
  def allow_explicit_subject?(node); end
4801
4333
 
4802
4334
  # @return [Boolean]
4803
4335
  #
4804
- # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#124
4336
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#127
4805
4337
  def always?; end
4806
4338
 
4807
- # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#114
4339
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#117
4808
4340
  def check_explicit_subject(node); end
4809
4341
 
4810
- # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#147
4342
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#150
4811
4343
  def find_subject(block_node); end
4812
4344
 
4813
4345
  # @return [Boolean]
@@ -4817,15 +4349,15 @@ class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base
4817
4349
 
4818
4350
  # @return [Boolean]
4819
4351
  #
4820
- # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#128
4352
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#131
4821
4353
  def named_only?(node); end
4822
4354
 
4823
- # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#139
4355
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#142
4824
4356
  def nearest_subject(node); end
4825
4357
 
4826
4358
  # @return [Boolean]
4827
4359
  #
4828
- # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#133
4360
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#136
4829
4361
  def subject_definition_is_named?(node); end
4830
4362
  end
4831
4363
 
@@ -4933,44 +4465,46 @@ end
4933
4465
  #
4934
4466
  # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#94
4935
4467
  class RuboCop::Cop::RSpec::NestedGroups < ::RuboCop::Cop::RSpec::Base
4936
- include ::RuboCop::Cop::ConfigurableMax
4937
4468
  include ::RuboCop::Cop::RSpec::TopLevelGroup
4938
4469
 
4939
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#106
4470
+ # source://rubocop/1.70.0/lib/rubocop/cop/exclude_limit.rb#11
4471
+ def max=(value); end
4472
+
4473
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#107
4940
4474
  def on_top_level_group(node); end
4941
4475
 
4942
4476
  private
4943
4477
 
4944
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#156
4478
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#157
4945
4479
  def allowed_groups; end
4946
4480
 
4947
4481
  # @return [Boolean]
4948
4482
  #
4949
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#133
4483
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#134
4950
4484
  def count_up_nesting?(node, example_group); end
4951
4485
 
4952
4486
  # @yield [node, nesting]
4953
4487
  #
4954
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#118
4488
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#119
4955
4489
  def find_nested_example_groups(node, nesting: T.unsafe(nil), &block); end
4956
4490
 
4957
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#143
4491
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#144
4958
4492
  def max_nesting; end
4959
4493
 
4960
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#147
4494
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#148
4961
4495
  def max_nesting_config; end
4962
4496
 
4963
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#139
4497
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#140
4964
4498
  def message(nesting); end
4965
4499
  end
4966
4500
 
4967
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#100
4501
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#99
4968
4502
  RuboCop::Cop::RSpec::NestedGroups::DEPRECATED_MAX_KEY = T.let(T.unsafe(nil), String)
4969
4503
 
4970
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#102
4504
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#101
4971
4505
  RuboCop::Cop::RSpec::NestedGroups::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
4972
4506
 
4973
- # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#98
4507
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/nested_groups.rb#97
4974
4508
  RuboCop::Cop::RSpec::NestedGroups::MSG = T.let(T.unsafe(nil), String)
4975
4509
 
4976
4510
  # Checks if an example contains any expectation.
@@ -5270,12 +4804,9 @@ class RuboCop::Cop::RSpec::PendingWithoutReason < ::RuboCop::Cop::RSpec::Base
5270
4804
  # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#82
5271
4805
  def metadata_without_reason?(param0 = T.unsafe(nil)); end
5272
4806
 
5273
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#102
4807
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#97
5274
4808
  def on_send(node); end
5275
4809
 
5276
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#98
5277
- def pending_step_without_reason?(param0 = T.unsafe(nil)); end
5278
-
5279
4810
  # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#93
5280
4811
  def skipped_by_example_group_method?(param0 = T.unsafe(nil)); end
5281
4812
 
@@ -5292,22 +4823,22 @@ class RuboCop::Cop::RSpec::PendingWithoutReason < ::RuboCop::Cop::RSpec::Base
5292
4823
 
5293
4824
  # @return [Boolean]
5294
4825
  #
5295
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#123
4826
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#118
5296
4827
  def block_node_example_group?(node); end
5297
4828
 
5298
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#135
4829
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#130
5299
4830
  def on_pending_by_metadata(node); end
5300
4831
 
5301
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#151
4832
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#146
5302
4833
  def on_skipped_by_example_group_method(node); end
5303
4834
 
5304
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#141
4835
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#136
5305
4836
  def on_skipped_by_example_method(node); end
5306
4837
 
5307
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#129
4838
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#124
5308
4839
  def on_skipped_by_in_example_method(node); end
5309
4840
 
5310
- # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#116
4841
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/pending_without_reason.rb#111
5311
4842
  def parent_node(node); end
5312
4843
  end
5313
4844
 
@@ -5360,232 +4891,23 @@ RuboCop::Cop::RSpec::PendingWithoutReason::MSG = T.let(T.unsafe(nil), String)
5360
4891
  # # good - the above code is rewritten to it by this cop
5361
4892
  # expect(foo.something?).to be_truthy
5362
4893
  #
5363
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#314
4894
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#318
5364
4895
  class RuboCop::Cop::RSpec::PredicateMatcher < ::RuboCop::Cop::RSpec::Base
5365
4896
  include ::RuboCop::Cop::ConfigurableEnforcedStyle
5366
4897
  include ::RuboCop::Cop::RSpec::InflectedHelper
5367
4898
  include ::RuboCop::Cop::RSpec::ExplicitHelper
5368
4899
  extend ::RuboCop::Cop::AutoCorrector
5369
4900
 
5370
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#331
4901
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#335
5371
4902
  def on_block(node); end
5372
4903
 
5373
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#322
4904
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#326
5374
4905
  def on_send(node); end
5375
4906
  end
5376
4907
 
5377
- # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#320
4908
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#324
5378
4909
  RuboCop::Cop::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
5379
4910
 
5380
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#6
5381
- module RuboCop::Cop::RSpec::Rails; end
5382
-
5383
- # Checks that tests use RSpec `before` hook over Rails `setup`
5384
- # method.
5385
- #
5386
- # @example
5387
- # # bad
5388
- # setup do
5389
- # allow(foo).to receive(:bar)
5390
- # end
5391
- #
5392
- # # good
5393
- # before do
5394
- # allow(foo).to receive(:bar)
5395
- # end
5396
- #
5397
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#23
5398
- RuboCop::Cop::RSpec::Rails::AvoidSetupHook = RuboCop::Cop::RSpecRails::AvoidSetupHook
5399
-
5400
- # Checks that tests use `have_http_status` instead of equality matchers.
5401
- #
5402
- # @example ResponseMethods: ['response', 'last_response'] (default)
5403
- # # bad
5404
- # expect(response.status).to be(200)
5405
- # expect(last_response.code).to eq("200")
5406
- #
5407
- # # good
5408
- # expect(response).to have_http_status(200)
5409
- # expect(last_response).to have_http_status(200)
5410
- # @example ResponseMethods: ['foo_response']
5411
- # # bad
5412
- # expect(foo_response.status).to be(200)
5413
- #
5414
- # # good
5415
- # expect(foo_response).to have_http_status(200)
5416
- #
5417
- # # also good
5418
- # expect(response).to have_http_status(200)
5419
- # expect(last_response).to have_http_status(200)
5420
- #
5421
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#31
5422
- RuboCop::Cop::RSpec::Rails::HaveHttpStatus = RuboCop::Cop::RSpecRails::HaveHttpStatus
5423
-
5424
- # Enforces use of symbolic or numeric value to describe HTTP status.
5425
- #
5426
- # This cop inspects only `have_http_status` calls.
5427
- # So, this cop does not check if a method starting with `be_*` is
5428
- # used when setting for `EnforcedStyle: symbolic` or
5429
- # `EnforcedStyle: numeric`.
5430
- #
5431
- # @example `EnforcedStyle: symbolic` (default)
5432
- # # bad
5433
- # it { is_expected.to have_http_status 200 }
5434
- # it { is_expected.to have_http_status 404 }
5435
- # it { is_expected.to have_http_status "403" }
5436
- #
5437
- # # good
5438
- # it { is_expected.to have_http_status :ok }
5439
- # it { is_expected.to have_http_status :not_found }
5440
- # it { is_expected.to have_http_status :forbidden }
5441
- # it { is_expected.to have_http_status :success }
5442
- # it { is_expected.to have_http_status :error }
5443
- # @example `EnforcedStyle: numeric`
5444
- # # bad
5445
- # it { is_expected.to have_http_status :ok }
5446
- # it { is_expected.to have_http_status :not_found }
5447
- # it { is_expected.to have_http_status "forbidden" }
5448
- #
5449
- # # good
5450
- # it { is_expected.to have_http_status 200 }
5451
- # it { is_expected.to have_http_status 404 }
5452
- # it { is_expected.to have_http_status 403 }
5453
- # it { is_expected.to have_http_status :success }
5454
- # it { is_expected.to have_http_status :error }
5455
- # @example `EnforcedStyle: be_status`
5456
- # # bad
5457
- # it { is_expected.to have_http_status :ok }
5458
- # it { is_expected.to have_http_status :not_found }
5459
- # it { is_expected.to have_http_status "forbidden" }
5460
- # it { is_expected.to have_http_status 200 }
5461
- # it { is_expected.to have_http_status 404 }
5462
- # it { is_expected.to have_http_status "403" }
5463
- #
5464
- # # good
5465
- # it { is_expected.to be_ok }
5466
- # it { is_expected.to be_not_found }
5467
- # it { is_expected.to have_http_status :success }
5468
- # it { is_expected.to have_http_status :error }
5469
- #
5470
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/http_status.rb#57
5471
- RuboCop::Cop::RSpec::Rails::HttpStatus = RuboCop::Cop::RSpecRails::HttpStatus
5472
-
5473
- # Identifies redundant spec type.
5474
- #
5475
- # After setting up rspec-rails, you will have enabled
5476
- # `config.infer_spec_type_from_file_location!` by default in
5477
- # spec/rails_helper.rb. This cop works in conjunction with
5478
- # this config.
5479
- # If you disable this config, disable this cop as well.
5480
- #
5481
- # @example
5482
- # # bad
5483
- # # spec/models/user_spec.rb
5484
- # RSpec.describe User, type: :model do
5485
- # end
5486
- #
5487
- # # good
5488
- # # spec/models/user_spec.rb
5489
- # RSpec.describe User do
5490
- # end
5491
- #
5492
- # # good
5493
- # # spec/models/user_spec.rb
5494
- # RSpec.describe User, type: :common do
5495
- # end
5496
- # @example `Inferences` configuration
5497
- # # .rubocop.yml
5498
- # # RSpec/Rails/InferredSpecType:
5499
- # # Inferences:
5500
- # # services: service
5501
- #
5502
- # # bad
5503
- # # spec/services/user_spec.rb
5504
- # RSpec.describe User, type: :service do
5505
- # end
5506
- #
5507
- # # good
5508
- # # spec/services/user_spec.rb
5509
- # RSpec.describe User do
5510
- # end
5511
- #
5512
- # # good
5513
- # # spec/services/user_spec.rb
5514
- # RSpec.describe User, type: :common do
5515
- # end
5516
- #
5517
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#58
5518
- RuboCop::Cop::RSpec::Rails::InferredSpecType = RuboCop::Cop::RSpecRails::InferredSpecType
5519
-
5520
- # Check if using Minitest-like matchers.
5521
- #
5522
- # Check the use of minitest-like matchers
5523
- # starting with `assert_` or `refute_`.
5524
- #
5525
- # @example
5526
- # # bad
5527
- # assert_equal(a, b)
5528
- # assert_equal a, b, "must be equal"
5529
- # assert_not_includes a, b
5530
- # refute_equal(a, b)
5531
- # assert_nil a
5532
- # refute_empty(b)
5533
- # assert_true(a)
5534
- # assert_false(a)
5535
- #
5536
- # # good
5537
- # expect(b).to eq(a)
5538
- # expect(b).to(eq(a), "must be equal")
5539
- # expect(a).not_to include(b)
5540
- # expect(b).not_to eq(a)
5541
- # expect(a).to eq(nil)
5542
- # expect(a).not_to be_empty
5543
- # expect(a).to be(true)
5544
- # expect(a).to be(false)
5545
- #
5546
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/minitest_assertions.rb#35
5547
- RuboCop::Cop::RSpec::Rails::MinitestAssertions = RuboCop::Cop::RSpecRails::MinitestAssertions
5548
-
5549
- # Enforces use of `be_invalid` or `not_to` for negated be_valid.
5550
- #
5551
- # @example EnforcedStyle: not_to (default)
5552
- # # bad
5553
- # expect(foo).to be_invalid
5554
- #
5555
- # # good
5556
- # expect(foo).not_to be_valid
5557
- #
5558
- # # good (with method chain)
5559
- # expect(foo).to be_invalid.and be_odd
5560
- # @example EnforcedStyle: be_invalid
5561
- # # bad
5562
- # expect(foo).not_to be_valid
5563
- #
5564
- # # good
5565
- # expect(foo).to be_invalid
5566
- #
5567
- # # good (with method chain)
5568
- # expect(foo).to be_invalid.or be_even
5569
- #
5570
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/negation_be_valid.rb#35
5571
- RuboCop::Cop::RSpec::Rails::NegationBeValid = RuboCop::Cop::RSpecRails::NegationBeValid
5572
-
5573
- # Prefer to travel in `before` rather than `around`.
5574
- #
5575
- # @example
5576
- # # bad
5577
- # around do |example|
5578
- # freeze_time do
5579
- # example.run
5580
- # end
5581
- # end
5582
- #
5583
- # # good
5584
- # before { freeze_time }
5585
- #
5586
- # source://rubocop-rspec//lib/rubocop/cop/rspec/rails/travel_around.rb#30
5587
- RuboCop::Cop::RSpec::Rails::TravelAround = RuboCop::Cop::RSpecRails::TravelAround
5588
-
5589
4911
  # Check for `once` and `twice` receive counts matchers usage.
5590
4912
  #
5591
4913
  # @example
@@ -5856,17 +5178,17 @@ RuboCop::Cop::RSpec::RedundantPredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsaf
5856
5178
  class RuboCop::Cop::RSpec::RemoveConst < ::RuboCop::Cop::RSpec::Base
5857
5179
  # Check for offenses
5858
5180
  #
5859
- # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#32
5181
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#31
5860
5182
  def on_send(node); end
5861
5183
 
5862
- # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#27
5184
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#26
5863
5185
  def remove_const(param0 = T.unsafe(nil)); end
5864
5186
  end
5865
5187
 
5866
- # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#22
5188
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#21
5867
5189
  RuboCop::Cop::RSpec::RemoveConst::MSG = T.let(T.unsafe(nil), String)
5868
5190
 
5869
- # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#24
5191
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#23
5870
5192
  RuboCop::Cop::RSpec::RemoveConst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
5871
5193
 
5872
5194
  # Check for repeated description strings in example groups.
@@ -6469,28 +5791,29 @@ RuboCop::Cop::RSpec::ScatteredLet::MSG = T.let(T.unsafe(nil), String)
6469
5791
  #
6470
5792
  # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#25
6471
5793
  class RuboCop::Cop::RSpec::ScatteredSetup < ::RuboCop::Cop::RSpec::Base
5794
+ include ::RuboCop::Cop::RSpec::FinalEndLocation
6472
5795
  include ::RuboCop::Cop::RangeHelp
6473
5796
  extend ::RuboCop::Cop::AutoCorrector
6474
5797
 
6475
- # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#32
5798
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#33
6476
5799
  def on_block(node); end
6477
5800
 
6478
5801
  private
6479
5802
 
6480
- # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#75
5803
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#76
6481
5804
  def autocorrect(corrector, first_occurrence, occurrence); end
6482
5805
 
6483
- # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#60
5806
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#61
6484
5807
  def lines_msg(numbers); end
6485
5808
 
6486
- # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#68
5809
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#69
6487
5810
  def message(occurrences, occurrence); end
6488
5811
 
6489
- # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#47
5812
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#48
6490
5813
  def repeated_hooks(node); end
6491
5814
  end
6492
5815
 
6493
- # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#29
5816
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/scattered_setup.rb#30
6494
5817
  RuboCop::Cop::RSpec::ScatteredSetup::MSG = T.let(T.unsafe(nil), String)
6495
5818
 
6496
5819
  # Checks for proper shared_context and shared_examples usage.
@@ -6705,16 +6028,16 @@ class RuboCop::Cop::RSpec::SingleArgumentMessageChain < ::RuboCop::Cop::RSpec::B
6705
6028
  # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#49
6706
6029
  def autocorrect(corrector, node, method, arg); end
6707
6030
 
6708
- # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#77
6031
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#76
6709
6032
  def autocorrect_array_arg(corrector, arg); end
6710
6033
 
6711
6034
  # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#69
6712
6035
  def autocorrect_hash_arg(corrector, arg); end
6713
6036
 
6714
- # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#83
6037
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#82
6715
6038
  def key_to_arg(node); end
6716
6039
 
6717
- # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#87
6040
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/single_argument_message_chain.rb#86
6718
6041
  def replacement(method); end
6719
6042
 
6720
6043
  # @return [Boolean]
@@ -6801,6 +6124,8 @@ end
6801
6124
 
6802
6125
  # Sort RSpec metadata alphabetically.
6803
6126
  #
6127
+ # Only the trailing metadata is sorted.
6128
+ #
6804
6129
  # @example
6805
6130
  # # bad
6806
6131
  # describe 'Something', :b, :a
@@ -6812,36 +6137,51 @@ end
6812
6137
  # context 'Something', baz: true, foo: 'bar'
6813
6138
  # it 'works', :a, :b, baz: true, foo: 'bar'
6814
6139
  #
6815
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#19
6140
+ # # good, trailing metadata is sorted
6141
+ # describe 'Something', 'description', :a, :b, :z
6142
+ # context 'Something', :z, variable, :a, :b
6143
+ #
6144
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#24
6816
6145
  class RuboCop::Cop::RSpec::SortMetadata < ::RuboCop::Cop::RSpec::Base
6817
6146
  include ::RuboCop::Cop::RSpec::Metadata
6818
6147
  include ::RuboCop::Cop::RangeHelp
6819
6148
  extend ::RuboCop::Cop::AutoCorrector
6820
6149
 
6821
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#26
6822
- def on_metadata(symbols, hash); end
6150
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#32
6151
+ def match_ambiguous_trailing_metadata?(param0 = T.unsafe(nil)); end
6152
+
6153
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#36
6154
+ def on_metadata(args, hash); end
6823
6155
 
6824
6156
  private
6825
6157
 
6826
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#38
6158
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#58
6827
6159
  def crime_scene(symbols, pairs); end
6828
6160
 
6829
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#47
6161
+ # @return [Boolean]
6162
+ #
6163
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#54
6164
+ def last_arg_could_be_a_hash?(args); end
6165
+
6166
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#67
6830
6167
  def replacement(symbols, pairs); end
6831
6168
 
6832
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#55
6169
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#75
6833
6170
  def sort_pairs(pairs); end
6834
6171
 
6835
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#59
6172
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#79
6836
6173
  def sort_symbols(symbols); end
6837
6174
 
6838
6175
  # @return [Boolean]
6839
6176
  #
6840
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#51
6177
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#71
6841
6178
  def sorted?(symbols, pairs); end
6179
+
6180
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#49
6181
+ def trailing_symbols(args); end
6842
6182
  end
6843
6183
 
6844
- # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#24
6184
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/sort_metadata.rb#29
6845
6185
  RuboCop::Cop::RSpec::SortMetadata::MSG = T.let(T.unsafe(nil), String)
6846
6186
 
6847
6187
  # Checks that spec file paths are consistent and well-formed.
@@ -6976,7 +6316,7 @@ RuboCop::Cop::RSpec::SpecFilePathSuffix::MSG = T.let(T.unsafe(nil), String)
6976
6316
  #
6977
6317
  # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#16
6978
6318
  class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
6979
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#42
6319
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#43
6980
6320
  def configured_response?(param0 = T.unsafe(nil)); end
6981
6321
 
6982
6322
  # Match expectation
@@ -6990,7 +6330,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
6990
6330
  # @param node [RuboCop::AST::Node]
6991
6331
  # @yield [RuboCop::AST::Node] expectation, method name, matcher
6992
6332
  #
6993
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#61
6333
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#62
6994
6334
  def expectation(param0 = T.unsafe(nil)); end
6995
6335
 
6996
6336
  # Match matcher with a configured response in block-pass
@@ -7004,7 +6344,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
7004
6344
  # @param node [RuboCop::AST::Node]
7005
6345
  # @yield [RuboCop::AST::Node] matcher
7006
6346
  #
7007
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#129
6347
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#130
7008
6348
  def matcher_with_blockpass(param0 = T.unsafe(nil)); end
7009
6349
 
7010
6350
  # Match matcher with a configured response
@@ -7018,7 +6358,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
7018
6358
  # @param node [RuboCop::AST::Node]
7019
6359
  # @yield [RuboCop::AST::Node] matcher
7020
6360
  #
7021
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#81
6361
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#82
7022
6362
  def matcher_with_configured_response(param0 = T.unsafe(nil)); end
7023
6363
 
7024
6364
  # Match matcher with a configured response defined as a hash
@@ -7030,7 +6370,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
7030
6370
  # @param node [RuboCop::AST::Node]
7031
6371
  # @yield [RuboCop::AST::Node] matcher
7032
6372
  #
7033
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#108
6373
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#109
7034
6374
  def matcher_with_hash(param0 = T.unsafe(nil)); end
7035
6375
 
7036
6376
  # Match matcher with a return block
@@ -7040,7 +6380,7 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
7040
6380
  # @param node [RuboCop::AST::Node]
7041
6381
  # @yield [RuboCop::AST::Node] matcher
7042
6382
  #
7043
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#93
6383
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#94
7044
6384
  def matcher_with_return_block(param0 = T.unsafe(nil)); end
7045
6385
 
7046
6386
  # Match message expectation matcher
@@ -7054,28 +6394,28 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base
7054
6394
  # @param node [RuboCop::AST::Node]
7055
6395
  # @return [Array<RuboCop::AST::Node>] matching nodes
7056
6396
  #
7057
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#34
6397
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#35
7058
6398
  def message_expectation?(param0 = T.unsafe(nil)); end
7059
6399
 
7060
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#138
6400
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#137
7061
6401
  def on_send(node); end
7062
6402
 
7063
6403
  private
7064
6404
 
7065
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#155
6405
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#156
7066
6406
  def msg(method_name); end
7067
6407
 
7068
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#144
6408
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#145
7069
6409
  def on_expectation(expectation, method_name, matcher); end
7070
6410
 
7071
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#161
6411
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#164
7072
6412
  def replacement(method_name); end
7073
6413
  end
7074
6414
 
7075
6415
  # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#17
7076
6416
  RuboCop::Cop::RSpec::StubbedMock::MSG = T.let(T.unsafe(nil), String)
7077
6417
 
7078
- # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#136
6418
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#19
7079
6419
  RuboCop::Cop::RSpec::StubbedMock::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
7080
6420
 
7081
6421
  # Ensure that subject is defined using subject helper.
@@ -7217,34 +6557,39 @@ RuboCop::Cop::RSpec::SubjectStub::MSG = T.let(T.unsafe(nil), String)
7217
6557
  module RuboCop::Cop::RSpec::TopLevelGroup
7218
6558
  extend ::RuboCop::AST::NodePattern::Macros
7219
6559
 
7220
- # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#10
6560
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#14
7221
6561
  def on_new_investigation; end
7222
6562
 
7223
- # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#19
6563
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#23
7224
6564
  def top_level_groups; end
7225
6565
 
7226
6566
  private
7227
6567
 
7228
6568
  # Dummy methods to be overridden in the consumer
7229
6569
  #
7230
- # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#27
6570
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#31
7231
6571
  def on_top_level_example_group(_node); end
7232
6572
 
7233
- # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#29
6573
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#33
7234
6574
  def on_top_level_group(_node); end
7235
6575
 
7236
- # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#48
6576
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#55
7237
6577
  def root_node; end
7238
6578
 
6579
+ # @deprecated All callers of this method have been removed.
6580
+ # @private
7239
6581
  # @return [Boolean]
7240
6582
  #
7241
- # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#31
6583
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#37
7242
6584
  def top_level_group?(node); end
7243
6585
 
7244
- # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#35
6586
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#42
7245
6587
  def top_level_nodes(node); end
7246
6588
  end
7247
6589
 
6590
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/top_level_group.rb#10
6591
+ RuboCop::Cop::RSpec::TopLevelGroup::DEPRECATED_MODULE_METHOD_WARNING = T.let(T.unsafe(nil), String)
6592
+
7248
6593
  # Description should be descriptive.
7249
6594
  #
7250
6595
  # If example group or example contains only `execute string`, numbers
@@ -7334,29 +6679,27 @@ RuboCop::Cop::RSpec::UndescriptiveLiteralsDescription::MSG = T.let(T.unsafe(nil)
7334
6679
  #
7335
6680
  # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#33
7336
6681
  class RuboCop::Cop::RSpec::UnspecifiedException < ::RuboCop::Cop::RSpec::Base
7337
- # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#38
7338
- def empty_raise_error_or_exception(param0 = T.unsafe(nil)); end
6682
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#42
6683
+ def expect_to?(param0 = T.unsafe(nil)); end
7339
6684
 
7340
- # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#47
6685
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#46
7341
6686
  def on_send(node); end
7342
6687
 
7343
6688
  private
7344
6689
 
7345
6690
  # @return [Boolean]
7346
6691
  #
7347
- # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#59
7348
- def block_with_args?(node); end
7349
-
7350
- # @return [Boolean]
7351
- #
7352
- # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#55
6692
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#54
7353
6693
  def empty_exception_matcher?(node); end
6694
+
6695
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#64
6696
+ def find_expect_to(node); end
7354
6697
  end
7355
6698
 
7356
6699
  # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#34
7357
6700
  RuboCop::Cop::RSpec::UnspecifiedException::MSG = T.let(T.unsafe(nil), String)
7358
6701
 
7359
- # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#35
6702
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/unspecified_exception.rb#36
7360
6703
  RuboCop::Cop::RSpec::UnspecifiedException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
7361
6704
 
7362
6705
  # Helps check offenses with variable definitions
@@ -7483,12 +6826,7 @@ RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String)
7483
6826
 
7484
6827
  # Checks for consistent verified double reference style.
7485
6828
  #
7486
- # Only investigates references that are one of the supported styles.
7487
- #
7488
- # This cop can be configured in your configuration using the
7489
- # `EnforcedStyle` option and supports `--auto-gen-config`.
7490
- #
7491
- # @example `EnforcedStyle: constant` (default)
6829
+ # @example
7492
6830
  # # bad
7493
6831
  # let(:foo) do
7494
6832
  # instance_double('ClassName', method_name: 'returned_value')
@@ -7498,17 +6836,7 @@ RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String)
7498
6836
  # let(:foo) do
7499
6837
  # instance_double(ClassName, method_name: 'returned_value')
7500
6838
  # end
7501
- # @example `EnforcedStyle: string`
7502
- # # bad
7503
- # let(:foo) do
7504
- # instance_double(ClassName, method_name: 'returned_value')
7505
- # end
7506
- #
7507
- # # good
7508
- # let(:foo) do
7509
- # instance_double('ClassName', method_name: 'returned_value')
7510
- # end
7511
- # @example Reference is not in the supported style list. No enforcement
6839
+ # @example Reference is any dynamic variable. No enforcement
7512
6840
  #
7513
6841
  # # good
7514
6842
  # let(:foo) do
@@ -7516,35 +6844,24 @@ RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String)
7516
6844
  # end
7517
6845
  # @see https://rspec.info/features/3-12/rspec-mocks/verifying-doubles
7518
6846
  #
7519
- # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#43
6847
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#32
7520
6848
  class RuboCop::Cop::RSpec::VerifiedDoubleReference < ::RuboCop::Cop::RSpec::Base
7521
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
7522
6849
  extend ::RuboCop::Cop::AutoCorrector
7523
6850
 
7524
- # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#74
7525
- def on_send(node); end
7526
-
7527
6851
  # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#66
7528
- def verified_double(param0 = T.unsafe(nil)); end
7529
-
7530
- private
6852
+ def autocorrect(corrector, node); end
7531
6853
 
7532
- # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#101
7533
- def correct_style(offense); end
6854
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#58
6855
+ def on_send(node); end
7534
6856
 
7535
- # @return [Boolean]
7536
- #
7537
- # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#92
7538
- def opposing_style?(class_reference); end
6857
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#50
6858
+ def verified_double(param0 = T.unsafe(nil)); end
7539
6859
  end
7540
6860
 
7541
- # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#47
6861
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#35
7542
6862
  RuboCop::Cop::RSpec::VerifiedDoubleReference::MSG = T.let(T.unsafe(nil), String)
7543
6863
 
7544
- # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#60
7545
- RuboCop::Cop::RSpec::VerifiedDoubleReference::REFERENCE_TYPE_STYLES = T.let(T.unsafe(nil), Hash)
7546
-
7547
- # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#49
6864
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/verified_double_reference.rb#38
7548
6865
  RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
7549
6866
 
7550
6867
  # Prefer using verifying doubles over normal doubles.
@@ -7605,7 +6922,7 @@ class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base
7605
6922
  # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#26
7606
6923
  def expect_block?(param0 = T.unsafe(nil)); end
7607
6924
 
7608
- # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#36
6925
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#37
7609
6926
  def on_block(node); end
7610
6927
 
7611
6928
  # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#30
@@ -7613,12 +6930,17 @@ class RuboCop::Cop::RSpec::VoidExpect < ::RuboCop::Cop::RSpec::Base
7613
6930
 
7614
6931
  private
7615
6932
 
7616
- # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#44
6933
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#46
7617
6934
  def check_expect(node); end
7618
6935
 
7619
6936
  # @return [Boolean]
7620
6937
  #
7621
- # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#50
6938
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#59
6939
+ def inside_example?(node); end
6940
+
6941
+ # @return [Boolean]
6942
+ #
6943
+ # source://rubocop-rspec//lib/rubocop/cop/rspec/void_expect.rb#52
7622
6944
  def void?(expect); end
7623
6945
  end
7624
6946
 
@@ -7677,24 +6999,6 @@ end
7677
6999
  # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#19
7678
7000
  RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String)
7679
7001
 
7680
- module RuboCop::Cop::Style; end
7681
-
7682
- class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base
7683
- include ::RuboCop::Cop::ConfigurableEnforcedStyle
7684
- include ::RuboCop::Cop::RangeHelp
7685
-
7686
- # source://rubocop/1.64.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
7687
- def on_csend(node); end
7688
-
7689
- # source://rubocop/1.64.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
7690
- def on_send(node); end
7691
-
7692
- class << self
7693
- # source://rubocop-rspec//lib/rubocop-rspec.rb#63
7694
- def autocorrect_incompatible_with; end
7695
- end
7696
- end
7697
-
7698
7002
  # RuboCop RSpec project namespace
7699
7003
  #
7700
7004
  # source://rubocop-rspec//lib/rubocop/rspec.rb#5
@@ -7756,34 +7060,33 @@ RuboCop::RSpec::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
7756
7060
  class RuboCop::RSpec::Concept
7757
7061
  include ::RuboCop::RSpec::Language
7758
7062
  extend ::RuboCop::AST::NodePattern::Macros
7759
- extend ::RuboCop::RSpec::Language::NodePattern
7760
7063
 
7761
7064
  # @return [Concept] a new instance of Concept
7762
7065
  #
7763
- # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#11
7066
+ # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#10
7764
7067
  def initialize(node); end
7765
7068
 
7766
7069
  # @return [Boolean]
7767
7070
  #
7768
- # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#15
7071
+ # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14
7769
7072
  def ==(other); end
7770
7073
 
7771
7074
  # @return [Boolean]
7772
7075
  #
7773
- # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#15
7076
+ # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14
7774
7077
  def eql?(other); end
7775
7078
 
7776
- # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#21
7079
+ # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#20
7777
7080
  def hash; end
7778
7081
 
7779
- # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#25
7082
+ # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#24
7780
7083
  def to_node; end
7781
7084
 
7782
7085
  protected
7783
7086
 
7784
7087
  # Returns the value of attribute node.
7785
7088
  #
7786
- # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#31
7089
+ # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#30
7787
7090
  def node; end
7788
7091
  end
7789
7092
 
@@ -7969,218 +7272,183 @@ end
7969
7272
  # In addition to providing useful matchers, this class is responsible for
7970
7273
  # using the configured aliases.
7971
7274
  #
7972
- # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#5
7275
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#14
7973
7276
  module RuboCop::RSpec::Language
7974
7277
  extend ::RuboCop::AST::NodePattern::Macros
7975
- extend ::RuboCop::RSpec::Language::NodePattern
7976
7278
 
7977
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#50
7279
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#49
7978
7280
  def example?(param0 = T.unsafe(nil)); end
7979
7281
 
7980
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#29
7282
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#28
7981
7283
  def example_group?(param0 = T.unsafe(nil)); end
7982
7284
 
7983
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#45
7285
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#44
7984
7286
  def example_group_with_body?(param0 = T.unsafe(nil)); end
7985
7287
 
7986
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#26
7288
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#25
7987
7289
  def explicit_rspec?(param0 = T.unsafe(nil)); end
7988
7290
 
7989
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#53
7291
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#52
7990
7292
  def hook?(param0 = T.unsafe(nil)); end
7991
7293
 
7992
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#69
7294
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#68
7993
7295
  def include?(param0 = T.unsafe(nil)); end
7994
7296
 
7995
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#61
7297
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#60
7996
7298
  def let?(param0 = T.unsafe(nil)); end
7997
7299
 
7998
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#23
7300
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#22
7999
7301
  def rspec?(param0 = T.unsafe(nil)); end
8000
7302
 
8001
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#34
7303
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#33
8002
7304
  def shared_group?(param0 = T.unsafe(nil)); end
8003
7305
 
8004
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#38
7306
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#37
8005
7307
  def spec_group?(param0 = T.unsafe(nil)); end
8006
7308
 
8007
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#77
7309
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#76
8008
7310
  def subject?(param0 = T.unsafe(nil)); end
8009
7311
 
8010
7312
  class << self
8011
7313
  # Returns the value of attribute config.
8012
7314
  #
8013
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#19
7315
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18
8014
7316
  def config; end
8015
7317
 
8016
7318
  # Sets the attribute config
8017
7319
  #
8018
7320
  # @param value the value to set the attribute config to.
8019
7321
  #
8020
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#19
7322
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18
8021
7323
  def config=(_arg0); end
8022
7324
  end
8023
7325
  end
8024
7326
 
8025
7327
  # This is used in Dialect and DescribeClass cops to detect RSpec blocks.
8026
7328
  #
8027
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#205
7329
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#204
8028
7330
  module RuboCop::RSpec::Language::ALL
8029
7331
  class << self
8030
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#206
7332
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#205
8031
7333
  def all(element); end
8032
7334
  end
8033
7335
  end
8034
7336
 
8035
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#79
7337
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#78
8036
7338
  module RuboCop::RSpec::Language::ExampleGroups
8037
7339
  class << self
8038
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#81
7340
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#80
8039
7341
  def all(element); end
8040
7342
 
8041
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#91
7343
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#90
8042
7344
  def focused(element); end
8043
7345
 
8044
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#87
7346
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#86
8045
7347
  def regular(element); end
8046
7348
 
8047
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#95
7349
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#94
8048
7350
  def skipped(element); end
8049
7351
  end
8050
7352
  end
8051
7353
 
8052
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#101
7354
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#100
8053
7355
  module RuboCop::RSpec::Language::Examples
8054
7356
  class << self
8055
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#103
7357
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#102
8056
7358
  def all(element); end
8057
7359
 
8058
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#114
7360
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#113
8059
7361
  def focused(element); end
8060
7362
 
8061
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#122
7363
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#121
8062
7364
  def pending(element); end
8063
7365
 
8064
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#110
7366
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#109
8065
7367
  def regular(element); end
8066
7368
 
8067
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#118
7369
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#117
8068
7370
  def skipped(element); end
8069
7371
  end
8070
7372
  end
8071
7373
 
8072
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#128
7374
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#127
8073
7375
  module RuboCop::RSpec::Language::Expectations
8074
7376
  class << self
8075
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#129
7377
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#128
8076
7378
  def all(element); end
8077
7379
  end
8078
7380
  end
8079
7381
 
8080
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#134
7382
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#133
8081
7383
  module RuboCop::RSpec::Language::Helpers
8082
7384
  class << self
8083
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#135
7385
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#134
8084
7386
  def all(element); end
8085
7387
  end
8086
7388
  end
8087
7389
 
8088
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#146
7390
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#145
8089
7391
  module RuboCop::RSpec::Language::HookScopes
8090
7392
  class << self
8091
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#148
7393
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#147
8092
7394
  def all(element); end
8093
7395
  end
8094
7396
  end
8095
7397
 
8096
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#147
7398
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#146
8097
7399
  RuboCop::RSpec::Language::HookScopes::ALL = T.let(T.unsafe(nil), Array)
8098
7400
 
8099
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#140
7401
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#139
8100
7402
  module RuboCop::RSpec::Language::Hooks
8101
7403
  class << self
8102
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#141
7404
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#140
8103
7405
  def all(element); end
8104
7406
  end
8105
7407
  end
8106
7408
 
8107
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#153
7409
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#152
8108
7410
  module RuboCop::RSpec::Language::Includes
8109
7411
  class << self
8110
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#155
7412
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#154
8111
7413
  def all(element); end
8112
7414
 
8113
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#164
7415
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#163
8114
7416
  def context(element); end
8115
7417
 
8116
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#160
7418
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#159
8117
7419
  def examples(element); end
8118
7420
  end
8119
7421
  end
8120
7422
 
8121
- # Helper methods to detect RSpec DSL used with send and block
8122
- #
8123
- # @deprecated Prefer using Node Pattern directly
8124
- # Use `'(block (send nil? #Example.all ...) ...)'` instead of
8125
- # `block_pattern('#Example.all')`
8126
- #
8127
- # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#10
8128
- module RuboCop::RSpec::Language::NodePattern
8129
- # @deprecated Prefer using Node Pattern directly
8130
- #
8131
- # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#30
8132
- def block_or_numblock_pattern(string); end
8133
-
8134
- # @deprecated Prefer using Node Pattern directly
8135
- #
8136
- # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#18
8137
- def block_pattern(string); end
8138
-
8139
- # @deprecated Prefer using Node Pattern directly
8140
- #
8141
- # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#24
8142
- def numblock_pattern(string); end
8143
-
8144
- # @deprecated Prefer using Node Pattern directly
8145
- #
8146
- # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#12
8147
- def send_pattern(string); end
8148
-
8149
- private
8150
-
8151
- # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#37
8152
- def deprecation_warning(method); end
8153
- end
8154
-
8155
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#170
7423
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#169
8156
7424
  module RuboCop::RSpec::Language::Runners
8157
7425
  class << self
8158
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#173
7426
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#172
8159
7427
  def all(element = T.unsafe(nil)); end
8160
7428
  end
8161
7429
  end
8162
7430
 
8163
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#171
7431
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#170
8164
7432
  RuboCop::RSpec::Language::Runners::ALL = T.let(T.unsafe(nil), Array)
8165
7433
 
8166
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#181
7434
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#180
8167
7435
  module RuboCop::RSpec::Language::SharedGroups
8168
7436
  class << self
8169
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#183
7437
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#182
8170
7438
  def all(element); end
8171
7439
 
8172
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#192
7440
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#191
8173
7441
  def context(element); end
8174
7442
 
8175
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#188
7443
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#187
8176
7444
  def examples(element); end
8177
7445
  end
8178
7446
  end
8179
7447
 
8180
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#198
7448
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#197
8181
7449
  module RuboCop::RSpec::Language::Subjects
8182
7450
  class << self
8183
- # source://rubocop-rspec//lib/rubocop/rspec/language.rb#199
7451
+ # source://rubocop-rspec//lib/rubocop/rspec/language.rb#198
8184
7452
  def all(element); end
8185
7453
  end
8186
7454
  end