aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vet
diff options
context:
space:
mode:
authorTim King <taking@google.com>2022-11-14 14:56:13 -0800
committerTim King <taking@google.com>2022-11-15 00:27:12 +0000
commitf977ffe82dad0d8d296e898141b37c8af22f2eef (patch)
tree16589acdfcb034249032cee11e7b6bd91c3b1b32 /src/cmd/vet
parent6a9c76524fab12553108199352fc1faa3a76d783 (diff)
downloadgo-f977ffe82dad0d8d296e898141b37c8af22f2eef.tar.xz
cmd/vet: enable timeformat analyzer
Fixes #48801 Change-Id: I6230b62f77252a9a694b79caacb38ef15af36e39 Reviewed-on: https://go-review.googlesource.com/c/go/+/450495 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Tim King <taking@google.com>
Diffstat (limited to 'src/cmd/vet')
-rw-r--r--src/cmd/vet/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/vet/main.go b/src/cmd/vet/main.go
index 7da8606ece..334179c194 100644
--- a/src/cmd/vet/main.go
+++ b/src/cmd/vet/main.go
@@ -32,6 +32,7 @@ import (
"golang.org/x/tools/go/analysis/passes/structtag"
"golang.org/x/tools/go/analysis/passes/testinggoroutine"
"golang.org/x/tools/go/analysis/passes/tests"
+ "golang.org/x/tools/go/analysis/passes/timeformat"
"golang.org/x/tools/go/analysis/passes/unmarshal"
"golang.org/x/tools/go/analysis/passes/unreachable"
"golang.org/x/tools/go/analysis/passes/unsafeptr"
@@ -65,6 +66,7 @@ func main() {
structtag.Analyzer,
tests.Analyzer,
testinggoroutine.Analyzer,
+ timeformat.Analyzer,
unmarshal.Analyzer,
unreachable.Analyzer,
unsafeptr.Analyzer,