Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
55244c84
Unverified
Commit
55244c84
authored
Nov 14, 2021
by
Dawid Dziurla
Committed by
GitHub
Nov 14, 2021
Browse files
rubocops/text: forbid "go get" only in install method
parent
1f0ab4a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/rubocops/text.rb
View file @
55244c84
...
...
@@ -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
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment