audit: #{prefix}/Frameworks -> #{frameworks}
This commit is contained in:
parent
8d723ff877
commit
f760ee2751
@ -378,8 +378,8 @@ class FormulaAuditor
|
||||
end
|
||||
|
||||
# Prefer formula path shortcuts in Pathname+
|
||||
if line =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share)[/'"])}
|
||||
problem "\"(#{$1}...#{$2})\" should be \"(#{$3}+...)\""
|
||||
if line =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share|Frameworks)[/'"])}
|
||||
problem "\"(#{$1}...#{$2})\" should be \"(#{$3.downcase}+...)\""
|
||||
end
|
||||
|
||||
if line =~ %r[((man)\s*\+\s*(['"])(man[1-8])(['"]))]
|
||||
@ -387,8 +387,8 @@ class FormulaAuditor
|
||||
end
|
||||
|
||||
# Prefer formula path shortcuts in strings
|
||||
if line =~ %r[(\#\{prefix\}/(bin|include|libexec|lib|sbin|share))]
|
||||
problem "\"#{$1}\" should be \"\#{#{$2}}\""
|
||||
if line =~ %r[(\#\{prefix\}/(bin|include|libexec|lib|sbin|share|Frameworks))]
|
||||
problem "\"#{$1}\" should be \"\#{#{$2.downcase}}\""
|
||||
end
|
||||
|
||||
if line =~ %r[((\#\{prefix\}/share/man/|\#\{man\}/)(man[1-8]))]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user