未验证 提交 d44ed9ad 编辑于 作者: Dawid Dziurla's avatar Dawid Dziurla 提交者: GitHub
浏览文件

Merge pull request #12428 from Homebrew/gogetinstall

rubocops/text: forbid "go get" only in install method
......@@ -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
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册