commit | 9d8009b6b77da60c24161dbf6d8fd13fadcbe7f4 | [log] [tgz] |
---|---|---|
author | zhangyunhao <zhangyunhao116@gmail.com> | Sun Jun 20 22:57:11 2021 +0800 |
committer | Tim King <taking@google.com> | Wed Mar 30 03:52:37 2022 +0000 |
tree | b65aa8dc0627d599e5b9da5830d920ecb3e43796 | |
parent | 761e51fea3f6213bb389b677db9e66fac49a7aa2 [diff] |
go/analysis: validate report if analyzer.Run is empty The Run function is necessary for an analyzer, if left a nil Run, the runner will panic in run-time(singlechecker.Main, etc). Change-Id: Ibbeea2d8c740f73e6c083647df6ded445036e272 Reviewed-on: https://go-review.googlesource.com/c/tools/+/329451 Trust: Carlos Amedee <carlos@golang.org> Reviewed-by: Tim King <taking@google.com> Run-TryBot: Tim King <taking@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
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.