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
commit247ac4f255a6fcd73f5dea33b89c63c465468cf9 (patch)
tree4a9d3bd9300f5d0a100c9feb7f4304d78e704f10 /Library
parent42cced020712d7638d678f49bf9f4bdd0503004c (diff)
downloadhomebrew-247ac4f255a6fcd73f5dea33b89c63c465468cf9.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}"