standalone/init: enable more warnings for developers

This commit is contained in:
Bo Anderson 2025-04-16 16:37:03 +01:00
parent f6d9276f8b
commit 30c7e6024f
No known key found for this signature in database

View File

@ -24,6 +24,13 @@ else
vendored_versions.include?("#{ruby_major}.#{ruby_minor}") vendored_versions.include?("#{ruby_major}.#{ruby_minor}")
end.freeze end.freeze
# TODO(odeprecated): remove `respond_to?` check when required Ruby >= 3.4
if ENV["HOMEBREW_DEVELOPER"] && Warning.respond_to?(:categories)
Warning.categories.each do |category|
Warning[category] = true
end
end
# Setup Homebrew::FastBootRequire for faster boot requires. # Setup Homebrew::FastBootRequire for faster boot requires.
# Inspired by https://github.com/Shopify/bootsnap/wiki/Bootlib::Require # Inspired by https://github.com/Shopify/bootsnap/wiki/Bootlib::Require
require "rbconfig" require "rbconfig"