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:
parent
d518fca81c
commit
12dceba820
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user