Merge pull request #16449 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-performance-1.20.2

build(deps-dev): bump rubocop-performance from 1.20.1 to 1.20.2 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2024-01-08 16:06:25 +00:00 committed by GitHub
commit dd22752561
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 14 deletions

View File

@ -113,7 +113,7 @@ GEM
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-performance (1.20.1)
rubocop-performance (1.20.2)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rails (2.23.1)

View File

@ -2708,50 +2708,63 @@ RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
# send('do_something')
# attr_accessor 'do_something'
# instance_variable_get('@ivar')
# const_get("string_#{interpolation}")
# respond_to?("string_#{interpolation}")
#
# # good
# send(:do_something)
# attr_accessor :do_something
# instance_variable_get(:@ivar)
# const_get(:"string_#{interpolation}")
# respond_to?(:"string_#{interpolation}")
#
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#27
# # good - these methods don't support namespaced symbols
# const_get("#{module_path}::Base")
# const_source_location("#{module_path}::Base")
# const_defined?("#{module_path}::Base")
#
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#33
class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#56
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#64
def on_send(node); end
private
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#93
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#105
def argument_replacement(node, value); end
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#83
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#95
def register_offense(argument, argument_value); end
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#69
# @return [Boolean]
#
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#89
def string_argument_compatible?(argument, node); end
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#77
def string_arguments(node); end
end
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#32
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#38
RuboCop::Cop::Performance::StringIdentifierArgument::COMMAND_METHODS = T.let(T.unsafe(nil), Array)
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#30
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#43
RuboCop::Cop::Performance::StringIdentifierArgument::INTERPOLATION_IGNORE_METHODS = T.let(T.unsafe(nil), Array)
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#36
RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String)
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#38
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#46
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#46
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#54
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
# source://rubocop-performance//lib/rubocop/cop/performance/string_identifier_argument.rb#45
RuboCop::Cop::Performance::StringIdentifierArgument::TWO_ARGUMENTS_METHOD = T.let(T.unsafe(nil), Symbol)
# Identifies unnecessary use of a regex where `String#include?` would suffice.

View File

@ -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.20.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-factory_bot-2.25.1/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-performance-1.20.2/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")