aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-13 15:16:09 -0700
committerAdam Vandenberg2010-09-13 15:16:09 -0700
commit12dceba8203e1a06d13056fae5be6811cb60d320 (patch)
tree5694ef77464e34d2a5bae6bb0719b359f5d3d642 /Library
parentd518fca81c7ecebcb56feaabdb142dfd322b429c (diff)
downloadbrew-12dceba8203e1a06d13056fae5be6811cb60d320.tar.bz2
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.
Diffstat (limited to 'Library')
-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."