mirror of
https://github.com/golang/go
synced 2024-11-18 18:44:42 -07:00
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 <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
589c23e65e
commit
0f64db555a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user