audit: warn about ARGV.include? '--devel'
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
f1dc59ca11
commit
856fe669e2
@ -84,8 +84,8 @@ def audit_formula_text name, text
|
|||||||
problems << " * Trailing whitespace was found."
|
problems << " * Trailing whitespace was found."
|
||||||
end
|
end
|
||||||
|
|
||||||
if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/
|
if text =~ /if\s+ARGV\.include\?\s+'--(HEAD|devel)'/
|
||||||
problems << " * Use \"if ARGV.build_head?\" instead"
|
problems << " * Use \"if ARGV.build_#{$1.downcase}?\" instead"
|
||||||
end
|
end
|
||||||
|
|
||||||
if text =~ /make && make/
|
if text =~ /make && make/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user