From bdd9e1aeff8f450423df6b62976eef63080e13b1 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 15 Aug 2010 15:19:19 -0700 Subject: brew audit - check for FileUtils. --- Library/Contributions/examples/brew-audit.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') 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}" -- cgit v1.2.3