commit | 258e47306680682e73d2b873b69fe7e616ae5490 | [log] [tgz] |
---|---|---|
author | Robert Findley <rfindley@google.com> | Tue Feb 22 10:07:30 2022 -0500 |
committer | Robert Findley <rfindley@google.com> | Wed Feb 23 15:44:43 2022 +0000 |
tree | 81ca410a22b90b2e7f202c4a76f9441816384d92 | |
parent | b7d29496b73463700839e8f064c1be5202017284 [diff] |
internal/lsp/source: disable the useany analyzer by default This analyzer was written at a time when any was only allowed in constraints, and usage of any vs interface{} was more likely to be confusing. Any is now allowed anywhere, and so it is inconsistent to suggest it only for constraints. However, we can't suggest any over interface{} everywhere, as that would be incredibly noisy. Perhaps we should remove this analyzer, but for now simply change it to off by default. Change-Id: Ib9726bdb835808d69827c6cd8e4a58dc5d83ad0e Reviewed-on: https://go-review.googlesource.com/c/tools/+/387614 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go install
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go install golang.org/x/tools/...@latest
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.