From 0d4eca2f032c2ab9669be39c2269605823078379 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:07:33 +0000 Subject: [PATCH 1/3] build(deps): bump rubocop from 1.42.0 to 1.43.0 in /Library/Homebrew Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.42.0 to 1.43.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.42.0...v1.43.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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 1fd54d6a4f..aacc1990f0 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -132,16 +132,16 @@ GEM rspec (>= 3, < 4) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.42.0) + rubocop (1.43.0) json (~> 2.3) parallel (~> 1.10) - parser (>= 3.1.2.1) + parser (>= 3.2.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) rubocop-ast (>= 1.24.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) + unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.24.1) parser (>= 3.1.1.0) rubocop-performance (1.15.2) From 04621dc33fa1684d82b74f8217c0554ba0ad23b6 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:11:36 +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 f576ef26ce..31ecf98aec 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -104,7 +104,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.24.1/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/rubocop-1.42.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.43.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.15.2/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-rspec-2.16.0/lib") From 4381816883bac11168c13368eaf42fdc174cdb17 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 10 Jan 2023 18:18:02 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow. --- ...{rubocop@1.42.0.rbi => rubocop@1.43.0.rbi} | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop@1.42.0.rbi => rubocop@1.43.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.42.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.43.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.42.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.43.0.rbi index 05aaeb4abf..6364190f99 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.42.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.43.0.rbi @@ -1901,6 +1901,7 @@ module RuboCop::Cop::HashShorthandSyntax private + def brackets?(send_node); end def breakdown_value_types_of_hash(hash_node); end def def_node_that_require_parentheses(node); end def each_omittable_value_pair(hash_value_type_breakdown, &block); end @@ -6363,6 +6364,16 @@ end RuboCop::Cop::Lint::UselessMethodDefinition::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Lint::UselessRescue < ::RuboCop::Cop::Base + def on_rescue(node); end + + private + + def only_reraising?(resbody_node); end +end + +RuboCop::Cop::Lint::UselessRescue::MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Lint::UselessRuby2Keywords < ::RuboCop::Cop::Base def method_definition(param0 = T.unsafe(nil), param1); end def on_send(node); end @@ -6630,6 +6641,7 @@ class RuboCop::Cop::Metrics::ParameterLists < ::RuboCop::Cop::Base def on_args(node); end def on_def(node); end def on_defs(node); end + def struct_new_or_data_define_block?(param0 = T.unsafe(nil)); end private @@ -7758,6 +7770,7 @@ end module RuboCop::Cop::StatementModifier include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp private @@ -9360,9 +9373,9 @@ RuboCop::Cop::Style::GlobalVars::BUILT_IN_VARS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Style::GlobalVars::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::GuardClause < ::RuboCop::Cop::Base + include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::MinBodyLength - include ::RuboCop::Cop::LineLengthHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector @@ -9454,6 +9467,7 @@ class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base def correct_key_value_each(node, corrector); end def format_message(method_name); end def kv_range(outer_node); end + def receiver_name(receiver); end def register_kv_offense(target, method); end def register_kv_with_block_pass_offense(node, target, method); end def used?(arg); end @@ -9623,9 +9637,9 @@ RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::AllowedPattern - include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector def on_if(node); end @@ -9659,6 +9673,7 @@ RuboCop::Cop::Style::IfUnlessModifier::MSG_USE_NORMAL = T.let(T.unsafe(nil), Str class RuboCop::Cop::Style::IfUnlessModifierOfIfUnless < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector @@ -10159,6 +10174,7 @@ RuboCop::Cop::Style::MinMaxComparison::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base include ::RuboCop::Cop::OnNormalIfUnless include ::RuboCop::Cop::ConfigurableEnforcedStyle + extend ::RuboCop::Cop::AutoCorrector def on_case(node); end def on_case_match(node); end @@ -10166,6 +10182,7 @@ class RuboCop::Cop::Style::MissingElse < ::RuboCop::Cop::Base private + def autocorrect(corrector, node); end def case_style?; end def check(node); end def empty_else_config; end @@ -10257,6 +10274,7 @@ RuboCop::Cop::Style::MultilineBlockChain::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::MultilineIfModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::Alignment extend ::RuboCop::Cop::AutoCorrector @@ -10865,6 +10883,8 @@ class RuboCop::Cop::Style::OperatorMethodCall < ::RuboCop::Cop::Base private + def anonymous_forwarding?(argument); end + def method_call_with_parenthesized_arg?(argument); end def wrap_in_parentheses_if_chained(corrector, node); end end @@ -12773,6 +12793,7 @@ RuboCop::Cop::Style::WhileUntilDo::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Style::WhileUntilModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::LineLengthHelp + include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::StatementModifier extend ::RuboCop::Cop::AutoCorrector @@ -14255,6 +14276,7 @@ module RuboCop::PathUtil end RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String) +RuboCop::PathUtil::SMART_PATH_CACHE = T.let(T.unsafe(nil), Hash) module RuboCop::Platform class << self