aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 3a0407fe0..28e966f7c 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -84,6 +84,10 @@ def audit_formula_text text
problems << " * Trailing whitespace was found."
end
+ if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/
+ problems << " * Use \"if ARGV.build_head?\" instead"
+ end
+
return problems
end