Merge pull request #13105 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.27.0

build(deps): bump rubocop from 1.26.1 to 1.27.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2022-04-08 20:20:14 +01:00 committed by GitHub
commit e83f39d2fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 6 deletions

View File

@ -123,7 +123,7 @@ GEM
rspec (>= 3, < 4) rspec (>= 3, < 4)
rspec_junit_formatter (0.5.1) rspec_junit_formatter (0.5.1)
rspec-core (>= 2, < 4, != 2.12.0) rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.26.1) rubocop (1.27.0)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.1.0.0) parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)

View File

@ -691,6 +691,7 @@ module RuboCop::Cop::AutocorrectLogic
def autocorrect?; end def autocorrect?; end
def autocorrect_enabled?; end def autocorrect_enabled?; end
def autocorrect_requested?; end def autocorrect_requested?; end
def autocorrect_with_disable_uncorrectable?; end
def correctable?; end def correctable?; end
def disable_uncorrectable?; end def disable_uncorrectable?; end
def safe_autocorrect?; end def safe_autocorrect?; end
@ -1010,8 +1011,7 @@ end
RuboCop::Cop::CodeLength::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::CodeLength::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::CommentsHelp module RuboCop::Cop::CommentsHelp
include ::RuboCop::Cop::VisibilityHelp def contains_comments?(node); end
def source_range_with_comment(node); end def source_range_with_comment(node); end
private private
@ -1019,6 +1019,7 @@ module RuboCop::Cop::CommentsHelp
def begin_pos_with_comment(node); end def begin_pos_with_comment(node); end
def buffer; end def buffer; end
def end_position_for(node); end def end_position_for(node); end
def find_end_line(node); end
def start_line_position(node); end def start_line_position(node); end
end end
@ -4536,6 +4537,8 @@ RuboCop::Cop::Lint::EmptyClass::CLASS_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::EmptyClass::METACLASS_MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CommentsHelp
def on_if(node); end def on_if(node); end
end end
@ -4574,6 +4577,7 @@ end
RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EmptyInPattern < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::EmptyInPattern < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CommentsHelp
extend ::RuboCop::Cop::TargetRubyVersion extend ::RuboCop::Cop::TargetRubyVersion
def on_case_match(node); end def on_case_match(node); end
@ -4591,6 +4595,8 @@ end
RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CommentsHelp
def on_case(node); end def on_case(node); end
end end
@ -4822,6 +4828,7 @@ RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::LambdaWithoutLiteralBlock < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::LambdaWithoutLiteralBlock < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
def lambda_with_symbol_proc?(param0 = T.unsafe(nil)); end
def on_send(node); end def on_send(node); end
end end
@ -5381,6 +5388,15 @@ end
RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::RefinementImportMethods < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::TargetRubyVersion
def on_send(node); end
end
RuboCop::Cop::Lint::RefinementImportMethods::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::RefinementImportMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
@ -5593,6 +5609,7 @@ RuboCop::Cop::Lint::ShadowedException::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::ShadowingOuterLocalVariable < ::RuboCop::Cop::Base
def before_declaring_variable(variable, variable_table); end def before_declaring_variable(variable, variable_table); end
def ractor_block?(param0 = T.unsafe(nil)); end def ractor_block?(param0 = T.unsafe(nil)); end
def same_conditions_node_different_branch?(variable, outer_local_variable); end
class << self class << self
def joining_forces; end def joining_forces; end
@ -7837,8 +7854,8 @@ RuboCop::Cop::Style::ClassMethods::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::ClassMethodsDefinitions < ::RuboCop::Cop::Base class RuboCop::Cop::Style::ClassMethodsDefinitions < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle include ::RuboCop::Cop::ConfigurableEnforcedStyle
include ::RuboCop::Cop::VisibilityHelp
include ::RuboCop::Cop::CommentsHelp include ::RuboCop::Cop::CommentsHelp
include ::RuboCop::Cop::VisibilityHelp
include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector extend ::RuboCop::Cop::AutoCorrector
@ -8270,9 +8287,12 @@ class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Base
private private
def allowed_in_returns?(node); end def allowed_in_returns?(node); end
def double_negative_condition_return_value?(node, last_child, conditional_node); end
def end_of_method_definition?(node); end def end_of_method_definition?(node); end
def find_conditional_node_from_ascendant(node); end
def find_def_node_from_ascendant(node); end def find_def_node_from_ascendant(node); end
def find_last_child(node); end def find_last_child(node); end
def find_parent_not_enumerable(node); end
end end
RuboCop::Cop::Style::DoubleNegation::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::DoubleNegation::MSG = T.let(T.unsafe(nil), String)
@ -10400,6 +10420,7 @@ class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Base
def correction_compact_to_exploded(node); end def correction_compact_to_exploded(node); end
def correction_exploded_to_compact(node); end def correction_exploded_to_compact(node); end
def requires_parens?(parent); end def requires_parens?(parent); end
def use_new_method?(first_arg); end
end end
RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String)
@ -10616,6 +10637,19 @@ end
RuboCop::Cop::Style::RedundantFreeze::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::RedundantFreeze::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantFreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) RuboCop::Cop::Style::RedundantFreeze::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Style::RedundantInitialize < ::RuboCop::Cop::Base
def initialize_forwards?(param0 = T.unsafe(nil)); end
def on_def(node); end
private
def forwards?(node); end
def same_args?(super_node, args); end
end
RuboCop::Cop::Style::RedundantInitialize::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::RedundantInitialize::MSG_EMPTY = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::RedundantInterpolation < ::RuboCop::Cop::Base class RuboCop::Cop::Style::RedundantInterpolation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RangeHelp
include ::RuboCop::Cop::PercentLiteral include ::RuboCop::Cop::PercentLiteral
@ -11014,7 +11048,7 @@ class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base
def allowed_if_condition?(node); end def allowed_if_condition?(node); end
def autocorrect(corrector, node); end def autocorrect(corrector, node); end
def begin_range(node, method_call); end def begin_range(node, method_call); end
def chain_size(method_chain, method); end def chain_length(method_chain, method); end
def comments(node); end def comments(node); end
def end_range(node, method_call); end def end_range(node, method_call); end
def extract_common_parts(method_chain, checked_variable); end def extract_common_parts(method_chain, checked_variable); end
@ -11023,6 +11057,7 @@ class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base
def extract_parts_from_if(node); end def extract_parts_from_if(node); end
def find_matching_receiver_invocation(method_chain, checked_variable); end def find_matching_receiver_invocation(method_chain, checked_variable); end
def handle_comments(corrector, node, method_call); end def handle_comments(corrector, node, method_call); end
def max_chain_length; end
def method_call(node); end def method_call(node); end
def method_called?(send_node); end def method_called?(send_node); end
def negated?(send_node); end def negated?(send_node); end

View File

@ -84,7 +84,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec_junit_formatter
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.16.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.16.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.1.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.1.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.26.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.27.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.13.3/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.13.3/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.14.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.14.2/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.9.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.9.0/lib"