Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text_cop: update cargo build cop #4775

Merged
merged 1 commit into from
Aug 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library/Homebrew/rubocops/text_cop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
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
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/rubocops/text_cop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Foo < Formula

def install
system "cargo", "build"
^^^^^^^^^^^^^^^^^^^^^^^ use \"cargo\", \"install\", \"--root\", prefix
^^^^^^^^^^^^^^^^^^^^^^^ use \"cargo\", \"install\", \"--root\", prefix, \"--path\", \".\"
end
end
RUBY
Expand Down