Merge pull request #17048 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.63.0

build(deps-dev): bump rubocop from 1.62.1 to 1.63.0 in /Library/Homebrew
This commit is contained in:
Mike McQuaid 2024-04-08 20:09:31 +01:00 committed by GitHub
commit cb42d2769c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 483 additions and 258 deletions

View File

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

View File

@ -510,7 +510,7 @@ module Cask
end end
# Directory counts as empty if it only contains a `.DS_Store`. # 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:) Utils.gain_permissions_remove(ds_store, command:)
children.delete(ds_store) children.delete(ds_store)
end end

View File

@ -59,7 +59,7 @@ module Homebrew
if args.suggest_typed? if args.suggest_typed?
ohai "Bumping Sorbet `typed` sigils..." ohai "Bumping Sorbet `typed` sigils..."
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488 # --sorbet needed because of https://github.com/Shopify/spoom/issues/488
safe_system "bundle", "exec", "spoom", "bump", "--dry", "--sorbet", safe_system "bundle", "exec", "spoom", "srb", "bump", "--dry", "--sorbet",
"#{Gem.bin_path("sorbet", "srb")} tc" "#{Gem.bin_path("sorbet", "srb")} tc"
end end

View File

@ -12,7 +12,7 @@ class DevelopmentTools
# Give the name of the binary you look for as a string to this method # 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. # in order to get the full path back as a Pathname.
(@locate ||= {}).fetch(tool) do |key| (@locate ||= {}).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 Pathname.new path
# Homebrew GCCs most frequently; much faster to check this before xcrun # Homebrew GCCs most frequently; much faster to check this before xcrun
elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable? elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?

View File

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

View File

@ -29,6 +29,7 @@ gem:
- rubocop-md - rubocop-md
- rubocop-performance - rubocop-performance
- rubocop-rspec - rubocop-rspec
- rubocop-rspec_rails
- rubocop-sorbet - rubocop-sorbet
- ruby-prof - ruby-prof
- simplecov_json_formatter - simplecov_json_formatter

View File

@ -85,7 +85,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.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-ast-1.31.2/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/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/unicode-display_width-2.5.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.62.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-1.63.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-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-factory_bot-2.25.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.2/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rubocop-md-1.2.2/lib")