diff options
| author | Adam Vandenberg | 2010-08-15 11:32:45 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-15 11:32:45 -0700 |
| commit | 42129a7a94808c432100d724e4b07139f47b1e6e (patch) | |
| tree | b8d26e75812ea63931e937791de2e739c7b38637 /Library | |
| parent | 43a1622609db51e0f92622859291be70c6e8e123 (diff) | |
| download | brew-42129a7a94808c432100d724e4b07139f47b1e6e.tar.bz2 | |
brew audit - another man variation
Diffstat (limited to 'Library')
| -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}}\"" |
