From 4ffc69764ad3614f3a36bf1168e7df536ee25931 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 20 Apr 2022 12:40:31 +0000 Subject: [PATCH] Update RBI files for rubocop-rspec. --- ...pec@2.9.0.rbi => rubocop-rspec@2.10.0.rbi} | 66 +++++++++---------- 1 file changed, 31 insertions(+), 35 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-rspec@2.9.0.rbi => rubocop-rspec@2.10.0.rbi} (98%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.9.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.10.0.rbi similarity index 98% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.9.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.10.0.rbi index fdd093326d..a50fee6673 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.9.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.10.0.rbi @@ -6,39 +6,6 @@ module RuboCop; end module RuboCop::Cop; end -module RuboCop::Cop::Layout; end - -class RuboCop::Cop::Layout::ExtraSpacing < ::RuboCop::Cop::Base - include ::RuboCop::Cop::PrecedingFollowingAlignment - include ::RuboCop::Cop::RangeHelp - extend ::RuboCop::Cop::AutoCorrector - - def on_new_investigation; end - - private - - def align_column(asgn_token); end - def align_equal_sign(corrector, token, align_to); end - def align_equal_signs(range, corrector); end - def aligned_locations(locs); end - def aligned_tok?(token); end - def all_relevant_assignment_lines(line_number); end - def allow_for_trailing_comments?; end - def check_assignment(token); end - def check_other(token1, token2, ast); end - def check_tokens(ast, token1, token2); end - def extra_space_range(token1, token2); end - def force_equal_sign_alignment?; end - def ignored_range?(ast, start_pos); end - def ignored_ranges(ast); end - - class << self - def autocorrect_incompatible_with; end - end -end - -RuboCop::Cop::Layout::ExtraSpacing::MSG_UNALIGNED_ASGN = T.let(T.unsafe(nil), String) -RuboCop::Cop::Layout::ExtraSpacing::MSG_UNNECESSARY = T.let(T.unsafe(nil), String) module RuboCop::Cop::RSpec; end class RuboCop::Cop::RSpec::AlignLeftLetBrace < ::RuboCop::Cop::RSpec::Base @@ -133,13 +100,21 @@ RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector + def be_nil_matcher?(param0 = T.unsafe(nil)); end def nil_value_expectation?(param0 = T.unsafe(nil)); end def on_send(node); end + + private + + def check_be_nil_style(node); end + def check_be_style(node); end end -RuboCop::Cop::RSpec::BeNil::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::RSpec::BeNil::BE_MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::RSpec::BeNil::BE_NIL_MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base @@ -165,6 +140,10 @@ class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation < ::RuboCop::Cop::RS def autocorrect(corrector, node); end def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str); end def rewrite_expectation(corrector, node, to_symbol, matcher_node); end + + class << self + def autocorrect_incompatible_with; end + end end RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String) @@ -332,7 +311,7 @@ class RuboCop::Cop::RSpec::EmptyExampleGroup < ::RuboCop::Cop::RSpec::Base private def conditionals_with_examples?(body); end - def examples_in_branches?(if_node); end + def examples_in_branches?(condition_node); end def offensive?(body); end end @@ -1576,6 +1555,23 @@ end RuboCop::Cop::RSpec::VariableName::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::RSpec::VerifiedDoubleReference < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector + + def on_send(node); end + def verified_double(param0 = T.unsafe(nil)); end + + private + + def correct_style(violation); end + def opposing_style?(class_reference); end +end + +RuboCop::Cop::RSpec::VerifiedDoubleReference::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::RSpec::VerifiedDoubleReference::REFERENCE_TYPE_STYLES = T.let(T.unsafe(nil), Hash) +RuboCop::Cop::RSpec::VerifiedDoubleReference::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) + class RuboCop::Cop::RSpec::VerifiedDoubles < ::RuboCop::Cop::RSpec::Base def on_send(node); end def unverified_double(param0 = T.unsafe(nil)); end