audit: #{prefix}/Frameworks -> #{frameworks}

This commit is contained in:
Jack Nagel 2014-03-21 20:07:56 -05:00
parent 8d723ff877
commit f760ee2751

View File

@ -378,8 +378,8 @@ class FormulaAuditor
end end
# Prefer formula path shortcuts in Pathname+ # Prefer formula path shortcuts in Pathname+
if line =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share)[/'"])} if line =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share|Frameworks)[/'"])}
problem "\"(#{$1}...#{$2})\" should be \"(#{$3}+...)\"" problem "\"(#{$1}...#{$2})\" should be \"(#{$3.downcase}+...)\""
end end
if line =~ %r[((man)\s*\+\s*(['"])(man[1-8])(['"]))] if line =~ %r[((man)\s*\+\s*(['"])(man[1-8])(['"]))]
@ -387,8 +387,8 @@ class FormulaAuditor
end end
# Prefer formula path shortcuts in strings # Prefer formula path shortcuts in strings
if line =~ %r[(\#\{prefix\}/(bin|include|libexec|lib|sbin|share))] if line =~ %r[(\#\{prefix\}/(bin|include|libexec|lib|sbin|share|Frameworks))]
problem "\"#{$1}\" should be \"\#{#{$2}}\"" problem "\"#{$1}\" should be \"\#{#{$2.downcase}}\""
end end
if line =~ %r[((\#\{prefix\}/share/man/|\#\{man\}/)(man[1-8]))] if line =~ %r[((\#\{prefix\}/share/man/|\#\{man\}/)(man[1-8]))]