aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorJonathan Chang2016-10-05 13:55:49 -0700
committerJonathan Chang2016-10-05 15:59:16 -0700
commit5b360c57e3329971e1acc8ca065e81741b77653b (patch)
tree2fcacd32d2646da9e2e871d303da33b66f688a83 /Library/Homebrew/dev-cmd
parent47d57ca99526d47897a0bbe98a1f6a5ba466167f (diff)
downloadbrew-5b360c57e3329971e1acc8ca065e81741b77653b.tar.bz2
audit: forbid `deprecated_option` in new formulae
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 4a86f4c04..de53b0292 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