errwrapped checks for code returning errors that are not wrapped by any wrapper library.
go get -u github.com/hmarui66/errwrapped/cmd/errwrapped
errwrapped ./...
Use the -wrapper
flag to specify a wrapper library or function.
errwrapped -wrapper xerrors ./...
If not specified, errors is specified by default.
Use the -ignore
flag to specify ignore file name patterns.
errwrapped -ignore vendors/,_test.go,/mock_ ./...