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

Add depends_on spacing checks to brew_audit

parent b355d6af
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,11 @@ ff.each do |f|
problems << " * Remove 'use_mirror' from url."
end
# 2 (or more, if in an if block) spaces before depends_on, please
if /^\ ?depends_on/ =~ text
problems << " * Check indentation of 'depends_on'."
end
if /(#\{\w+\s*\+\s*['"][^}]+\})/ =~ text
problems << " * Try not to concatenate paths in string interpolation:\n #{$1}"
end
......
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