Merge pull request #14351 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.43.0

build(deps): bump rubocop from 1.42.0 to 1.43.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2023-01-10 19:33:26 +00:00 committed by GitHub
commit 8be5846c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 6 deletions

View File

@ -132,16 +132,16 @@ GEM
rspec (>= 3, < 4) rspec (>= 3, < 4)
rspec_junit_formatter (0.6.0) rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0) rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.42.0) rubocop (1.43.0)
json (~> 2.3) json (~> 2.3)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.1.2.1) parser (>= 3.2.0.0)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0) regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0) rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.24.1, < 2.0) rubocop-ast (>= 1.24.1, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.24.1) rubocop-ast (1.24.1)
parser (>= 3.1.1.0) parser (>= 3.1.1.0)
rubocop-performance (1.15.2) rubocop-performance (1.15.2)

View File

@ -1901,6 +1901,7 @@ module RuboCop::Cop::HashShorthandSyntax
private private
def brackets?(send_node); end
def breakdown_value_types_of_hash(hash_node); end def breakdown_value_types_of_hash(hash_node); end
def def_node_that_require_parentheses(node); end def def_node_that_require_parentheses(node); end
def each_omittable_value_pair(hash_value_type_breakdown, &block); end def each_omittable_value_pair(hash_value_type_breakdown, &block); end
@ -6363,6 +6364,16 @@ end
RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessRescue < ::RuboCop::Cop::Base
def on_rescue(node); end
private
def only_reraising?(resbody_node); end
end
RuboCop::Cop::Lint::UselessRescue::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::UselessRuby2Keywords < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::UselessRuby2Keywords < ::RuboCop::Cop::Base
def method_definition(param0 = T.unsafe(nil), param1); end def method_definition(param0 = T.unsafe(nil), param1); end
def on_send(node); end def on_send(node); end
@ -6630,6 +6641,7 @@ class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base
def on_args(node); end def on_args(node); end
def on_def(node); end def on_def(node); end
def on_defs(node); end def on_defs(node); end
def struct_new_or_data_define_block?(param0 = T.unsafe(nil)); end
private private
@ -7758,6 +7770,7 @@ end
module RuboCop::Cop::StatementModifier module RuboCop::Cop::StatementModifier
include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::RangeHelp
private private
@ -9360,9 +9373,9 @@ RuboCop::Cop::Style::GlobalVars::BUILT_IN_VARS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base
include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RangeHelp
include ::RuboCop::Cop::MinBodyLength include ::RuboCop::Cop::MinBodyLength
include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::StatementModifier
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
@ -9454,6 +9467,7 @@ class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base
def correct_key_value_each(node, corrector); end def correct_key_value_each(node, corrector); end
def format_message(method_name); end def format_message(method_name); end
def kv_range(outer_node); end def kv_range(outer_node); end
def receiver_name(receiver); end
def register_kv_offense(target, method); end def register_kv_offense(target, method); end
def register_kv_with_block_pass_offense(node, target, method); end def register_kv_with_block_pass_offense(node, target, method); end
def used?(arg); end def used?(arg); end
@ -9623,9 +9637,9 @@ RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base
include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::RangeHelp
include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::StatementModifier
include ::RuboCop::Cop::AllowedPattern include ::RuboCop::Cop::AllowedPattern
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
def on_if(node); end def on_if(node); end
@ -9659,6 +9673,7 @@ RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), Str
class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base
include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::RangeHelp
include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::StatementModifier
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
@ -10159,6 +10174,7 @@ RuboCop::Cop::Style::MinMaxComparison::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base
include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::OnNormalIfUnless
include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
def on_case(node); end def on_case(node); end
def on_case_match(node); end def on_case_match(node); end
@ -10166,6 +10182,7 @@ class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base
private private
def autocorrect(corrector, node); end
def case_style?; end def case_style?; end
def check(node); end def check(node); end
def empty_else_config; end def empty_else_config; end
@ -10257,6 +10274,7 @@ RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base
include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::RangeHelp
include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::StatementModifier
include ::RuboCop::Cop::Alignment include ::RuboCop::Cop::Alignment
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
@ -10865,6 +10883,8 @@ class RuboCop::Cop::Style::OperatorMethodCall < ::RuboCop::Cop::Base
private private
def anonymous_forwarding?(argument); end
def method_call_with_parenthesized_arg?(argument); end
def wrap_in_parentheses_if_chained(corrector, node); end def wrap_in_parentheses_if_chained(corrector, node); end
end end
@ -12773,6 +12793,7 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base
include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::LineLengthHelp
include ::RuboCop::Cop::RangeHelp
include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::StatementModifier
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
@ -14255,6 +14276,7 @@ module RuboCop::PathUtil
end end
RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String) RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String)
RuboCop::PathUtil::SMART_PATH_CACHE = T.let(T.unsafe(nil), Hash)
module RuboCop::Platform module RuboCop::Platform
class << self class << self

View File

@ -104,7 +104,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-ast-1.24.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.24.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.11.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.11.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.4.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-2.4.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.42.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.43.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.15.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.15.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.17.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.17.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-2.16.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-2.16.0/lib")