errcheck
errcheck copied to clipboard
errcheck checks that you checked errors.
Hi, I've been looking around, and I've found a way to ignore `errcheck`'s error when calling a function (that returns an error) concurrently with `go someFunc()`. In the case where...
# Problem Statement A common pattern of if-statement declarations is to declare an error and then check it. e.g. ```Go if err := myfunc(); err != nil { ``` I...
These methods [are documented](https://pkg.go.dev/hash/maphash#Hash.Write) to "never fail", so it should be okay to ignore the return values. `hash.Hash` is already excluded, but unlike the other subpkgs of `hash`, `hash/maphash` doesn't...
I have this very simple example: First file: ``` package first func FirstFunc() error { return nil } func ThirdFunc() error { FirstFunc() return nil } ``` Second file: ```...
Looking at the README, it seems `exclude` only supports listing functions explicitly, while the deprecated `ignore` supported regexes (and `ignorepkg` whole packages). What is the alternative ? It it on...
The latest published release 1.7.0 doesn't include the necessary changes to get `errcheck` to work with Go 1.23. The latest `master` does. It would be convenient to have a new...
`-version` flag will help user to quickly find which version of `errcheck` he is currently using.
I want to be able to exclude the linter for files ending with "_test.go" suffix. Is there a way to do it? is there a regexp exclusion support/