]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/go: enable slog vet check during 'go test'
authorRuss Cox <rsc@golang.org>
Sat, 24 Jun 2023 15:00:37 +0000 (11:00 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 28 Jun 2023 02:41:38 +0000 (02:41 +0000)
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>

src/cmd/go/internal/test/test.go

index 995da15c90e59b3b98dcb9edc4ff809036d50f22..7df6f421d6df4625c323e10a2171483a6f9bb916 100644 (file)
@@ -660,6 +660,7 @@ var defaultVetFlags = []string{
        "-printf",
        // "-rangeloops",
        // "-shift",
+       "-slog",
        "-stringintconv",
        // "-structtags",
        // "-tests",