aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-15 15:19:19 -0700
committerAdam Vandenberg2010-08-15 15:20:56 -0700
commitbdd9e1aeff8f450423df6b62976eef63080e13b1 (patch)
treec0f2f21e0bb2049084799442ff9bc56500abad37 /Library
parent29ac164565189d1ff81f5430f22929d773429c56 (diff)
downloadbrew-bdd9e1aeff8f450423df6b62976eef63080e13b1.tar.bz2
brew audit - check for FileUtils.
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 c71daa8fa..2afcb05c6 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -24,6 +24,11 @@ def audit_formula_text text
problems << " * Check indentation of 'depends_on'."
end
+ # FileUtils is included in Formula
+ if text =~ /FileUtils\.(\w+)/
+ problems << " * Don't need 'FileUtils.' before #{$1}."
+ end
+
# Check for string concatenation; prefer interpolation
if text =~ /(#\{\w+\s*\+\s*['"][^}]+\})/
problems << " * Try not to concatenate paths in string interpolation:\n #{$1}"