brew-audit - check for commented-out dependencies

"brew audit" will now warn about commented-out dependencies.

Updated formulae that had these to either take them out or rewrite
the comments around them.
This commit is contained in:
Adam Vandenberg 2010-09-13 15:16:09 -07:00
parent d518fca81c
commit 12dceba820

View File

@ -70,6 +70,11 @@ def audit_formula_text text
problems << " * md5 is empty"
end
# Commented-out depends_on
if text =~ /#\s*depends_on\s+(.+)\s*$/
problems << " * Commented-out dep #{$1}."
end
# No trailing whitespace, please
if text =~ /[ ]+$/
problems << " * Trailing whitespace was found."