From 5b360c57e3329971e1acc8ca065e81741b77653b Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Wed, 5 Oct 2016 13:55:49 -0700 Subject: [PATCH] audit: forbid `deprecated_option` in new formulae --- Library/Homebrew/dev-cmd/audit.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 4a86f4c045..de53b02921 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -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