brew audit: also check for spaces in Amazon formulae
This commit is contained in:
parent
f759387c89
commit
fd533881a6
@ -15,9 +15,9 @@ end
|
|||||||
def audit_formula_text name, text
|
def audit_formula_text name, text
|
||||||
problems = []
|
problems = []
|
||||||
|
|
||||||
if text =~ /<Formula/
|
if text =~ /<(Formula|AmazonWebServicesFormula)/
|
||||||
problems << " * Use a space in class inheritance: class Foo < Formula"
|
problems << " * Use a space in class inheritance: class Foo < #{$1}"
|
||||||
end if strict?
|
end
|
||||||
|
|
||||||
# Commented-out cmake support from default template
|
# Commented-out cmake support from default template
|
||||||
if (text =~ /# depends_on 'cmake'/) or (text =~ /# system "cmake/)
|
if (text =~ /# depends_on 'cmake'/) or (text =~ /# system "cmake/)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user