From 0f64db555a9c58aea153f7c094f19673926fb0b3 Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Fri, 1 Mar 2019 12:16:44 -0500 Subject: [PATCH] cmd/vet: add deepequalerrors Add the deepequalerrors analyzer to the vet command. I don't really understand the comment in the file. I do want the analyzer to run when the user explicitly calls go vet, but not automatically via go test. I'm not sure this CL captures that. Change-Id: Ie78ef110c7828ccbcc86735442c81dbb516dcf18 Reviewed-on: https://go-review.googlesource.com/c/tools/+/164837 Reviewed-by: Michael Matloob Run-TryBot: Michael Matloob TryBot-Result: Gobot Gobot --- go/analysis/cmd/vet/vet.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/analysis/cmd/vet/vet.go b/go/analysis/cmd/vet/vet.go index c149315b..31bff1ab 100644 --- a/go/analysis/cmd/vet/vet.go +++ b/go/analysis/cmd/vet/vet.go @@ -26,6 +26,7 @@ import ( "golang.org/x/tools/go/analysis/passes/cgocall" "golang.org/x/tools/go/analysis/passes/composite" "golang.org/x/tools/go/analysis/passes/copylock" + "golang.org/x/tools/go/analysis/passes/deepequalerrors" "golang.org/x/tools/go/analysis/passes/httpresponse" "golang.org/x/tools/go/analysis/passes/loopclosure" "golang.org/x/tools/go/analysis/passes/lostcancel" @@ -58,6 +59,7 @@ func main() { cgocall.Analyzer, composite.Analyzer, copylock.Analyzer, + deepequalerrors.Analyzer, httpresponse.Analyzer, loopclosure.Analyzer, lostcancel.Analyzer,