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>
This commit is contained in:
Russ Cox 2023-06-24 11:00:37 -04:00
parent 6691f438c3
commit a3093eca64
1 changed files with 1 additions and 0 deletions

View File

@ -660,6 +660,7 @@ var defaultVetFlags = []string{
"-printf",
// "-rangeloops",
// "-shift",
"-slog",
"-stringintconv",
// "-structtags",
// "-tests",