Add depends_on spacing checks to brew_audit

This commit is contained in:
Adam Vandenberg 2010-07-23 21:31:32 -07:00
parent b355d6af25
commit bd51ae3343

View File

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