Skip to content
Snippets Groups Projects
Commit ad5b128f authored by Jack Nagel's avatar Jack Nagel
Browse files

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.
parent 2befa0fd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment