brew audit - check for FileUtils.

This commit is contained in:
Adam Vandenberg 2010-08-15 15:19:19 -07:00
parent 29ac164565
commit bdd9e1aeff

View File

@ -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}"