aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-10-07 17:08:11 +0100
committerGitHub2016-10-07 17:08:11 +0100
commit7af8cdcb046c8dbb8acd487ef8be67a011b26742 (patch)
tree5b20529e0a5b1451a5aa2931962e4352a17a92a2 /Library/Homebrew/dev-cmd/audit.rb
parent415e5f1f78db90b7d1b1870e55f4bfd505f878aa (diff)
parent5b360c57e3329971e1acc8ca065e81741b77653b (diff)
downloadbrew-7af8cdcb046c8dbb8acd487ef8be67a011b26742.tar.bz2
Merge pull request #1228 from jonchang/audit
audit: forbid `deprecated_option` in new formulae
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-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