From f719090446ff532a7f6f474cf90fd9f27313576f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 16 Aug 2024 12:33:26 +0100 Subject: [PATCH] Add a bunch more `UNDEFINED_CONSTANTS` for startup. This should avoid these getting included globally in future. I found this list from a combination of https://github.com/Homebrew/brew/pull/17707/files, looking at the Gemfile and just looking around myself. --- .../helper/cmd/brew-verify-undefined.rb | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb b/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb index 1ff079737c28e..8d8a8cd63ed51 100755 --- a/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb +++ b/Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb @@ -4,11 +4,52 @@ require "cli/parser" UNDEFINED_CONSTANTS = %w[ + AbstractDownloadStrategy + Addressable + Base64 + CacheStore Cask::Cask + Cask::CaskLoader + Completions + CSV Formula Formulary + GitRepository Homebrew::API + Homebrew::Manpages + Homebrew::Settings + JSONSchemer + Kramdown + Metafiles + MethodSource + Minitest + Nokogiri + OS::Mac::Version + Parlour + PatchELF + Pry + ProgressBar + REXML + Red + RSpec + RuboCop + StackProf + Spoom Tap + Tapioca + UnpackStrategy + Utils::Analytics + Utils::Backtrace + Utils::Bottles + Utils::Curl + Utils::Fork + Utils::Git + Utils::GitHub + Utils::Link + Utils::Svn + Uri + Vernier + YARD ].freeze module Homebrew