diff options
| author | Mike McQuaid | 2017-12-16 13:34:22 +0000 |
|---|---|---|
| committer | GitHub | 2017-12-16 13:34:22 +0000 |
| commit | b4d43e950fd45c24e48d6ebfd3013357abcd21a9 (patch) | |
| tree | 035c37363cdd4b482e2eee4a6f3826e919cfd9fd /Library/Homebrew/rubocops | |
| parent | deb37497e92ca4ca09d90e47183a414f6e588900 (diff) | |
| parent | bff4762d36dd1feaf7768949b3fd32d061394c65 (diff) | |
| download | brew-1.4.1.tar.bz2 | |
Merge pull request #3401 from DomT4/vendor_or_na1.4.1
go: various tweaks to recommendations
Diffstat (limited to 'Library/Homebrew/rubocops')
| -rw-r--r-- | Library/Homebrew/rubocops/text_cop.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Homebrew/rubocops/text_cop.rb b/Library/Homebrew/rubocops/text_cop.rb index d56c9bf46..1546a9cc3 100644 --- a/Library/Homebrew/rubocops/text_cop.rb +++ b/Library/Homebrew/rubocops/text_cop.rb @@ -46,7 +46,16 @@ module RuboCop end find_method_with_args(body_node, :system, "go", "get") do - problem "Formulae should not use `go get`. If non-vendored resources are required use `go_resource`s." + problem "Do not use `go get`. Please ask upstream to implement Go vendoring" + end + end + end + end + module FormulaAuditStrict + class Text < FormulaCop + def audit_formula(_node, _class_node, _parent_class_node, body_node) + find_method_with_args(body_node, :go_resource) do + problem "`go_resource`s are deprecated. Please ask upstream to implement Go vendoring" end end end |
