diff options
| author | Jonathan Chang | 2016-10-05 13:55:49 -0700 |
|---|---|---|
| committer | Jonathan Chang | 2016-10-05 15:59:16 -0700 |
| commit | 5b360c57e3329971e1acc8ca065e81741b77653b (patch) | |
| tree | 2fcacd32d2646da9e2e871d303da33b66f688a83 /Library/Homebrew/dev-cmd | |
| parent | 47d57ca99526d47897a0bbe98a1f6a5ba466167f (diff) | |
| download | brew-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.rb | 5 |
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 |
