diff options
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index cb7cb2510..4e8fd2f2e 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -133,6 +133,10 @@ def audit_formula_text name, text problems << " * Use ENV instead of invoking '#{$1}' to modify the environment" end + if text =~ /version == ['"]HEAD['"]/ + problems << " * Use 'ARGV.build_head?' instead of inspecting 'version'" + end + return problems end |
