diff options
author | Russ Cox <rsc@golang.org> | 2023-06-24 11:00:37 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2023-06-28 02:41:38 +0000 |
commit | a3093eca64f9efc830c153c835291d751ea167f9 (patch) | |
tree | 9131bbced37cf689db690ac3465c5ab7c205175f | |
parent | 6691f438c38d103e9399cd203286642b68257230 (diff) | |
download | go-a3093eca64f9efc830c153c835291d751ea167f9.tar.gz go-a3093eca64f9efc830c153c835291d751ea167f9.zip |
cmd/go: enable slog vet check during 'go test'
The slog check is new and no existing code uses slog (it's new too),
so there are no concerns about false positives in existing code.
Enable it by default.
Change-Id: I4fc1480eeb5a3acc9e5e095e9d5428f5ce04b121
Reviewed-on: https://go-review.googlesource.com/c/go/+/505915
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
-rw-r--r-- | src/cmd/go/internal/test/test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index 995da15c90..7df6f421d6 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -660,6 +660,7 @@ var defaultVetFlags = []string{ "-printf", // "-rangeloops", // "-shift", + "-slog", "-stringintconv", // "-structtags", // "-tests", |