errisas
finds error handling codes which do not use errors.Is or errors.As.
Install
You can get errisas
by go install
command (Go 1.16 and higher).
$ go install github.com/sharefull/refactortools/errisas/cmd/errisas@latest
How to use
errisas
run with go vet
as below when Go is 1.12 and higher.
$ go vet -vettool=$(which errisas) ./...
You can use errisas.Analyzer with unitchecker.