Skip to content
Snippets Groups Projects
Commit 12dceba8 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

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.
parent d518fca8
No related branches found
No related tags found
No related merge requests found
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment