brew/Library/Homebrew/test/support/helper/cmd/brew-verify-formula-undefined.rb

17 lines
323 B
Ruby
Raw Normal View History

2020-11-25 17:03:23 +01:00
# typed: strict
# frozen_string_literal: true
require "cli/parser"
parser = Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`verify-formula-undefined`
Verifies that `require "formula"` has not been performed at startup.
EOS
end
parser.parse
Homebrew.failed = defined?(Formula) && Formula.respond_to?(:[])