From 14516da529de99de02c6ef5358aadfe2c6d0407f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Apr 2022 18:03:21 +0000 Subject: [PATCH 1/3] build(deps): bump rubocop from 1.26.1 to 1.27.0 in /Library/Homebrew Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.26.1 to 1.27.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.26.1...v1.27.0) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index b631a9048b..e961f8e88b 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -123,7 +123,7 @@ GEM rspec (>= 3, < 4) rspec_junit_formatter (0.5.1) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.26.1) + rubocop (1.27.0) parallel (~> 1.10) parser (>= 3.1.0.0) rainbow (>= 2.2.2, < 4.0) From 3029c9a35c42d36f503b2013a88377f142a2124b Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 8 Apr 2022 18:06:22 +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 a7b8638af9..73badea340 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -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/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/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-rails-2.14.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.9.0/lib" From 7d0625a669e993ef25f7dac45ba712862fdc8dcd Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 8 Apr 2022 18:12:13 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop. --- ...{rubocop@1.26.1.rbi => rubocop@1.27.0.rbi} | 43 +++++++++++++++++-- 1 file changed, 39 insertions(+), 4 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop@1.26.1.rbi => rubocop@1.27.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.27.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.27.0.rbi index 1a67d8c35e..454826ffb4 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.27.0.rbi @@ -691,6 +691,7 @@ module RuboCop::Cop::AutocorrectLogic def autocorrect?; end def autocorrect_enabled?; end def autocorrect_requested?; end + def autocorrect_with_disable_uncorrectable?; end def correctable?; end def disable_uncorrectable?; end def safe_autocorrect?; end @@ -1010,8 +1011,7 @@ end RuboCop::Cop::CodeLength::MSG = T.let(T.unsafe(nil), String) module RuboCop::Cop::CommentsHelp - include ::RuboCop::Cop::VisibilityHelp - + def contains_comments?(node); end def source_range_with_comment(node); end private @@ -1019,6 +1019,7 @@ module RuboCop::Cop::CommentsHelp def begin_pos_with_comment(node); end def buffer; end def end_position_for(node); end + def find_end_line(node); end def start_line_position(node); 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) class RuboCop::Cop::Lint::EmptyConditionalBody < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + def on_if(node); end end @@ -4574,6 +4577,7 @@ end RuboCop::Cop::Lint::EmptyFile::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Lint::EmptyInPattern < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::TargetRubyVersion def on_case_match(node); end @@ -4591,6 +4595,8 @@ end RuboCop::Cop::Lint::EmptyInterpolation::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Lint::EmptyWhen < ::RuboCop::Cop::Base + include ::RuboCop::Cop::CommentsHelp + def on_case(node); 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 extend ::RuboCop::Cop::AutoCorrector + def lambda_with_symbol_proc?(param0 = T.unsafe(nil)); end def on_send(node); 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_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 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 def before_declaring_variable(variable, variable_table); end def ractor_block?(param0 = T.unsafe(nil)); end + def same_conditions_node_different_branch?(variable, outer_local_variable); end class << self 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 include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::CommentsHelp + include ::RuboCop::Cop::VisibilityHelp include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -8270,9 +8287,12 @@ class RuboCop::Cop::Style::DoubleNegation < ::RuboCop::Cop::Base private 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 find_conditional_node_from_ascendant(node); end def find_def_node_from_ascendant(node); end def find_last_child(node); end + def find_parent_not_enumerable(node); end end 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_exploded_to_compact(node); end def requires_parens?(parent); end + def use_new_method?(first_arg); end end 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::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 include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::PercentLiteral @@ -11014,7 +11048,7 @@ class RuboCop::Cop::Style::SafeNavigation < ::RuboCop::Cop::Base def allowed_if_condition?(node); end def autocorrect(corrector, node); 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 end_range(node, method_call); 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 find_matching_receiver_invocation(method_chain, checked_variable); end def handle_comments(corrector, node, method_call); end + def max_chain_length; end def method_call(node); end def method_called?(send_node); end def negated?(send_node); end