Skip to content
Snippets Groups Projects
Commit bdd9e1ae authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

brew audit - check for FileUtils.

parent 29ac1645
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment