diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index cde503a793..eeecdb0f87 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -113,7 +113,7 @@ GEM rubocop (~> 1.41) rubocop-factory_bot (2.24.0) rubocop (~> 1.33) - rubocop-performance (1.20.0) + rubocop-performance (1.20.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.30.0, < 2.0) rubocop-rails (2.23.1) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.1.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.1.rbi index 697c41d0b5..bec1117b9f 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.20.1.rbi @@ -2720,13 +2720,19 @@ RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#51 + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#56 def on_send(node); end private - # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#71 + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#93 def argument_replacement(node, value); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#83 + def register_offense(argument, argument_value); end + + # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#69 + def string_arguments(node); end end # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#32 @@ -2735,13 +2741,19 @@ RuboCop::Cop::Performance::StringIdentifierArgument::COMMAND_METHODS = T.let(T.u # source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#30 RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String) +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#38 +RuboCop::Cop::Performance::StringIdentifierArgument::MULTIPLE_ARGUMENTS_METHODS = T.let(T.unsafe(nil), Array) + # NOTE: `attr` method is not included in this list as it can cause false positives in Nokogiri API. # And `attr` may not be used because `Style/Attr` registers an offense. # https://github.com/rubocop/rubocop-performance/issues/278 # -# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#40 +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#46 RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#37 +RuboCop::Cop::Performance::StringIdentifierArgument::TWO_ARGUMENTS_METHOD = T.let(T.unsafe(nil), Symbol) + # Identifies unnecessary use of a regex where `String#include?` would suffice. # # @example diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 28bd39b050..dc1774b1ba 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -101,7 +101,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.59.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-capybara-2.19.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-factory_bot-2.24.0/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.20.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.20.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.23.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-2.25.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-sorbet-0.7.6/lib")