From 03e761079c1a4d9cad6aa1b1426a49c998e643bf Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 1 Mar 2021 07:40:54 +0000 Subject: [PATCH] Update RBI files for rubocop-performance. --- ...rser@2.0.3.rbi => regexp_parser@2.1.1.rbi} | 43 +++++++++++++------ ...9.2.rbi => rubocop-performance@1.10.0.rbi} | 42 +++++++++++++++++- 2 files changed, 72 insertions(+), 13 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{regexp_parser@2.0.3.rbi => regexp_parser@2.1.1.rbi} (98%) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-performance@1.9.2.rbi => rubocop-performance@1.10.0.rbi} (95%) diff --git a/Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.0.3.rbi b/Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.1.1.rbi similarity index 98% rename from Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.0.3.rbi rename to Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.1.1.rbi index bb6f3dbb0f..2fa7ded968 100644 --- a/Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.0.3.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.1.1.rbi @@ -84,6 +84,10 @@ class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base def match_length; end def referenced_expression; end def referenced_expression=(_arg0); end + + private + + def initialize_copy(orig); end end class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base @@ -198,7 +202,7 @@ class Regexp::Expression::Base private - def initialize_clone(orig); end + def initialize_copy(orig); end end class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression @@ -292,6 +296,10 @@ class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base def reference; end def referenced_expression; end def referenced_expression=(_arg0); end + + private + + def initialize_copy(orig); end end class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression @@ -306,9 +314,13 @@ class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexp def referenced_expression; end def referenced_expression=(_arg0); end def to_s(format = T.unsafe(nil)); end + + private + + def initialize_copy(orig); end end -class Regexp::Expression::Conditional::TooManyBranches < ::StandardError +class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error def initialize; end end @@ -431,12 +443,16 @@ class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture private - def initialize_clone(orig); end + def initialize_copy(orig); end end class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base def option_changes; end def option_changes=(_arg0); end + + private + + def initialize_copy(orig); end end class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base @@ -486,7 +502,7 @@ class Regexp::Expression::Quantifier private - def initialize_clone(orig); end + def initialize_copy(orig); end end Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array) @@ -553,7 +569,7 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base private - def initialize_clone(orig); end + def initialize_copy(orig); end end module Regexp::Expression::UnicodeProperty @@ -867,7 +883,6 @@ end class Regexp::Parser include(::Regexp::Expression) - include(::Regexp::Syntax) include(::Regexp::Expression::UnicodeProperty) def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end @@ -898,6 +913,7 @@ class Regexp::Parser def intersection(token); end def interval(target_node, token); end def keep(token); end + def literal(token); end def meta(token); end def negate_set; end def nest(exp); end @@ -933,11 +949,16 @@ end Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array) +class Regexp::Parser::Error < ::StandardError +end + Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array) -class Regexp::Parser::ParserError < ::StandardError +class Regexp::Parser::ParserError < ::Regexp::Parser::Error end +Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty + class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError def initialize(type, token); end end @@ -1005,20 +1026,18 @@ class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end end -Regexp::Scanner::PROP_MAPS_DIR = T.let(T.unsafe(nil), String) - class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError def initialize(where = T.unsafe(nil)); end end -class Regexp::Scanner::ScannerError < ::StandardError +class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error end class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError def initialize(name); end end -class Regexp::Scanner::ValidationError < ::StandardError +class Regexp::Scanner::ValidationError < ::Regexp::Parser::Error def initialize(reason); end end @@ -1088,7 +1107,7 @@ class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError def initialize(syntax, type, token); end end -class Regexp::Syntax::SyntaxError < ::StandardError +class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error end module Regexp::Syntax::Token diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.9.2.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.10.0.rbi similarity index 95% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.9.2.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.10.0.rbi index 98883cd1fa..6c2e47ea87 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.9.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.10.0.rbi @@ -238,7 +238,7 @@ class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base private def include_interpolated_const?(node); end - def within_const_assignment?(node); end + def within_allowed_assignment?(node); end end RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String) @@ -482,6 +482,25 @@ RuboCop::Cop::Performance::RedundantBlockCall::SPACE = T.let(T.unsafe(nil), Stri RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + extend(::RuboCop::Cop::TargetRubyVersion) + + def on_block(node); end + + private + + def new_argument(block_argument, block_body); end + def offense_range(node); end + def use_equality_comparison_block?(block_body); end +end + +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::COMPARISON_METHODS = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base extend(::RuboCop::Cop::AutoCorrector) @@ -561,6 +580,27 @@ end RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::AutoCorrector) + + def on_send(node); end + def split_call_with_regexp?(param0 = T.unsafe(nil)); end + + private + + def autocorrect(corrector, node); end + def determinist_regexp?(first_argument); end + def replacement(node); end +end + +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp) + +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) extend(::RuboCop::Cop::AutoCorrector)