formula_auditor: audit deprecate/disable reasons

This commit is contained in:
Bevan Kay 2024-09-30 23:11:00 +10:00
parent 5a39e1f238
commit 905322dc0d
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -963,6 +963,11 @@ module Homebrew
EOS
end
def audit_deprecate_disable
error = SharedAudits.check_deprecate_disable_reason(formula)
problem error if error
end
def quote_dep(dep)
dep.is_a?(Symbol) ? dep.inspect : "'#{dep}'"
end