diff options
| author | Adam Vandenberg | 2010-08-15 15:19:19 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-15 15:20:56 -0700 |
| commit | bdd9e1aeff8f450423df6b62976eef63080e13b1 (patch) | |
| tree | c0f2f21e0bb2049084799442ff9bc56500abad37 /Library | |
| parent | 29ac164565189d1ff81f5430f22929d773429c56 (diff) | |
| download | brew-bdd9e1aeff8f450423df6b62976eef63080e13b1.tar.bz2 | |
brew audit - check for FileUtils.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-audit.rb | 5 |
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}" |
