Skip to content

Commit

Permalink
Add a bunch more UNDEFINED_CONSTANTS for startup.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MikeMcQuaid committed Aug 16, 2024
1 parent 21e3055 commit f719090
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Library/Homebrew/test/support/helper/cmd/brew-verify-undefined.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f719090

Please sign in to comment.