aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/examples/brew-audit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Contributions/examples/brew-audit.rb')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 1790bde1f..7faec98cb 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."