brew audit - check for FileUtils.
This commit is contained in:
parent
29ac164565
commit
bdd9e1aeff
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user