From 7a18e32068e50a0b527343b3e1851c2d978c7068 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 6 May 2021 09:18:47 +0000 Subject: [PATCH 1/3] build(deps): bump rubocop from 1.13.0 to 1.14.0 in /Library/Homebrew Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.13.0 to 1.14.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.13.0...v1.14.0) Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 9183e9441b..63769bb3c9 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -109,13 +109,13 @@ GEM rspec-support (3.10.2) rspec-wait (0.0.9) rspec (>= 3, < 4) - rubocop (1.13.0) + rubocop (1.14.0) parallel (~> 1.10) parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 1.2.0, < 2.0) + rubocop-ast (>= 1.5.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) rubocop-ast (1.5.0) From e6655be74f9262b829d29e46b794e534cf88b7e5 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 6 May 2021 09:21:16 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- Library/Homebrew/vendor/bundle/bundler/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index c968a42491..5181c6ce62 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -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/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/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-rails-2.10.0/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.3.0/lib" From d6811c517b8c17854692109c79e0c3dc617db1a8 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 6 May 2021 09:22:17 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop. --- ...{rubocop@1.13.0.rbi => rubocop@1.14.0.rbi} | 102 +++++++++++++++--- 1 file changed, 90 insertions(+), 12 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop@1.13.0.rbi => rubocop@1.14.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.13.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.13.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi index a196523818..61c0821b76 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.13.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi @@ -825,8 +825,8 @@ RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base include(::RuboCop::Cop::DefNode) + include(::RuboCop::Cop::GemDeclaration) - def gem_declaration?(param0 = T.unsafe(nil)); end def on_send(node); end 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) +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 include(::RuboCop::Cop::RangeHelp) 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) +module RuboCop::Cop::GemDeclaration + extend(::RuboCop::AST::NodePattern::Macros) + + def gem_declaration?(param0 = T.unsafe(nil)); end +end + module RuboCop::Cop::Gemspec end @@ -3232,6 +3262,8 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Cop def convertible_block?(node); end def max_line_length; 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 to_single_line(source); 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) +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 extend(::RuboCop::Cop::AutoCorrector) @@ -4095,28 +4140,48 @@ class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Base private def check(node); end - def deprecated_method(data); end - def method_call(class_constant, method); end - def replacement_method(data); end + def replacement(deprecated); 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 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_nodes; end - def deprecated_method; end - def replacement_method; end + def correctable?; end + def method; end + def to_s; end + + private + + def delimeter; 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::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 extend(::RuboCop::Cop::AutoCorrector) @@ -5615,11 +5680,14 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base def check(node); end def check_case(node); end def check_if(node); end + def conditional_continue_keyword?(break_statement); end def loop_method?(node); end def preceded_by_continue_statement?(break_statement); end def statements(node); 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) 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_normal_block(variable, all_arguments); end def message_for_underscore_prefix(variable); end + def used_block_local?(variable); end def variable_type(variable); end class << self @@ -7518,9 +7587,9 @@ class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base def compact_node_name?(node); end def indent_width; end def leading_spaces(node); end + def needs_compacting?(body); end def nest_definition(corrector, node); end def nest_or_compact(corrector, node); end - def one_child?(body); end def remove_end(corrector, body); end def replace_namespace_keyword(corrector, node); end def split_on_double_colon(corrector, node, padding); end @@ -9439,8 +9508,6 @@ end class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) - include(::RuboCop::Cop::VisibilityHelp) - include(::RuboCop::Cop::CommentsHelp) extend(::RuboCop::Cop::AutoCorrector) 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 corrected_ancestor?(node); end + def else_range(node); end def if_else?(node); end + def if_range(node); end def negated_condition?(node); end - def node_with_comments(node); end def swap_branches(corrector, node); end class << self @@ -10820,6 +10888,7 @@ class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base def each_part(body); end def method_body_source(method_body); end def move_comment(node, corrector); end + def require_parentheses?(method_body); end end 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_comment(corrector, node, if_branch); 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 offending_branch?(branch); 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 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 include(::RuboCop::Cop::VariableForce::Branch::ExceptionHandler) @@ -12982,6 +13059,7 @@ class RuboCop::TargetFinder def ruby_filenames; end def ruby_interpreters(file); 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 to_inspect?(file, hidden_files, base_dir_config); end def wanted_dir_patterns(base_dir, exclude_pattern, flags); end