Skip to content
Snippets Groups Projects
Commit 5b360c57 authored by Jonathan Chang's avatar Jonathan Chang
Browse files

audit: forbid `deprecated_option` in new formulae

parent 47d57ca9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment