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:
parent
2befa0fd5c
commit
ad5b128fc7
@ -434,7 +434,7 @@ class FormulaAuditor
|
|||||||
problem "`skip_clean :all` is deprecated; brew no longer strips symbols"
|
problem "`skip_clean :all` is deprecated; brew no longer strips symbols"
|
||||||
end
|
end
|
||||||
|
|
||||||
if text =~ /depends_on (.*)\.new\s*[^(]/
|
if text =~ /depends_on (.*)\.new$/
|
||||||
problem "`depends_on` can take requirement classes directly"
|
problem "`depends_on` can take requirement classes directly"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user