aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-06 07:25:00 -0700
committerAdam Vandenberg2011-06-06 07:25:00 -0700
commit1df08d33a8f5560424b8f1b03351de9866982b3e (patch)
tree42f2f54fb4c71f88defcec9912d2479574b6f307 /Library
parent34b05b1a5ef77ea2ef44d59ae5741a605e013733 (diff)
downloadhomebrew-1df08d33a8f5560424b8f1b03351de9866982b3e.tar.bz2
brew audit: also check for spaces in Amazon formulae
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb6
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/)