audit: check for empty sha256 checksums
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
8e2002fc27
commit
2c3b107d93
@ -84,6 +84,10 @@ def audit_formula_text name, text
|
|||||||
problems << " * sha1 is empty"
|
problems << " * sha1 is empty"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if text =~ /sha256\s+(\'\'|\"\")/
|
||||||
|
problems << " * sha256 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