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."
|
||||
end
|
||||
|
||||
if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/
|
||||
problems << " * Use \"if ARGV.build_head?\" instead"
|
||||
if text =~ /if\s+ARGV\.include\?\s+'--(HEAD|devel)'/
|
||||
problems << " * Use \"if ARGV.build_#{$1.downcase}?\" instead"
|
||||
end
|
||||
|
||||
if text =~ /make && make/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user