Skip to content
GitLab
菜单
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
brew
提交
d44ed9ad
未验证
提交
d44ed9ad
编辑于
11月 14, 2021
作者:
Dawid Dziurla
提交者:
GitHub
11月 14, 2021
浏览文件
Merge pull request #12428 from Homebrew/gogetinstall
rubocops/text: forbid "go get" only in install method
上级
1f0ab4a1
55244c84
变更
1
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/rubocops/text.rb
浏览文件 @
d44ed9ad
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录