From 6ff0732453831224fd6eb919044b0e3a981bde06 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 May 2021 05:44:26 +0000 Subject: [PATCH 1/4] build(deps): bump rubocop from 1.14.0 to 1.15.0 in /Library/Homebrew Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.14.0 to 1.15.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.14.0...v1.15.0) 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 9bb428a807..c8ed41e87b 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -109,7 +109,7 @@ GEM rspec-support (3.10.2) rspec-wait (0.0.9) rspec (>= 3, < 4) - rubocop (1.14.0) + rubocop (1.15.0) parallel (~> 1.10) parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) From c146dd4b55e37b174bc22f01ba27774eb074eb32 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 18 May 2021 05:46:42 +0000 Subject: [PATCH 2/4] 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 2bf4d9a191..44b4c6bfee 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.14.0/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.15.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.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.3.0/lib" From 847d7a233d611992e07228089a1d79e261c1f6d7 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 18 May 2021 05:47:40 +0000 Subject: [PATCH 3/4] Update RBI files for rubocop. --- ...{rubocop@1.14.0.rbi => rubocop@1.15.0.rbi} | 33 +++++++++++++++++-- .../sorbet/rbi/hidden-definitions/hidden.rbi | 1 + 2 files changed, 31 insertions(+), 3 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rubocop@1.14.0.rbi => rubocop@1.15.0.rbi} (99%) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.15.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.15.0.rbi index 61c0821b76..d899556e0b 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.14.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.15.0.rbi @@ -943,6 +943,7 @@ module RuboCop::Cop::CheckLineBreakable def extract_first_element_over_column_limit(node, elements, max); end def process_args(args); end def safe_to_ignore?(node); end + def shift_elements_for_heredoc_arg(node, elements, index); end def within_column_limit?(element, max, line); end end @@ -1450,6 +1451,7 @@ module RuboCop::Cop::FrozenStringLiteral def frozen_string_literal_comment_exists?; end def frozen_string_literal_specified?; end + def frozen_string_literals_disabled?; end def frozen_string_literals_enabled?; end def leading_comment_lines; end @@ -1866,9 +1868,10 @@ class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Base private def autocorrect(corrector, node); end - def base_column(node, args); end + def base_column(node, first_argument); end def fixed_indentation?; end def message(_node); end + def multiple_arguments?(node, first_argument); end def target_method_lineno(node); end end @@ -2669,12 +2672,14 @@ class RuboCop::Cop::Layout::FirstHashElementIndentation < ::RuboCop::Cop::Base private + def argument_alignment_config; end def autocorrect(corrector, node); end def base_description(left_parenthesis); end def brace_alignment_style; end def check(hash_node, left_parenthesis); end def check_based_on_longest_key(hash_node, left_brace, left_parenthesis); end def check_right_brace(right_brace, left_brace, left_parenthesis); end + def enforce_first_argument_with_fixed_indentation?; end def message(base_description); end def message_for_right_brace(left_parenthesis); end def separator_style?(first_pair); end @@ -2753,12 +2758,14 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base def alignment_for(pair); end def alignment_for_colons; end def alignment_for_hash_rockets; end + def argument_alignment_config; end def check_delta(delta, node:, alignment:); end def check_pairs(node); end def correct_key_value(corrector, delta, key, value, separator); end def correct_no_value(corrector, key_delta, key); end def correct_node(corrector, node, delta); end def double_splat?(node); end + def enforce_first_argument_with_fixed_indentation?; end def good_alignment?(column_deltas); end def ignore_hash_argument?(node); end def new_alignment(key); end @@ -4375,6 +4382,7 @@ class RuboCop::Cop::Lint::EmptyBlock < ::RuboCop::Cop::Base def allow_comment?(node); end def allow_empty_lambdas?; end def comment_disables_cop?(comment); end + def lambda_or_proc?(node); end end RuboCop::Cop::Lint::EmptyBlock::MSG = T.let(T.unsafe(nil), String) @@ -7585,6 +7593,7 @@ class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base def compact_identifier_name(node); end def compact_node(corrector, node); end def compact_node_name?(node); end + def compact_replacement(node); end def indent_width; end def leading_spaces(node); end def needs_compacting?(body); end @@ -8225,6 +8234,7 @@ class RuboCop::Cop::Style::EmptyLiteral < ::RuboCop::Cop::Base def correction(node); end def enforce_double_quotes?; end def first_argument_unparenthesized?(node); end + def frozen_strings?; end def offense_array_node?(node); end def offense_hash_node?(node); end def offense_message(node); end @@ -9681,6 +9691,10 @@ class RuboCop::Cop::Style::NilLambda < ::RuboCop::Cop::Base def nil_return?(param0 = T.unsafe(nil)); end def on_block(node); end + + private + + def autocorrect(corrector, node); end end RuboCop::Cop::Style::NilLambda::MSG = T.let(T.unsafe(nil), String) @@ -11291,6 +11305,18 @@ RuboCop::Cop::Style::TernaryParentheses::NON_COMPLEX_TYPES = T.let(T.unsafe(nil) RuboCop::Cop::Style::TernaryParentheses::VARIABLE_TYPES = T.let(T.unsafe(nil), Set) +class RuboCop::Cop::Style::TopLevelMethodDefinition < ::RuboCop::Cop::Base + def define_method_block?(param0 = T.unsafe(nil)); end + def on_block(node); end + def on_def(node); end + def on_defs(node); end + def on_send(node); end +end + +RuboCop::Cop::Style::TopLevelMethodDefinition::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Style::TopLevelMethodDefinition::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Style::TrailingBodyOnClass < ::RuboCop::Cop::Base include(::RuboCop::Cop::Alignment) include(::RuboCop::Cop::TrailingBody) @@ -12576,6 +12602,7 @@ end class RuboCop::Formatter::JUnitFormatter < ::RuboCop::Formatter::BaseFormatter def initialize(output, options = T.unsafe(nil)); end + def add_testcase_element_to_testsuite_element(file, target_offenses, cop); end def classname_attribute_value(file); end def file_finished(file, offenses); end def finished(_inspected_files); end @@ -12585,6 +12612,7 @@ class RuboCop::Formatter::JUnitFormatter < ::RuboCop::Formatter::BaseFormatter private def add_failure_to(testcase, offenses, cop_name); end + def reset_count; end end class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseFormatter @@ -12855,7 +12883,7 @@ class RuboCop::OptionsValidator def initialize(options); end def boolean_or_empty_cache?; end - def disable_parallel_when_invalid_combo; end + def disable_parallel_when_invalid_option_combo; end def display_only_fail_level_offenses_with_autocorrect?; end def except_syntax?; end def incompatible_options; end @@ -12867,7 +12895,6 @@ class RuboCop::OptionsValidator def validate_cop_options; end def validate_display_only_failed; end def validate_exclude_limit_option; end - def validate_parallel; end class << self def validate_cop_list(names); end diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index 2a12046c49..3d6723b74d 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -26784,6 +26784,7 @@ end module RuboCop::AST::NodePattern::Sets SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) + SET_DEFINE_METHOD = ::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_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped) From 2ce6cd5e81fa0b16f65f6498b0171f049a500256 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 18 May 2021 11:58:44 +0100 Subject: [PATCH 4/4] brew style --fix --- Library/Homebrew/cask/installer.rb | 2 +- Library/Homebrew/download_strategy.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/installer.rb b/Library/Homebrew/cask/installer.rb index 7f61828f58..e6241fb3ea 100644 --- a/Library/Homebrew/cask/installer.rb +++ b/Library/Homebrew/cask/installer.rb @@ -167,7 +167,7 @@ module Cask sig { params(quiet: T.nilable(T::Boolean), timeout: T.nilable(T.any(Integer, Float))).returns(Pathname) } def download(quiet: nil, timeout: nil) @download ||= downloader.fetch(quiet: quiet, verify_download_integrity: @verify_download_integrity, -timeout: timeout) + timeout: timeout) end def verify_has_sha diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 92c8faff31..d0c755ed57 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -714,7 +714,7 @@ class SubversionDownloadStrategy < VCSDownloadStrategy sig { params(target: Pathname, url: String, revision: T.nilable(String), ignore_externals: T::Boolean, - timeout: T.nilable(Time)).void + timeout: T.nilable(Time)).void } def fetch_repo(target, url, revision = nil, ignore_externals: false, timeout: nil) # Use "svn update" when the repository already exists locally.