diff options
| author | Adam Vandenberg | 2011-06-06 07:25:00 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-06 07:25:00 -0700 |
| commit | fd533881a68f282bc218d02a08ea9db7a605774f (patch) | |
| tree | cec84433ce00fe378b9a4dbf8d812728b5398dea /Library/Homebrew/cmd | |
| parent | f759387c896dfdd0bddc3cc65573e5cd9d988f48 (diff) | |
| download | brew-fd533881a68f282bc218d02a08ea9db7a605774f.tar.bz2 | |
brew audit: also check for spaces in Amazon formulae
Diffstat (limited to 'Library/Homebrew/cmd')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index a37317d99..f4e43a9e1 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -15,9 +15,9 @@ end def audit_formula_text name, text problems = [] - if text =~ /<Formula/ - problems << " * Use a space in class inheritance: class Foo < Formula" - end if strict? + if text =~ /<(Formula|AmazonWebServicesFormula)/ + problems << " * Use a space in class inheritance: class Foo < #{$1}" + end # Commented-out cmake support from default template if (text =~ /# depends_on 'cmake'/) or (text =~ /# system "cmake/) |
