aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-06 07:25:00 -0700
committerAdam Vandenberg2011-06-06 07:25:00 -0700
commitfd533881a68f282bc218d02a08ea9db7a605774f (patch)
treecec84433ce00fe378b9a4dbf8d812728b5398dea /Library/Homebrew/cmd
parentf759387c896dfdd0bddc3cc65573e5cd9d988f48 (diff)
downloadbrew-fd533881a68f282bc218d02a08ea9db7a605774f.tar.bz2
brew audit: also check for spaces in Amazon formulae
Diffstat (limited to 'Library/Homebrew/cmd')
-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/)