diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb index cd838cceda..e4e7d14dee 100755 --- a/Library/Contributions/examples/brew-audit.rb +++ b/Library/Contributions/examples/brew-audit.rb @@ -50,6 +50,11 @@ ff.each do |f| problems << " * \"#{$1}\" should be \"\#{#{$2}}\"" end + # Empty checksums + if text =~ /md5\s+\'\'/ + problems << " * md5 is empty" + end + # Don't complain about spaces in patches split_patch = (text.split("__END__")[0]).strip() if split_patch =~ /[ ]+$/