Merge pull request #11334 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.14.0

build(deps): bump rubocop from 1.13.0 to 1.14.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2021-05-06 16:00:48 +01:00 committed by GitHub
commit df12e8f6fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 93 additions and 15 deletions

View File

@ -109,13 +109,13 @@ GEM
rspec-support (3.10.2) rspec-support (3.10.2)
rspec-wait (0.0.9) rspec-wait (0.0.9)
rspec (>= 3, < 4) rspec (>= 3, < 4)
rubocop (1.13.0) rubocop (1.14.0)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.0.0.0) parser (>= 3.0.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 rexml
rubocop-ast (>= 1.2.0, < 2.0) rubocop-ast (>= 1.5.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0) unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.5.0) rubocop-ast (1.5.0)

View File

@ -825,8 +825,8 @@ RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base
include(::RuboCop::Cop::DefNode) include(::RuboCop::Cop::DefNode)
include(::RuboCop::Cop::GemDeclaration)
def gem_declaration?(param0 = T.unsafe(nil)); end
def on_send(node); end def on_send(node); end
private private
@ -856,6 +856,30 @@ RuboCop::Cop::Bundler::GemComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String) RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
include(::RuboCop::Cop::GemDeclaration)
def includes_version_specification?(param0 = T.unsafe(nil)); end
def on_send(node); end
private
def allowed_gem?(node); end
def allowed_gems; end
def forbidden_style?; end
def message(range); end
def offense?(node); end
def required_style?; end
def version_specification?(expression); end
end
RuboCop::Cop::Bundler::GemVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Bundler::GemVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp)
class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Base class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Base
include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::RangeHelp)
extend(::RuboCop::Cop::AutoCorrector) extend(::RuboCop::Cop::AutoCorrector)
@ -1440,6 +1464,12 @@ RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_ENABLED = T.let(T.unsaf
RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_TYPES = T.let(T.unsafe(nil), Array) RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_TYPES = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::GemDeclaration
extend(::RuboCop::AST::NodePattern::Macros)
def gem_declaration?(param0 = T.unsafe(nil)); end
end
module RuboCop::Cop::Gemspec module RuboCop::Cop::Gemspec
end end
@ -3232,6 +3262,8 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Cop
def convertible_block?(node); end def convertible_block?(node); end
def max_line_length; end def max_line_length; end
def offense?(node); end def offense?(node); end
def other_cop_takes_precedence?(node); end
def single_line_block_chain_enabled?; end
def suitable_as_single_line?(node); end def suitable_as_single_line?(node); end
def to_single_line(source); end def to_single_line(source); end
def too_long?(node); end def too_long?(node); end
@ -3276,6 +3308,19 @@ RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Layout::RescueEnsureAlignment::RUBY_2_5_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array) RuboCop::Cop::Layout::RescueEnsureAlignment::RUBY_2_5_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base
include(::RuboCop::Cop::RangeHelp)
extend(::RuboCop::Cop::AutoCorrector)
def on_send(node); end
private
def offending_range(node); end
end
RuboCop::Cop::Layout::SingleLineBlockChain::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Layout::SpaceAfterColon < ::RuboCop::Cop::Base class RuboCop::Cop::Layout::SpaceAfterColon < ::RuboCop::Cop::Base
extend(::RuboCop::Cop::AutoCorrector) extend(::RuboCop::Cop::AutoCorrector)
@ -4095,28 +4140,48 @@ class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Base
private private
def check(node); end def check(node); end
def deprecated_method(data); end def replacement(deprecated); end
def method_call(class_constant, method); end
def replacement_method(data); end
end end
RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS_OBJECT = T.let(T.unsafe(nil), Array) RuboCop::Cop::Lint::DeprecatedClassMethods::CLASS_METHOD_DELIMETER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS_OBJECT = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Lint::DeprecatedClassMethods::DeprecatedClassMethod class RuboCop::Cop::Lint::DeprecatedClassMethods::DeprecatedClassMethod
include(::RuboCop::AST::Sexp) include(::RuboCop::AST::Sexp)
def initialize(deprecated:, replacement:, class_constant: T.unsafe(nil)); end def initialize(method, class_constant: T.unsafe(nil), correctable: T.unsafe(nil)); end
def class_constant; end def class_constant; end
def class_nodes; end def class_nodes; end
def deprecated_method; end def correctable?; end
def replacement_method; end def method; end
def to_s; end
private
def delimeter; end
end end
RuboCop::Cop::Lint::DeprecatedClassMethods::INSTANCE_METHOD_DELIMETER = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Lint::DeprecatedClassMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) RuboCop::Cop::Lint::DeprecatedClassMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Lint::DeprecatedClassMethods::Replacement
def initialize(method, class_constant: T.unsafe(nil), instance_method: T.unsafe(nil)); end
def class_constant; end
def method; end
def to_s; end
private
def delimeter; end
def instance_method?; end
end
class RuboCop::Cop::Lint::DeprecatedConstants < ::RuboCop::Cop::Base class RuboCop::Cop::Lint::DeprecatedConstants < ::RuboCop::Cop::Base
extend(::RuboCop::Cop::AutoCorrector) extend(::RuboCop::Cop::AutoCorrector)
@ -5615,11 +5680,14 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base
def check(node); end def check(node); end
def check_case(node); end def check_case(node); end
def check_if(node); end def check_if(node); end
def conditional_continue_keyword?(break_statement); end
def loop_method?(node); end def loop_method?(node); end
def preceded_by_continue_statement?(break_statement); end def preceded_by_continue_statement?(break_statement); end
def statements(node); end def statements(node); end
end end
RuboCop::Cop::Lint::UnreachableLoop::CONTINUE_KEYWORDS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Lint::UnreachableLoop::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::UnreachableLoop::MSG = T.let(T.unsafe(nil), String)
module RuboCop::Cop::Lint::UnusedArgument module RuboCop::Cop::Lint::UnusedArgument
@ -5652,6 +5720,7 @@ class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base
def message_for_lambda(variable, all_arguments); end def message_for_lambda(variable, all_arguments); end
def message_for_normal_block(variable, all_arguments); end def message_for_normal_block(variable, all_arguments); end
def message_for_underscore_prefix(variable); end def message_for_underscore_prefix(variable); end
def used_block_local?(variable); end
def variable_type(variable); end def variable_type(variable); end
class << self class << self
@ -7518,9 +7587,9 @@ class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base
def compact_node_name?(node); end def compact_node_name?(node); end
def indent_width; end def indent_width; end
def leading_spaces(node); end def leading_spaces(node); end
def needs_compacting?(body); end
def nest_definition(corrector, node); end def nest_definition(corrector, node); end
def nest_or_compact(corrector, node); end def nest_or_compact(corrector, node); end
def one_child?(body); end
def remove_end(corrector, body); end def remove_end(corrector, body); end
def replace_namespace_keyword(corrector, node); end def replace_namespace_keyword(corrector, node); end
def split_on_double_colon(corrector, node, padding); end def split_on_double_colon(corrector, node, padding); end
@ -9439,8 +9508,6 @@ end
class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base
include(::RuboCop::Cop::RangeHelp) include(::RuboCop::Cop::RangeHelp)
include(::RuboCop::Cop::VisibilityHelp)
include(::RuboCop::Cop::CommentsHelp)
extend(::RuboCop::Cop::AutoCorrector) extend(::RuboCop::Cop::AutoCorrector)
def double_negation?(param0 = T.unsafe(nil)); end def double_negation?(param0 = T.unsafe(nil)); end
@ -9451,9 +9518,10 @@ class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base
def correct_negated_condition(corrector, node); end def correct_negated_condition(corrector, node); end
def corrected_ancestor?(node); end def corrected_ancestor?(node); end
def else_range(node); end
def if_else?(node); end def if_else?(node); end
def if_range(node); end
def negated_condition?(node); end def negated_condition?(node); end
def node_with_comments(node); end
def swap_branches(corrector, node); end def swap_branches(corrector, node); end
class << self class << self
@ -10820,6 +10888,7 @@ class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base
def each_part(body); end def each_part(body); end
def method_body_source(method_body); end def method_body_source(method_body); end
def move_comment(node, corrector); end def move_comment(node, corrector); end
def require_parentheses?(method_body); end
end end
RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String)
@ -10851,6 +10920,7 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base
def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end
def correct_for_comment(corrector, node, if_branch); end def correct_for_comment(corrector, node, if_branch); end
def correct_for_guard_condition_style(corrector, node, if_branch, and_operator); end def correct_for_guard_condition_style(corrector, node, if_branch, and_operator); end
def correct_from_unless_to_if(corrector, node); end
def correct_outer_condition(corrector, condition); end def correct_outer_condition(corrector, condition); end
def offending_branch?(branch); end def offending_branch?(branch); end
def replacement_condition(and_operator, condition); end def replacement_condition(and_operator, condition); end
@ -11939,6 +12009,13 @@ class RuboCop::Cop::VariableForce::Branch::Case < ::RuboCop::Cop::VariableForce:
def when_clause?; end def when_clause?; end
end end
class RuboCop::Cop::VariableForce::Branch::CaseMatch < ::RuboCop::Cop::VariableForce::Branch::Base
def always_run?; end
def else_body?; end
def in_pattern?; end
def target?; end
end
class RuboCop::Cop::VariableForce::Branch::Ensure < ::RuboCop::Cop::VariableForce::Branch::Base class RuboCop::Cop::VariableForce::Branch::Ensure < ::RuboCop::Cop::VariableForce::Branch::Base
include(::RuboCop::Cop::VariableForce::Branch::ExceptionHandler) include(::RuboCop::Cop::VariableForce::Branch::ExceptionHandler)
@ -12982,6 +13059,7 @@ class RuboCop::TargetFinder
def ruby_filenames; end def ruby_filenames; end
def ruby_interpreters(file); end def ruby_interpreters(file); end
def stdin?; end def stdin?; end
def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end
def target_files_in_dir(base_dir = T.unsafe(nil)); end def target_files_in_dir(base_dir = T.unsafe(nil)); end
def to_inspect?(file, hidden_files, base_dir_config); end def to_inspect?(file, hidden_files, base_dir_config); end
def wanted_dir_patterns(base_dir, exclude_pattern, flags); end def wanted_dir_patterns(base_dir, exclude_pattern, flags); end

View File

@ -79,7 +79,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-wait-0.0.9/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.5.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.5.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.0.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.0.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.13.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.14.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.11.3/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.11.3/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.10.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.10.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.3.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.3.0/lib"