diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 4a86f4c045..de53b02921 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -448,6 +448,11 @@ class FormulaAuditor problem "Use '--with#{$1}-test' instead of '--#{o.name}'. Migrate '--#{o.name}' with `deprecated_option`." end end + + return unless @new_formula + unless formula.deprecated_options.empty? + problem "New formulae should not use `deprecated_option`." + end end def audit_desc