Skip to content
Snippets Groups Projects
Commit 0ce58396 authored by commitay's avatar commitay
Browse files

text_cop: update `cargo build` cop

parent 0af24cf8
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ module RuboCop
end
find_method_with_args(body_node, :system, "cargo", "build") do
problem "use \"cargo\", \"install\", \"--root\", prefix"
problem "use \"cargo\", \"install\", \"--root\", prefix, \"--path\", \".\""
end
end
end
......
......@@ -200,7 +200,7 @@ describe RuboCop::Cop::FormulaAudit::Text do
def install
system "cargo", "build"
^^^^^^^^^^^^^^^^^^^^^^^ use \"cargo\", \"install\", \"--root\", prefix
^^^^^^^^^^^^^^^^^^^^^^^ use \"cargo\", \"install\", \"--root\", prefix, \"--path\", \".\"
end
end
RUBY
......
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