aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-12-08 13:25:19 +0100
committerBaptiste Fontaine2015-12-09 11:29:47 +0100
commit48b39ba1e7c6088ced269420617ad440bf7d5605 (patch)
tree00420d3020c3c4f37ffcca2e079f510a73fb8008 /Library
parentd36d88edf27ead55adb6efe312f7f70f090b729d (diff)
downloadbrew-48b39ba1e7c6088ced269420617ad440bf7d5605.tar.bz2
audit: flag '--with{,out}-check' options
Closes Homebrew/homebrew#46794. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 88e67c9b3..5e3038c71 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -372,6 +372,10 @@ class FormulaAuditor
if o.name !~ /with(out)?-/ && o.name != "c++11" && o.name != "universal" && o.name != "32-bit"
problem "Options should begin with with/without. Migrate '--#{o.name}' with `deprecated_option`."
end
+
+ if o.name =~ /^with(out)?-(?:checks?|tests)$/
+ problem "Use '--with#{$1}-test' instead of '--#{o.name}'. Migrate '--#{o.name}' with `deprecated_option`."
+ end
end
end