Add depends_on spacing checks to brew_audit
This commit is contained in:
parent
b355d6af25
commit
bd51ae3343
@ -26,6 +26,11 @@ ff.each do |f|
|
|||||||
problems << " * Remove 'use_mirror' from url."
|
problems << " * Remove 'use_mirror' from url."
|
||||||
end
|
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
|
if /(#\{\w+\s*\+\s*['"][^}]+\})/ =~ text
|
||||||
problems << " * Try not to concatenate paths in string interpolation:\n #{$1}"
|
problems << " * Try not to concatenate paths in string interpolation:\n #{$1}"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user