Retain the mis-ordered dependency case.

Co-authored-by: Carlo Cabrera <github@carlo.cab>
This commit is contained in:
Issy Long 2025-02-11 10:28:52 +00:00 committed by GitHub
parent d9b376a9cd
commit 9359292db0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -938,7 +938,7 @@ module RuboCop
end end
end end
[:build, [:build, :test]].each do |type| [:build, [:build, :test], [:test, :build]].each do |type|
find_method_with_args(body_node, :depends_on, "rustup" => type) do find_method_with_args(body_node, :depends_on, "rustup" => type) do
problem "Formulae in homebrew/core should use 'depends_on \"rust\" => #{type}' " \ problem "Formulae in homebrew/core should use 'depends_on \"rust\" => #{type}' " \
"instead of '#{@offensive_node.source}'." do |corrector| "instead of '#{@offensive_node.source}'." do |corrector|