Retain the mis-ordered dependency case.
Co-authored-by: Carlo Cabrera <github@carlo.cab>
This commit is contained in:
parent
d9b376a9cd
commit
9359292db0
@ -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|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user