Merge pull request #19900 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.75.5

build(deps-dev): bump rubocop from 1.75.2 to 1.75.5 in /Library/Homebrew
This commit is contained in:
Patrick Linnane 2025-05-06 03:59:42 +00:00 committed by GitHub
commit 541d8879c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 406 additions and 341 deletions

View File

@ -78,7 +78,7 @@ GEM
rspec-support (3.13.3)
rspec_junit_formatter (0.6.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (1.75.2)
rubocop (1.75.5)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)

View File

@ -514,7 +514,7 @@ module Cask
end
# Directory counts as empty if it only contains a `.DS_Store`.
if children.include?((ds_store = resolved_path/".DS_Store"))
if children.include?(ds_store = resolved_path/".DS_Store")
Utils.gain_permissions_remove(ds_store, command:)
children.delete(ds_store)
end

View File

@ -147,7 +147,7 @@ module Homebrew
{},
T.nilable(T::Hash[
T.nilable(Symbol),
T::Array[T.any(Formula, Keg, Cask::Cask, T::Array[Keg], FormulaOrCaskUnavailableError)]
T::Array[T.any(Formula, Keg, Cask::Cask, T::Array[Keg], FormulaOrCaskUnavailableError)],
]),
)
@to_formulae_casks_unknowns[method] = downcased_unique_named.map do |name|

View File

@ -177,7 +177,7 @@ module Homebrew
sig { returns(T::Array[Formula]) }
def outdated_formulae
T.cast(
select_outdated((args.named.to_resolved_formulae.presence || Formula.installed)).sort,
select_outdated(args.named.to_resolved_formulae.presence || Formula.installed).sort,
T::Array[Formula],
)
end

View File

@ -17,7 +17,7 @@ class DevelopmentTools
# Give the name of the binary you look for as a string to this method
# in order to get the full path back as a Pathname.
(@locate ||= T.let({}, T.nilable(T::Hash[T.any(String, Symbol), T.untyped]))).fetch(tool) do |key|
@locate[key] = if File.executable?((path = "/usr/bin/#{tool}"))
@locate[key] = if File.executable?(path = "/usr/bin/#{tool}")
Pathname.new path
# Homebrew GCCs most frequently; much faster to check this before xcrun
elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?

View File

@ -20,7 +20,7 @@ module OS
glibc_path
elsif (homebrew_path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
homebrew_path
elsif File.executable?((system_path = "/usr/bin/#{tool}"))
elsif File.executable?(system_path = "/usr/bin/#{tool}")
Pathname.new system_path
end
end

View File

@ -192,7 +192,7 @@ class SBOM
T::Array[
T::Hash[
Symbol,
T.any(String, T::Array[T::Hash[Symbol, String]])
T.any(String, T::Array[T::Hash[Symbol, String]]),
],
],
)

View File

@ -118,7 +118,7 @@ RSpec.describe Cask::Pkg, :cask do
pkg.uninstall
expect(fake_dir).to be_a_directory
expect((fake_dir.stat.mode % 01000)).to eq(0)
expect(fake_dir.stat.mode % 01000).to eq(0)
fake_dir.chmod(0777)
expect(fake_file).to be_a_file

View File

@ -22,7 +22,7 @@ module Utils
gnu_tar_gtar_path = HOMEBREW_PREFIX/"opt/gnu-tar/bin/gtar"
gnu_tar_gtar = gnu_tar_gtar_path if gnu_tar_gtar_path.executable?
@executable = T.let((which("gtar") || gnu_tar_gtar || which("tar")), T.nilable(Pathname))
@executable = T.let(which("gtar") || gnu_tar_gtar || which("tar"), T.nilable(Pathname))
end
sig { params(path: T.any(Pathname, String)).void }

View File

@ -95,7 +95,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.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-emoji-4.0.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/unicode-display_width-3.1.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.75.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.75.5/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-2.0.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-performance-1.25.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-rspec-3.6.0/lib")