aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-21 20:07:56 -0500
committerJack Nagel2014-03-21 20:09:56 -0500
commitf760ee27514d52438f0b97957e128c2857b7eb28 (patch)
tree643ab133f94ef80267606a0aadaacda13f82334e /Library
parent8d723ff87716d1cd69f9e0009e993007de0f0703 (diff)
downloadbrew-f760ee27514d52438f0b97957e128c2857b7eb28.tar.bz2
audit: #{prefix}/Frameworks -> #{frameworks}
Diffstat (limited to 'Library')
-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]))]