Unverified Commit 55244c84 authored by Dawid Dziurla's avatar Dawid Dziurla Committed by GitHub
Browse files

rubocops/text: forbid "go get" only in install method

parent 1f0ab4a1
......@@ -57,8 +57,10 @@ module RuboCop
problem %q(use "xcodebuild *args" instead of "system 'xcodebuild', *args")
end
find_method_with_args(body_node, :system, "go", "get") do
problem "Do not use `go get`. Please ask upstream to implement Go vendoring"
if (method_node = find_method_def(body_node, :install))
find_method_with_args(method_node, :system, "go", "get") do
problem "Do not use `go get`. Please ask upstream to implement Go vendoring"
end
end
find_method_with_args(body_node, :system, "dep", "ensure") do |d|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment