mirror of
https://github.com/golang/go
synced 2024-11-18 16:04:44 -07:00
go/analysis/unitchecker: add erroras analysis to align with go vet
Add `erroras` analysis to the `unitchecker` example that mimics go vet. The unitchecker according to its comments is an example of replicating the analysis performed by go vet using the unitchecker. The example is missing the erroras analysis that was added to go vet in golang/go@9f76566. This change brings the example back inline with the analysis performed by go vet. Close golang/go#35486 Change-Id: I630146b60c1e62b4685fb173c8c4736d9d713168 GitHub-Last-Rev: 7c3fd4ac8e2465514720238d2c3c1ffb22a6278f GitHub-Pull-Request: golang/tools#185 Reviewed-on: https://go-review.googlesource.com/c/tools/+/206238 Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
parent
a99edfee0d
commit
8cb0d02132
@ -22,6 +22,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/errorsas"
|
||||
"golang.org/x/tools/go/analysis/passes/httpresponse"
|
||||
"golang.org/x/tools/go/analysis/passes/loopclosure"
|
||||
"golang.org/x/tools/go/analysis/passes/lostcancel"
|
||||
@ -47,6 +48,7 @@ func main() {
|
||||
cgocall.Analyzer,
|
||||
composite.Analyzer,
|
||||
copylock.Analyzer,
|
||||
errorsas.Analyzer,
|
||||
httpresponse.Analyzer,
|
||||
loopclosure.Analyzer,
|
||||
lostcancel.Analyzer,
|
||||
|
Loading…
Reference in New Issue
Block a user