Merge pull request #1228 from jonchang/audit

audit: forbid `deprecated_option` in new formulae
This commit is contained in:
Mike McQuaid 2016-10-07 17:08:11 +01:00 committed by GitHub
commit 7af8cdcb04

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