Merge pull request #17355 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.64.0

build(deps-dev): bump rubocop from 1.63.5 to 1.64.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2024-05-23 17:26:00 +01:00 committed by GitHub
commit ff950e6629
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 627 additions and 356 deletions

View File

@ -406,6 +406,11 @@ Style/RescueStandardError:
Style/ReturnNil:
Enabled: true
# Broken with rubocop-1.64.0, tries to autocorrect calls to e.g. :"1?"
# TODO: report to rubocop
Style/SendWithLiteralMethodName:
Enabled: false
# We have no use for using `warn` because we
# are calling Ruby with warnings disabled.
Style/StderrPuts:

View File

@ -82,7 +82,7 @@ GEM
rspec-support (3.13.1)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.63.5)
rubocop (1.64.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)

View File

@ -38,7 +38,7 @@ module Cask
def initialize(cask, **directives)
directives.assert_valid_keys(*ORDERED_DIRECTIVES)
super(cask, **directives)
super
directives[:signal] = Array(directives[:signal]).flatten.each_slice(2).to_a
@directives = directives

View File

@ -8,7 +8,7 @@ module Cask
# Artifact corresponding to the `binary` stanza.
class Binary < Symlinked
def link(command: nil, **options)
super(command:, **options)
super
return if source.executable?
if source.writable?

View File

@ -69,7 +69,7 @@ module Cask
attr_reader :path, :args
def initialize(cask, **args)
super(cask, **args)
super
if args.key?(:manual)
@path = Pathname(args[:manual])

View File

@ -8,12 +8,12 @@ module Cask
# Artifact corresponding to the `keyboard_layout` stanza.
class KeyboardLayout < Moved
def install_phase(**options)
super(**options)
super
delete_keyboard_layout_cache(**options)
end
def uninstall_phase(**options)
super(**options)
super
delete_keyboard_layout_cache(**options)
end

View File

@ -13,7 +13,7 @@ module Cask
end
def install_phase(**options)
super(**options)
super
reload_spotlight(**options)
end

View File

@ -19,7 +19,7 @@ module Cask
end
def initialize(cask, path, **stanza_options)
super(cask, path, **stanza_options)
super
@path = cask.staged_path.join(path)
@stanza_options = stanza_options
end

View File

@ -13,12 +13,12 @@ module Cask
end
def install_phase(**options)
super(**options)
super
reload_quicklook(**options)
end
def uninstall_phase(**options)
super(**options)
super
reload_quicklook(**options)
end

View File

@ -38,7 +38,7 @@ module Cask
.void
}
def initialize(cask, source, **target_hash)
super(cask, source, **target_hash)
super
target = target_hash[:target]
@source_string = source.to_s

View File

@ -20,7 +20,7 @@ module Cask
attr_predicate :discontinued?
def initialize(*args)
super(*args)
super
@built_in_caveats = {}
@custom_caveats = []
@discontinued = false

View File

@ -15,7 +15,7 @@ module Homebrew
def initialize
require "cli/named_args"
super()
super
@processed_options = []
@options_only = []

View File

@ -256,7 +256,7 @@ class UsesFromMacOSDependency < Dependency
sig { params(minimum_version: T.nilable(Version), minimum_revision: T.nilable(Integer)).returns(T::Boolean) }
def installed?(minimum_version: nil, minimum_revision: nil)
use_macos_install? || super(minimum_version:, minimum_revision:)
use_macos_install? || super
end
sig { returns(T::Boolean) }

View File

@ -146,11 +146,11 @@ class AbstractDownloadStrategy
private
def puts(*args)
super(*args) unless quiet?
super unless quiet?
end
def ohai(*args)
super(*args) unless quiet?
super unless quiet?
end
def silent_command(*args, **options)
@ -605,7 +605,7 @@ class HomebrewCurlDownloadStrategy < CurlDownloadStrategy
raise HomebrewCurlDownloadStrategyError, url unless Formula["curl"].any_version_installed?
options[:use_homebrew_curl] = true
super(*args, **options)
super
end
end
@ -620,7 +620,7 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy
# GitHub Packages authorization header.
# HOMEBREW_GITHUB_PACKAGES_AUTH set in brew.sh
meta[:headers] << "Authorization: #{HOMEBREW_GITHUB_PACKAGES_AUTH}"
super(url, name, version, **meta)
super
end
private

View File

@ -128,7 +128,7 @@ module Stdenv
sig { void }
def clang
super()
super
replace_in_cflags(/-Xarch_#{Hardware::CPU.arch_32_bit} (-march=\S*)/, '\1')
map = Hardware::CPU.optimization_flags.dup
if DevelopmentTools.clang_build_version < 700

View File

@ -21,11 +21,11 @@ module InstallRenamed
end
def +(other)
super(other).extend(InstallRenamed)
super.extend(InstallRenamed)
end
def /(other)
super(other).extend(InstallRenamed)
super.extend(InstallRenamed)
end
private

View File

@ -22,7 +22,7 @@ module Homebrew
# Don't duplicate the URL if the link text is the same as the URL.
"<#{text}>"
else
super(element, options)
super
end
end
end

View File

@ -11,7 +11,7 @@ class ArchRequirement < Requirement
def initialize(tags)
@arch = tags.shift
super(tags)
super
end
satisfy(build_env: false) do

View File

@ -13,7 +13,7 @@ class CodesignRequirement < Requirement
@identity = options.fetch(:identity)
@with = options.fetch(:with, "code signing")
@url = options.fetch(:url, nil)
super(tags)
super
end
satisfy(build_env: false) do

View File

@ -88,7 +88,7 @@ class MacOSRequirement < Requirement
end
def ==(other)
super(other) && comparator == other.comparator && version == other.version
super && comparator == other.comparator && version == other.version
end
alias eql? ==

View File

@ -16,7 +16,7 @@ class XcodeRequirement < Requirement
def initialize(tags = [])
@version = tags.shift if tags.first.to_s.match?(/(\d\.)+\d/)
super(tags)
super
end
sig { returns(T::Boolean) }

View File

@ -143,7 +143,7 @@ class Resource < Downloadable
def fetch(verify_download_integrity: true)
fetch_patches
super(verify_download_integrity:)
super
end
# {Livecheck} can be used to check for newer versions of the software.

View File

@ -13,19 +13,19 @@ unless ENV["HOMEBREW_SORBET_RUNTIME"]
# @private
module TNoChecks
def cast(value, type, checked: false)
super(value, type, checked:)
super
end
def let(value, type, checked: false)
super(value, type, checked:)
super
end
def bind(value, type, checked: false)
super(value, type, checked:)
super
end
def assert_type!(value, type, checked: false)
super(value, type, checked:)
super
end
end

View File

@ -18,7 +18,7 @@ RSpec.describe Homebrew::Cmd::UpdateReport do
ENV["HOMEBREW_UPDATE_BEFORE#{tap.repo_var_suffix}"] = "12345678"
ENV["HOMEBREW_UPDATE_AFTER#{tap.repo_var_suffix}"] = "abcdef00"
super(tap)
super
end
end
end

View File

@ -94,7 +94,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.31.3/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.5.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.63.5/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.64.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-capybara-2.20.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-factory_bot-2.25.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.2/lib")

View File

@ -23,7 +23,7 @@ module Homebrew
# Ignore non-documentation comments.
content = content&.sub(/\A(typed|.*rubocop):.*/m, "")
content = super(content)
content = super
source = handler&.statement&.source