From 887db24b14bcb8052219217d122fdba7e261f226 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Mar 2022 18:05:38 +0000 Subject: [PATCH 1/3] build(deps): bump rubocop from 1.25.1 to 1.26.0 in /Library/Homebrew Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.25.1 to 1.26.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.25.1...v1.26.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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index c00c1f74bc..e0d54dbbe1 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -123,13 +123,13 @@ GEM rspec (>= 3, < 4) rspec_junit_formatter (0.5.1) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.25.1) + rubocop (1.26.0) parallel (~> 1.10) parser (>= 3.1.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 1.15.1, < 2.0) + rubocop-ast (>= 1.16.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) rubocop-ast (1.16.0) From 4e6521f151ad3dc4accd230a1b24dbc7ebb4d3b6 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 9 Mar 2022 18:08:15 +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 423413c342..f314823cd5 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.25.1/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.26.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.13.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.9.0/lib" From c9965657df0cc2ebcfd09b0215e56fa6515e7aea Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 9 Mar 2022 18:12:54 +0000 Subject: [PATCH 3/3] Update RBI files for rubocop. --- ...{rubocop@1.25.1.rbi => rubocop@1.26.0.rbi} | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop@1.25.1.rbi => rubocop@1.26.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.0.rbi index b05ba24a4f..cabfc9b7a5 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.26.0.rbi @@ -158,7 +158,7 @@ class RuboCop::CLI::Environment def run(name); end end -class RuboCop::CLI::Finished < ::RuntimeError; end +class RuboCop::CLI::Finished < ::StandardError; end RuboCop::CLI::STATUS_ERROR = T.let(T.unsafe(nil), Integer) RuboCop::CLI::STATUS_INTERRUPTED = T.let(T.unsafe(nil), Integer) RuboCop::CLI::STATUS_OFFENSES = T.let(T.unsafe(nil), Integer) @@ -720,6 +720,7 @@ class RuboCop::Cop::Badge def with_department(department); end class << self + def camel_case(name_part); end def for(class_name); end def parse(identifier); end end @@ -4795,12 +4796,11 @@ class RuboCop::Cop::Lint::InheritException < ::RuboCop::Cop::Base private - def illegal_class_name?(class_node); end + def exception_class?(class_node); end def message(node); end def preferred_base_class; end end -RuboCop::Cop::Lint::InheritException::ILLEGAL_CLASSES = T.let(T.unsafe(nil), Array) RuboCop::Cop::Lint::InheritException::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::InheritException::PREFERRED_BASE_CLASS = T.let(T.unsafe(nil), Hash) RuboCop::Cop::Lint::InheritException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) @@ -6015,6 +6015,7 @@ class RuboCop::Cop::Lint::UselessTimes < ::RuboCop::Cop::Base private + def autocorrect(corrector, count, node, proc_name); end def autocorrect_block(corrector, node); end def autocorrect_block_pass(corrector, node, proc_name); end def fix_indentation(source, range); end @@ -9244,17 +9245,17 @@ class RuboCop::Cop::Style::LambdaCall < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - def autocorrect(corrector, node); end def on_send(node); end private def explicit_style?; end def implicit_style?; end - def message(_node); end def offense?(node); end + def prefer(node); end end +RuboCop::Cop::Style::LambdaCall::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::LambdaCall::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Style::LineEndConcatenation < ::RuboCop::Cop::Base @@ -9784,6 +9785,23 @@ class RuboCop::Cop::Style::NegatedWhile < ::RuboCop::Cop::Base def on_while(node); end end +class RuboCop::Cop::Style::NestedFileDirname < ::RuboCop::Cop::Base + include ::RuboCop::Cop::RangeHelp + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + def file_dirname?(param0 = T.unsafe(nil)); end + def on_send(node); end + + private + + def offense_range(node); end + def path_with_dir_level(node, level); end +end + +RuboCop::Cop::Style::NestedFileDirname::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::NestedFileDirname::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Style::NestedModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -11345,6 +11363,7 @@ class RuboCop::Cop::Style::StringConcatenation < ::RuboCop::Cop::Base def corrected_ancestor?(node); end def find_topmost_plus_node(node); end def handle_quotes(parts); end + def heredoc?(node); end def line_end_concatenation?(node); end def offensive_for_mode?(receiver_node); end def plus_node?(node); end @@ -13318,7 +13337,7 @@ class RuboCop::Runner def warm_cache(target_files); end end -class RuboCop::Runner::InfiniteCorrectionLoop < ::RuntimeError +class RuboCop::Runner::InfiniteCorrectionLoop < ::StandardError def initialize(path, offenses_by_iteration, loop_start: T.unsafe(nil)); end def offenses; end