diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index e2572bf5aa..aeed10b559 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -130,7 +130,7 @@ GEM rspec-support (3.12.0) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.47.0) + rubocop (1.48.0) json (~> 2.3) parallel (~> 1.10) parser (>= 3.2.0.0) diff --git a/Library/Homebrew/cask/cask_loader.rb b/Library/Homebrew/cask/cask_loader.rb index ef44dff73f..d8a6bd41c9 100644 --- a/Library/Homebrew/cask/cask_loader.rb +++ b/Library/Homebrew/cask/cask_loader.rb @@ -59,7 +59,7 @@ module Cask attr_reader :token, :path - def initialize(path) + def initialize(path) # rubocop:disable Lint/MissingSuper path = Pathname(path).expand_path @token = path.basename(path.extname).to_s diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index f447afe1c6..a929f153b8 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -418,7 +418,7 @@ class Pathname def install_metafiles(from = Pathname.pwd) Pathname(from).children.each do |p| next if p.directory? - next if File.zero?(p) + next if File.empty?(p) next unless Metafiles.copy?(p.basename.to_s) # Some software symlinks these files (see help2man.rb) diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.47.0.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.48.0.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.47.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.48.0.rbi index 6b1aa555ed..cab1e4927f 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.47.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.48.0.rbi @@ -6349,6 +6349,7 @@ class RuboCop::Cop::Lint::UselessAccessModifier < ::RuboCop::Cop::Base def check_scope(node); end def check_send_node(node, cur_vis, unused); end def eval_call?(child); end + def included_block?(block_node); end def method_definition?(child); end def start_of_new_scope?(child); end end @@ -6840,6 +6841,14 @@ module RuboCop::Cop::MinBodyLength def min_body_length?(node); end end +module RuboCop::Cop::MinBranchesCount + private + + def if_conditional_branches(node, branches = T.unsafe(nil)); end + def min_branches_count; end + def min_branches_count?(node); end +end + module RuboCop::Cop::MultilineElementIndentation private @@ -8219,6 +8228,7 @@ class RuboCop::Cop::Style::BlockDelimiters < ::RuboCop::Cop::Base def remove_trailing_whitespace(corrector, range, comment); end def replace_braces_with_do_end(corrector, loc); end def replace_do_end_with_braces(corrector, node); end + def require_braces?(node); end def return_value_of_scope?(node); end def return_value_used?(node); end def semantic_block_style?(node); end @@ -8270,6 +8280,7 @@ RuboCop::Cop::Style::CaseEquality::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array class RuboCop::Cop::Style::CaseLikeIf < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp + include ::RuboCop::Cop::MinBranchesCount extend ::RuboCop::Cop::AutoCorrector def on_if(node); end @@ -8762,6 +8773,21 @@ end RuboCop::Cop::Style::Dir::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::Dir::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::Style::DirEmpty < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + def offensive?(param0 = T.unsafe(nil)); end + def on_send(node); end + + private + + def bang(node); end +end + +RuboCop::Cop::Style::DirEmpty::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::DirEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Style::DisableCopsWithinSourceCodeDirective < ::RuboCop::Cop::Base extend ::RuboCop::Cop::AutoCorrector @@ -9250,6 +9276,21 @@ end RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Style::FileEmpty < ::RuboCop::Cop::Base + extend ::RuboCop::Cop::AutoCorrector + extend ::RuboCop::Cop::TargetRubyVersion + + def offensive?(param0 = T.unsafe(nil)); end + def on_send(node); end + + private + + def bang(node); end +end + +RuboCop::Cop::Style::FileEmpty::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::FileEmpty::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Style::FileRead < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector @@ -9574,12 +9615,13 @@ RuboCop::Cop::Style::HashExcept::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::HashExcept::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Style::HashLikeCase < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MinBranchesCount + def hash_like_case?(param0 = T.unsafe(nil)); end def on_case(node); end private - def min_branches_count; end def nodes_of_same_type?(nodes); end end @@ -9713,6 +9755,7 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::StatementModifier include ::RuboCop::Cop::AllowedPattern + include ::RuboCop::Cop::CommentsHelp extend ::RuboCop::Cop::AutoCorrector def on_if(node); end @@ -9722,6 +9765,7 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base def allowed_patterns; end def another_statement_on_same_line?(node); end def autocorrect(corrector, node); end + def comment_on_node_line(node); end def defined_argument_is_undefined?(if_node, defined_node); end def defined_nodes(node); end def extract_heredoc_from(last_argument); end @@ -9729,9 +9773,13 @@ class RuboCop::Cop::Style::IfUnlessModifier < ::RuboCop::Cop::Base def named_capture_in_condition?(node); end def non_eligible_node?(node); end def non_simple_if_unless?(node); end + def remove_comment(corrector, _node, comment); end def remove_heredoc(corrector, heredoc); end + def replacement_for_modifier_form(corrector, node); end + def to_modifier_form_with_move_comment(node, indentation, comment); end def to_normal_form(node, indentation); end def to_normal_form_with_heredoc(node, indentation, heredoc); end + def too_long_due_to_comment_after_modifier?(node, comment); end def too_long_due_to_modifier?(node); end def too_long_line_based_on_allow_uri?(line); end def too_long_line_based_on_config?(range, line); end @@ -10583,6 +10631,7 @@ class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base def else_range(node); end def if_else?(node); end def if_range(node); end + def message(node); end def negated_condition?(node); end def swap_branches(corrector, node); end def unwrap_begin_nodes(node); end diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index f345e3fa0d..9a7b46cbc8 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -6647,14 +6647,18 @@ module RuboCop::AST::NodePattern::Sets SET_BASH_COMPLETION_ZSH_COMPLETION_FISH_COMPLETION = ::T.let(nil, ::T.untyped) SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped) + SET_FILE_FILETEST = ::T.let(nil, ::T.untyped) SET_FILE_TEMPFILE_STRINGIO = ::T.let(nil, ::T.untyped) SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped) SET_MAC_LINUX = ::T.let(nil, ::T.untyped) SET_ON_INTEL_ON_ARM = ::T.let(nil, ::T.untyped) SET_OR_NEWER_OR_OLDER = ::T.let(nil, ::T.untyped) + SET_READ_BINREAD = ::T.let(nil, ::T.untyped) SET_SKIP_PENDING = ::T.let(nil, ::T.untyped) SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped) SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped) + SET___10 = ::T.let(nil, ::T.untyped) + SET___9 = ::T.let(nil, ::T.untyped) SET____ETC_4 = ::T.let(nil, ::T.untyped) end diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 6296384289..43ea407120 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -103,7 +103,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.27.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/ruby-progressbar-1.13.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.47.0/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.48.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-capybara-2.17.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.16.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rails-2.18.0/lib")