aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/alldocs.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2023-01-30 14:23:48 -0500
committerRuss Cox <rsc@golang.org>2023-02-23 10:55:24 +0000
commit6af9635fb8a002f563a1765f7ab2bd97d4e4d4df (patch)
tree0f8dd33465c99d9319c23e4d876aaf4cd602c094 /src/cmd/go/alldocs.go
parentd54aeeeea3327a760856fdc280c742b853684f47 (diff)
downloadgo-6af9635fb8a002f563a1765f7ab2bd97d4e4d4df.tar.gz
go-6af9635fb8a002f563a1765f7ab2bd97d4e4d4df.zip
cmd/go: enable vet directive analyzer during 'go test'
For #56986, run the new directive analyzer during 'go test', to diagnose problems that would otherwise be missed, like //go:debug appearing in the wrong place in a file or in the wrong files. Change-Id: I1ac230c3c67e58b5e584128e0ec6ff482cb225f9 Reviewed-on: https://go-review.googlesource.com/c/go/+/464135 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r--src/cmd/go/alldocs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index 084a104600..6b91b53347 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -1687,8 +1687,8 @@
// and its test source files to identify significant problems. If go vet
// finds any problems, go test reports those and does not run the test
// binary. Only a high-confidence subset of the default go vet checks are
-// used. That subset is: 'atomic', 'bool', 'buildtags', 'errorsas',
-// 'ifaceassert', 'nilfunc', 'printf', and 'stringintconv'. You can see
+// used. That subset is: atomic, bool, buildtags, directive, errorsas,
+// ifaceassert, nilfunc, printf, and stringintconv. You can see
// the documentation for these and other vet tests via "go doc cmd/vet".
// To disable the running of go vet, use the -vet=off flag. To run all
// checks, use the -vet=all flag.