brew-audit - empty checksums with either type of quote
This commit is contained in:
parent
12dceba820
commit
581d35a087
@ -66,10 +66,14 @@ def audit_formula_text text
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Empty checksums
|
# Empty checksums
|
||||||
if text =~ /md5\s+\'\'/
|
if text =~ /md5\s+(\'\'|\"\")/
|
||||||
problems << " * md5 is empty"
|
problems << " * md5 is empty"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if text =~ /sha1\s+(\'\'|\"\")/
|
||||||
|
problems << " * sha1 is empty"
|
||||||
|
end
|
||||||
|
|
||||||
# Commented-out depends_on
|
# Commented-out depends_on
|
||||||
if text =~ /#\s*depends_on\s+(.+)\s*$/
|
if text =~ /#\s*depends_on\s+(.+)\s*$/
|
||||||
problems << " * Commented-out dep #{$1}."
|
problems << " * Commented-out dep #{$1}."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user