diff options
| author | Jack Nagel | 2014-03-21 20:07:56 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-21 20:09:56 -0500 |
| commit | 045bcb2bb7133a688f0a6b73600afbd51d084846 (patch) | |
| tree | 594b1c40f8dc95afd99d2e304b1f84bc91fcbdad | |
| parent | 6e26500e7f464e29287caf79f299354fdce25427 (diff) | |
| download | homebrew-045bcb2bb7133a688f0a6b73600afbd51d084846.tar.bz2 | |
audit: #{prefix}/Frameworks -> #{frameworks}
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 8 |
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]))] |
