text_cop: update cargo build cop

This commit is contained in:
commitay 2018-08-29 23:03:02 +10:00
parent 0af24cf8bc
commit 0ce583964e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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