brew-audit - check for include? --HEAD
This commit is contained in:
parent
d501b256e5
commit
48cdd7bc87
@ -84,6 +84,10 @@ def audit_formula_text text
|
|||||||
problems << " * Trailing whitespace was found."
|
problems << " * Trailing whitespace was found."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/
|
||||||
|
problems << " * Use \"if ARGV.build_head?\" instead"
|
||||||
|
end
|
||||||
|
|
||||||
return problems
|
return problems
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user