diff options
| author | Adam Vandenberg | 2011-06-06 07:25:00 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-06 07:25:00 -0700 |
| commit | 1df08d33a8f5560424b8f1b03351de9866982b3e (patch) | |
| tree | 42f2f54fb4c71f88defcec9912d2479574b6f307 /Library | |
| parent | 34b05b1a5ef77ea2ef44d59ae5741a605e013733 (diff) | |
| download | homebrew-1df08d33a8f5560424b8f1b03351de9866982b3e.tar.bz2 | |
brew audit: also check for spaces in Amazon formulae
Diffstat (limited to 'Library')
| -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/) |
