From c9965657df0cc2ebcfd09b0215e56fa6515e7aea Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 9 Mar 2022 18:12:54 +0000 Subject: [PATCH] Update RBI files for rubocop. --- ...{rubocop@1.25.1.rbi => rubocop@1.26.0.rbi} | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop@1.25.1.rbi => rubocop@1.26.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.0.rbi index b05ba24a4f..cabfc9b7a5 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.0.rbi @@ -158,7 +158,7 @@ class RuboCop::CLI::Environment def run(name); end end -class RuboCop::CLI::Finished < ::RuntimeError; end +class RuboCop::CLI::Finished < ::StandardError; end RuboCop::CLI::STATUS_ERROR = T.let(T.unsafe(nil), Integer) RuboCop::CLI::STATUS_INTERRUPTED = T.let(T.unsafe(nil), Integer) RuboCop::CLI::STATUS_OFFENSES = T.let(T.unsafe(nil), Integer) @@ -720,6 +720,7 @@ class RuboCop::Cop::Badge def with_department(department); end class << self + def camel_case(name_part); end def for(class_name); end def parse(identifier); end end @@ -4795,12 +4796,11 @@ class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Base private - def illegal_class_name?(class_node); end + def exception_class?(class_node); end def message(node); end def preferred_base_class; end end -RuboCop::Cop::Lint::InheritException::ILLEGAL_CLASSES = T.let(T.unsafe(nil), Array) RuboCop::Cop::Lint::InheritException::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::InheritException::PREFERRED_BASE_CLASS = T.let(T.unsafe(nil), Hash) RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) @@ -6015,6 +6015,7 @@ class RuboCop::Cop::Lint::UselessTimes < ::RuboCop::Cop::Base private + def autocorrect(corrector, count, node, proc_name); end def autocorrect_block(corrector, node); end def autocorrect_block_pass(corrector, node, proc_name); end def fix_indentation(source, range); end @@ -9244,17 +9245,17 @@ class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - def autocorrect(corrector, node); end def on_send(node); end private def explicit_style?; end def implicit_style?; end - def message(_node); end def offense?(node); end + def prefer(node); end end +RuboCop::Cop::Style::LambdaCall::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::LambdaCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base @@ -9784,6 +9785,23 @@ class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Base def on_while(node); end end +class RuboCop::Cop::Style::NestedFileDirname < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + def file_dirname?(param0 = T.unsafe(nil)); end + def on_send(node); end + + private + + def offense_range(node); end + def path_with_dir_level(node, level); end +end + +RuboCop::Cop::Style::NestedFileDirname::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::NestedFileDirname::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -11345,6 +11363,7 @@ class RuboCop::Cop::Style::StringConcatenation < ::RuboCop::Cop::Base def corrected_ancestor?(node); end def find_topmost_plus_node(node); end def handle_quotes(parts); end + def heredoc?(node); end def line_end_concatenation?(node); end def offensive_for_mode?(receiver_node); end def plus_node?(node); end @@ -13318,7 +13337,7 @@ class RuboCop::Runner def warm_cache(target_files); end end -class RuboCop::Runner::InfiniteCorrectionLoop < ::RuntimeError +class RuboCop::Runner::InfiniteCorrectionLoop < ::StandardError def initialize(path, offenses_by_iteration, loop_start: T.unsafe(nil)); end def offenses; end