brew audit - another man variation

This commit is contained in:
Adam Vandenberg 2010-08-15 11:32:45 -07:00
parent 43a1622609
commit 42129a7a94

View File

@ -34,6 +34,10 @@ def audit_formula_text text
problems << " * \"(#{$1}...#{$2})\" should be \"(#{$3}+...)\""
end
if text =~ %r[((man)\s*\+\s*(['"])(man[1-8])(['"]))]
problems << " * \"#{$1}\" should be \"#{$4}\""
end
# Prefer formula path shortcuts in strings
if text =~ %r[(\#\{prefix\}/(bin|include|lib|libexec|sbin|share))]
problems << " * \"#{$1}\" should be \"\#{#{$2}}\""