diff options
| author | Adam Vandenberg | 2010-08-15 11:32:45 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-15 11:32:45 -0700 |
| commit | 85a8a93d240c802ff56e4a5f9c62c8913c070325 (patch) | |
| tree | 2209e5f82d7babdf31283608d7579a550dbafb9f /Library/Contributions | |
| parent | 1fb47c7f3f7ac8f34a84ceff14e4be8b3e7c3f38 (diff) | |
| download | homebrew-85a8a93d240c802ff56e4a5f9c62c8913c070325.tar.bz2 | |
brew audit - another man variation
Diffstat (limited to 'Library/Contributions')
| -rwxr-xr-x | Library/Contributions/examples/brew-audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb index 916f93d8f..c71daa8fa 100755 --- a/Library/Contributions/examples/brew-audit.rb +++ b/Library/Contributions/examples/brew-audit.rb @@ -34,6 +34,10 @@ def audit_formula_text text problems << " * \"(#{$1}...#{$2})\" should be \"(#{$3}+...)\"" end + if text =~ %r[((man)\s*\+\s*(['"])(man[1-8])(['"]))] + problems << " * \"#{$1}\" should be \"#{$4}\"" + end + # Prefer formula path shortcuts in strings if text =~ %r[(\#\{prefix\}/(bin|include|lib|libexec|sbin|share))] problems << " * \"#{$1}\" should be \"\#{#{$2}}\"" |
