audit: forbid deprecated_option in new formulae

This commit is contained in:
Jonathan Chang 2016-10-05 13:55:49 -07:00
parent 47d57ca995
commit 5b360c57e3

View File

@ -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