diff options
| author | Mike McQuaid | 2016-10-07 17:08:11 +0100 |
|---|---|---|
| committer | GitHub | 2016-10-07 17:08:11 +0100 |
| commit | 7af8cdcb046c8dbb8acd487ef8be67a011b26742 (patch) | |
| tree | 5b20529e0a5b1451a5aa2931962e4352a17a92a2 /Library/Homebrew | |
| parent | 415e5f1f78db90b7d1b1870e55f4bfd505f878aa (diff) | |
| parent | 5b360c57e3329971e1acc8ca065e81741b77653b (diff) | |
| download | brew-7af8cdcb046c8dbb8acd487ef8be67a011b26742.tar.bz2 | |
Merge pull request #1228 from jonchang/audit
audit: forbid `deprecated_option` in new formulae
Diffstat (limited to 'Library/Homebrew')
| -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 |
