From 12dceba8203e1a06d13056fae5be6811cb60d320 Mon Sep 17 00:00:00 2001
From: Adam Vandenberg <flangy@gmail.com>
Date: Mon, 13 Sep 2010 15:16:09 -0700
Subject: [PATCH] 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.
---
 Library/Contributions/examples/brew-audit.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 1790bde1fb..7faec98cb3 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."
-- 
GitLab