From 9359292db0f1ba8c20993cf130b3f2417f109adf Mon Sep 17 00:00:00 2001 From: Issy Long Date: Tue, 11 Feb 2025 10:28:52 +0000 Subject: [PATCH] Retain the mis-ordered dependency case. Co-authored-by: Carlo Cabrera --- Library/Homebrew/rubocops/lines.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/rubocops/lines.rb b/Library/Homebrew/rubocops/lines.rb index 638dac4409..579efd258a 100644 --- a/Library/Homebrew/rubocops/lines.rb +++ b/Library/Homebrew/rubocops/lines.rb @@ -938,7 +938,7 @@ module RuboCop 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 problem "Formulae in homebrew/core should use 'depends_on \"rust\" => #{type}' " \ "instead of '#{@offensive_node.source}'." do |corrector|