From 48b39ba1e7c6088ced269420617ad440bf7d5605 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 8 Dec 2015 13:25:19 +0100 Subject: [PATCH] audit: flag '--with{,out}-check' options Closes Homebrew/homebrew#46794. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/cmd/audit.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 88e67c9b3f..5e3038c71f 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