aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-03-21 20:07:56 -0500
committerJack Nagel2014-03-21 20:09:56 -0500
commit045bcb2bb7133a688f0a6b73600afbd51d084846 (patch)
tree594b1c40f8dc95afd99d2e304b1f84bc91fcbdad
parent6e26500e7f464e29287caf79f299354fdce25427 (diff)
downloadhomebrew-045bcb2bb7133a688f0a6b73600afbd51d084846.tar.bz2
audit: #{prefix}/Frameworks -> #{frameworks}
-rw-r--r--Library/Homebrew/cmd/audit.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 9d8286b8b..3fafa7f11 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -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]))]