Skip to content

tjgurwara99/wrappederr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wrappederr is a simple program to integrate with go vet checks

It statically analyses all functions which include error in their return type and check whether these errors are wrapped using the errors.Wrap function.

To use it, install the program and run go vet like so:

go vet --vettool=$(which wrappederr) ./...

NOTE: This is a POC where there is a possibility that the error is indeed returned wrapped from another function but it unwrapped in the current function, causing it to display false positives.

About

A simple program to figure out whether the returned errors of a function which return errors are wrapped

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages