diff options
| author | Jack Nagel | 2014-03-21 20:07:56 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-21 20:09:56 -0500 |
| commit | f760ee27514d52438f0b97957e128c2857b7eb28 (patch) | |
| tree | 643ab133f94ef80267606a0aadaacda13f82334e /Library | |
| parent | 8d723ff87716d1cd69f9e0009e993007de0f0703 (diff) | |
| download | brew-f760ee27514d52438f0b97957e128c2857b7eb28.tar.bz2 | |
audit: #{prefix}/Frameworks -> #{frameworks}
Diffstat (limited to 'Library')
| -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]))] |
