From 442af3772a0aa05801d9f380a3b8e27b3e427d2b Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 28 Dec 2021 18:11:17 +0000 Subject: [PATCH] Update RBI files for rubocop-performance. --- ...2.0.rbi => rubocop-performance@1.13.0.rbi} | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-performance@1.12.0.rbi => rubocop-performance@1.13.0.rbi} (97%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.12.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.13.0.rbi similarity index 97% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.12.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.13.0.rbi index 85e3be922b..e27ec8c5ea 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.12.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.13.0.rbi @@ -46,10 +46,7 @@ class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop: def big_decimal_with_numeric_argument?(param0 = T.unsafe(nil)); end def on_send(node); end - - private - - def specifies_precision?(node); end + def to_d?(param0 = T.unsafe(nil)); end end RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String) @@ -406,8 +403,10 @@ class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base private + def compact_method_with_final_newline_range(compact_method_range); end def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end - def remove_compact_method(corrector, compact_node); end + def map_method_and_compact_method_on_same_line?(compact_node); end + def remove_compact_method(corrector, compact_node, chained_method); end end RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String) @@ -586,6 +585,7 @@ class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base def build_bad_method(method, args); end def build_call_args(call_args_node); end def build_good_method(method, args); end + def build_good_method_for_brackets_or_first_method(method, args); end def build_message(method, args); end def correction_range(receiver, node); end def offense_range(receiver, node); end @@ -734,6 +734,15 @@ end RuboCop::Cop::Performance::StartWith::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + + def on_send(node); end +end + +RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector