Merge pull request #4775 from commitay/cargo-install

text_cop: update `cargo build` cop
This commit is contained in:
commitay 2018-08-30 08:03:42 +10:00 committed by GitHub
commit e4049b3005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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