audit: forbid deprecated_option in new formulae
This commit is contained in:
parent
47d57ca995
commit
5b360c57e3
@ -448,6 +448,11 @@ class FormulaAuditor
|
|||||||
problem "Use '--with#{$1}-test' instead of '--#{o.name}'. Migrate '--#{o.name}' with `deprecated_option`."
|
problem "Use '--with#{$1}-test' instead of '--#{o.name}'. Migrate '--#{o.name}' with `deprecated_option`."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return unless @new_formula
|
||||||
|
unless formula.deprecated_options.empty?
|
||||||
|
problem "New formulae should not use `deprecated_option`."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def audit_desc
|
def audit_desc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user