diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb index 1790bde1fb2e3750ce99dfbd2f69855b16eaf37e..7faec98cb38ce7d3728ae87aa74a1a3d3e97019d 100755 --- a/Library/Contributions/examples/brew-audit.rb +++ b/Library/Contributions/examples/brew-audit.rb @@ -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."