Merge pull request #14786 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.46.0
build(deps): bump rubocop from 1.45.1 to 1.46.0 in /Library/Homebrew
This commit is contained in:
commit
e9536cbcb7
@ -130,14 +130,14 @@ GEM
|
|||||||
rspec-support (3.12.0)
|
rspec-support (3.12.0)
|
||||||
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.45.1)
|
rubocop (1.46.0)
|
||||||
json (~> 2.3)
|
json (~> 2.3)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.2.0.0)
|
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.26.0, < 2.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (>= 2.4.0, < 3.0)
|
unicode-display_width (>= 2.4.0, < 3.0)
|
||||||
rubocop-ast (1.26.0)
|
rubocop-ast (1.26.0)
|
||||||
|
|||||||
@ -9,10 +9,7 @@ module Cask
|
|||||||
# @api private
|
# @api private
|
||||||
class ArtifactSet < ::Set
|
class ArtifactSet < ::Set
|
||||||
def each(&block)
|
def each(&block)
|
||||||
# TODO: This is a false positive: https://github.com/rubocop/rubocop/issues/11591
|
|
||||||
# rubocop:disable Lint/ToEnumArguments
|
|
||||||
return enum_for(T.must(__method__)) { size } unless block
|
return enum_for(T.must(__method__)) { size } unless block
|
||||||
# rubocop:enable Lint/ToEnumArguments
|
|
||||||
|
|
||||||
to_a.each(&block)
|
to_a.each(&block)
|
||||||
self
|
self
|
||||||
|
|||||||
@ -393,7 +393,6 @@ module Homebrew
|
|||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/BlockLength
|
|
||||||
|
|
||||||
puts "No newer upstream versions." if newer_only && !has_a_newer_upstream_version && !debug && !json
|
puts "No newer upstream versions." if newer_only && !has_a_newer_upstream_version && !debug && !json
|
||||||
|
|
||||||
@ -408,8 +407,6 @@ module Homebrew
|
|||||||
|
|
||||||
puts JSON.pretty_generate(formulae_checked.compact)
|
puts JSON.pretty_generate(formulae_checked.compact)
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/CyclomaticComplexity
|
|
||||||
# rubocop:enable Metrics/PerceivedComplexity
|
|
||||||
|
|
||||||
sig { params(package_or_resource: T.any(Formula, Cask::Cask, Resource), full_name: T::Boolean).returns(String) }
|
sig { params(package_or_resource: T.any(Formula, Cask::Cask, Resource), full_name: T::Boolean).returns(String) }
|
||||||
def package_or_resource_name(package_or_resource, full_name: false)
|
def package_or_resource_name(package_or_resource, full_name: false)
|
||||||
@ -1015,5 +1012,4 @@ module Homebrew
|
|||||||
resource_version_info
|
resource_version_info
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/ModuleLength
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -216,6 +216,7 @@ class RuboCop::CommentConfig
|
|||||||
def config(*args, &block); end
|
def config(*args, &block); end
|
||||||
def cop_disabled_line_ranges; end
|
def cop_disabled_line_ranges; end
|
||||||
def cop_enabled_at_line?(cop, line_number); end
|
def cop_enabled_at_line?(cop, line_number); end
|
||||||
|
def cop_opted_in?(cop); end
|
||||||
def extra_enabled_comments; end
|
def extra_enabled_comments; end
|
||||||
def processed_source; end
|
def processed_source; end
|
||||||
def registry(*args, &block); end
|
def registry(*args, &block); end
|
||||||
@ -234,6 +235,7 @@ class RuboCop::CommentConfig
|
|||||||
def handle_switch(directive, names, extras); end
|
def handle_switch(directive, names, extras); end
|
||||||
def inject_disabled_cops_directives(analyses); end
|
def inject_disabled_cops_directives(analyses); end
|
||||||
def non_comment_token_line_numbers; end
|
def non_comment_token_line_numbers; end
|
||||||
|
def opt_in_cops; end
|
||||||
def qualified_cop_name(cop_name); end
|
def qualified_cop_name(cop_name); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1934,7 +1936,7 @@ module RuboCop::Cop::HashShorthandSyntax
|
|||||||
def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end
|
def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end
|
||||||
def ignore_hash_shorthand_syntax?(pair_node); end
|
def ignore_hash_shorthand_syntax?(pair_node); end
|
||||||
def ignore_mixed_hash_shorthand_syntax?(hash_node); end
|
def ignore_mixed_hash_shorthand_syntax?(hash_node); end
|
||||||
def last_expression?(ancestor); end
|
def last_expression?(node); end
|
||||||
def method_dispatch_as_argument?(method_dispatch_node); end
|
def method_dispatch_as_argument?(method_dispatch_node); end
|
||||||
def mixed_shorthand_syntax_check(hash_value_type_breakdown); end
|
def mixed_shorthand_syntax_check(hash_value_type_breakdown); end
|
||||||
def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end
|
def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end
|
||||||
@ -2844,6 +2846,7 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base
|
|||||||
def on_class(node); end
|
def on_class(node); end
|
||||||
def on_if(node); end
|
def on_if(node); end
|
||||||
def on_module(node); end
|
def on_module(node); end
|
||||||
|
def on_sclass(node); end
|
||||||
def on_until(node); end
|
def on_until(node); end
|
||||||
def on_while(node); end
|
def on_while(node); end
|
||||||
|
|
||||||
@ -3111,6 +3114,7 @@ class RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis < ::RuboCop::Cop::
|
|||||||
def add_correct_closing_paren(node, corrector); end
|
def add_correct_closing_paren(node, corrector); end
|
||||||
def add_correct_external_trailing_comma(node, corrector); end
|
def add_correct_external_trailing_comma(node, corrector); end
|
||||||
def autocorrect(corrector, node); end
|
def autocorrect(corrector, node); end
|
||||||
|
def end_keyword_before_closing_parentesis?(parenthesized_send_node); end
|
||||||
def exist_argument_between_heredoc_end_and_closing_parentheses?(node); end
|
def exist_argument_between_heredoc_end_and_closing_parentheses?(node); end
|
||||||
def external_trailing_comma?(node); end
|
def external_trailing_comma?(node); end
|
||||||
def external_trailing_comma_offset_from_loc_end(node); end
|
def external_trailing_comma_offset_from_loc_end(node); end
|
||||||
@ -3352,13 +3356,13 @@ class RuboCop::Cop::Layout::LineContinuationSpacing < ::RuboCop::Cop::Base
|
|||||||
def comment_ranges(comments); end
|
def comment_ranges(comments); end
|
||||||
def find_offensive_spacing(line); end
|
def find_offensive_spacing(line); end
|
||||||
def ignore_range?(backtick_range); end
|
def ignore_range?(backtick_range); end
|
||||||
|
def ignored_literal_ranges(ast); end
|
||||||
def ignored_ranges; end
|
def ignored_ranges; end
|
||||||
def investigate(line, line_number); end
|
def investigate(line, line_number); end
|
||||||
def last_line(processed_source); end
|
def last_line(processed_source); end
|
||||||
def message(_range); end
|
def message(_range); end
|
||||||
def no_space_style?; end
|
def no_space_style?; end
|
||||||
def space_style?; end
|
def space_style?; end
|
||||||
def string_literal_ranges(ast); end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class RuboCop::Cop::Layout::LineEndStringConcatenationIndentation < ::RuboCop::Cop::Base
|
class RuboCop::Cop::Layout::LineEndStringConcatenationIndentation < ::RuboCop::Cop::Base
|
||||||
@ -5291,7 +5295,6 @@ class RuboCop::Cop::Lint::NestedMethodDefinition < ::RuboCop::Cop::Base
|
|||||||
include ::RuboCop::Cop::AllowedMethods
|
include ::RuboCop::Cop::AllowedMethods
|
||||||
include ::RuboCop::Cop::AllowedPattern
|
include ::RuboCop::Cop::AllowedPattern
|
||||||
|
|
||||||
def class_constructor?(param0 = T.unsafe(nil)); end
|
|
||||||
def eval_call?(param0 = T.unsafe(nil)); end
|
def eval_call?(param0 = T.unsafe(nil)); end
|
||||||
def exec_call?(param0 = T.unsafe(nil)); end
|
def exec_call?(param0 = T.unsafe(nil)); end
|
||||||
def on_def(node); end
|
def on_def(node); end
|
||||||
@ -5485,8 +5488,8 @@ class RuboCop::Cop::Lint::OutOfRangeRegexpRef < ::RuboCop::Cop::Base
|
|||||||
|
|
||||||
def check_regexp(node); end
|
def check_regexp(node); end
|
||||||
def nth_ref_receiver?(send_node); end
|
def nth_ref_receiver?(send_node); end
|
||||||
def patterns(pattern_node); end
|
|
||||||
def regexp_first_argument?(send_node); end
|
def regexp_first_argument?(send_node); end
|
||||||
|
def regexp_patterns(in_node); end
|
||||||
def regexp_receiver?(send_node); end
|
def regexp_receiver?(send_node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -5629,6 +5632,7 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Lint::RedundantCopDisableDirective::COP_NAME = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Lint::RedundantCopDisableDirective::COP_NAME = T.let(T.unsafe(nil), String)
|
||||||
RuboCop::Cop::Lint::RedundantCopDisableDirective::DEPARTMENT_MARKER = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Lint::RedundantCopDisableDirective::DEPARTMENT_MARKER = T.let(T.unsafe(nil), String)
|
||||||
|
RuboCop::Cop::Lint::RedundantCopDisableDirective::SIMILAR_COP_NAMES_CACHE = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Base
|
class RuboCop::Cop::Lint::RedundantCopEnableDirective < ::RuboCop::Cop::Base
|
||||||
include ::RuboCop::Cop::RangeHelp
|
include ::RuboCop::Cop::RangeHelp
|
||||||
@ -6316,7 +6320,6 @@ class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base
|
|||||||
include ::RuboCop::Cop::RangeHelp
|
include ::RuboCop::Cop::RangeHelp
|
||||||
extend ::RuboCop::Cop::AutoCorrector
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
def class_constructor?(param0 = T.unsafe(nil)); end
|
|
||||||
def class_or_instance_eval?(param0 = T.unsafe(nil)); end
|
def class_or_instance_eval?(param0 = T.unsafe(nil)); end
|
||||||
def dynamic_method_definition?(param0 = T.unsafe(nil)); end
|
def dynamic_method_definition?(param0 = T.unsafe(nil)); end
|
||||||
def on_block(node); end
|
def on_block(node); end
|
||||||
@ -7889,11 +7892,11 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def accessor?(send_node); end
|
|
||||||
def autocorrect(corrector, node); end
|
def autocorrect(corrector, node); end
|
||||||
def check(send_node); end
|
def check(send_node); end
|
||||||
def class_send_elements(class_node); end
|
def class_send_elements(class_node); end
|
||||||
def group_accessors(node, accessors); end
|
def group_accessors(node, accessors); end
|
||||||
|
def groupable_accessor?(node); end
|
||||||
def grouped_style?; end
|
def grouped_style?; end
|
||||||
def message(send_node); end
|
def message(send_node); end
|
||||||
def preferred_accessors(node); end
|
def preferred_accessors(node); end
|
||||||
@ -7903,7 +7906,6 @@ class RuboCop::Cop::Style::AccessorGrouping < ::RuboCop::Cop::Base
|
|||||||
def sibling_accessors(send_node); end
|
def sibling_accessors(send_node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Style::AccessorGrouping::ACCESSOR_METHODS = T.let(T.unsafe(nil), Array)
|
|
||||||
RuboCop::Cop::Style::AccessorGrouping::GROUPED_MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::AccessorGrouping::GROUPED_MSG = T.let(T.unsafe(nil), String)
|
||||||
RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Style::AccessorGrouping::SEPARATED_MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
@ -8809,7 +8811,7 @@ class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base
|
|||||||
include ::RuboCop::Cop::VisibilityHelp
|
include ::RuboCop::Cop::VisibilityHelp
|
||||||
include ::RuboCop::Cop::DefNode
|
include ::RuboCop::Cop::DefNode
|
||||||
|
|
||||||
def module_function_node?(param0 = T.unsafe(nil)); end
|
def modifier_node?(param0 = T.unsafe(nil)); end
|
||||||
def on_def(node); end
|
def on_def(node); end
|
||||||
def on_defs(node); end
|
def on_defs(node); end
|
||||||
|
|
||||||
@ -11673,10 +11675,10 @@ class RuboCop::Cop::Style::RedundantRegexpCharacterClass < ::RuboCop::Cop::Base
|
|||||||
private
|
private
|
||||||
|
|
||||||
def backslash_b?(elem); end
|
def backslash_b?(elem); end
|
||||||
def backslash_zero?(elem); end
|
|
||||||
def each_redundant_character_class(node); end
|
def each_redundant_character_class(node); end
|
||||||
def each_single_element_character_class(node); end
|
def each_single_element_character_class(node); end
|
||||||
def multiple_codepoins?(expression); end
|
def multiple_codepoins?(expression); end
|
||||||
|
def octal_requiring_char_class?(elem); end
|
||||||
def redundant_single_element_character_class?(node, char_class); end
|
def redundant_single_element_character_class?(node, char_class); end
|
||||||
def requires_escape_outside_char_class?(elem); end
|
def requires_escape_outside_char_class?(elem); end
|
||||||
def whitespace_in_free_space_mode?(node, elem); end
|
def whitespace_in_free_space_mode?(node, elem); end
|
||||||
@ -12907,13 +12909,15 @@ class RuboCop::Cop::Style::WordArray < ::RuboCop::Cop::Base
|
|||||||
extend ::RuboCop::Cop::AutoCorrector
|
extend ::RuboCop::Cop::AutoCorrector
|
||||||
|
|
||||||
def on_array(node); end
|
def on_array(node); end
|
||||||
|
def on_new_investigation; end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def build_bracketed_array(node); end
|
def build_bracketed_array(node); end
|
||||||
def complex_content?(strings, complex_regex: T.unsafe(nil)); end
|
def complex_content?(strings, complex_regex: T.unsafe(nil)); end
|
||||||
def invalid_percent_array_contents?(node); end
|
def invalid_percent_array_contents?(node); end
|
||||||
def within_2d_array_of_complex_content?(node); end
|
def matrix_of_complex_content?(array); end
|
||||||
|
def within_matrix_of_complex_content?(node); end
|
||||||
def word_regex; end
|
def word_regex; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
@ -13061,7 +13065,7 @@ class RuboCop::Cop::Team
|
|||||||
def investigate_partial(cops, processed_source, offset:, original:); end
|
def investigate_partial(cops, processed_source, offset:, original:); end
|
||||||
def process_errors(file, errors); end
|
def process_errors(file, errors); end
|
||||||
def reset; end
|
def reset; end
|
||||||
def roundup_relevant_cops(filename); end
|
def roundup_relevant_cops(processed_source); end
|
||||||
def support_target_rails_version?(cop); end
|
def support_target_rails_version?(cop); end
|
||||||
def support_target_ruby_version?(cop); end
|
def support_target_ruby_version?(cop); end
|
||||||
def suppress_clobbering; end
|
def suppress_clobbering; end
|
||||||
@ -13204,6 +13208,7 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Util::LINE_BEGINS_REGEX_CACHE = T.let(T.unsafe(nil), Hash)
|
RuboCop::Cop::Util::LINE_BEGINS_REGEX_CACHE = T.let(T.unsafe(nil), Hash)
|
||||||
RuboCop::Cop::Util::LITERAL_REGEX = T.let(T.unsafe(nil), Regexp)
|
RuboCop::Cop::Util::LITERAL_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||||
|
RuboCop::Cop::Util::MAX_LINE_BEGINS_REGEX_INDEX = T.let(T.unsafe(nil), Integer)
|
||||||
module RuboCop::Cop::Utils; end
|
module RuboCop::Cop::Utils; end
|
||||||
|
|
||||||
class RuboCop::Cop::Utils::FormatString
|
class RuboCop::Cop::Utils::FormatString
|
||||||
@ -6609,6 +6609,7 @@ module RuboCop::AST::NodePattern::Sets
|
|||||||
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
|
SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
|
||||||
SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
|
SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
|
||||||
SET_MAC_LINUX = ::T.let(nil, ::T.untyped)
|
SET_MAC_LINUX = ::T.let(nil, ::T.untyped)
|
||||||
|
SET_MODULE_FUNCTION_RUBY2_KEYWORDS = ::T.let(nil, ::T.untyped)
|
||||||
SET_ON_INTEL_ON_ARM = ::T.let(nil, ::T.untyped)
|
SET_ON_INTEL_ON_ARM = ::T.let(nil, ::T.untyped)
|
||||||
SET_OR_NEWER_OR_OLDER = ::T.let(nil, ::T.untyped)
|
SET_OR_NEWER_OR_OLDER = ::T.let(nil, ::T.untyped)
|
||||||
SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped)
|
SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped)
|
||||||
|
|||||||
@ -118,5 +118,5 @@ module Tty
|
|||||||
|
|
||||||
@stream.tty?
|
@stream.tty?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -103,7 +103,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.26.0/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.26.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/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.45.1/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.46.0/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-capybara-2.17.1/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-capybara-2.17.1/lib")
|
||||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.16.0/lib")
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.16.0/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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user