audit: fix check for depending on requirement classes

Don't complain if it's instantiating the class so that it can pass
arguments.

Fixes Homebrew/homebrew#18883.
This commit is contained in:
Jack Nagel 2013-04-01 11:34:05 -05:00
parent 2befa0fd5c
commit ad5b128fc7

View File

@ -434,7 +434,7 @@ class FormulaAuditor
problem "`skip_clean :all` is deprecated; brew no longer strips symbols"
end
if text =~ /depends_on (.*)\.new\s*[^(]/
if text =~ /depends_on (.*)\.new$/
problem "`depends_on` can take requirement classes directly"
end
end