A Go linter to check that errors from external packages are wrapped
There are no functional differences with this release, just dependency upgrades.
This release adds the ability to configure glob patterns to ignore unwrapped errors returned by functions contained in packages that match the glob pattern.
Below is an example configuration.
# An array of glob patterns which, if any match the package of the function
# returning the error, will skip wrapcheck analysis for this error. This is
# useful for broadly ignoring packages and/or subpackages from wrapcheck
# analysis. There are no defaults for this value.
ignorePackageGlobs:
- encoding/*
- github.com/pkg/*
This release adds better support for github.com/pkg/errors by default. Including ignore cases for the signatures:
.WithMessagef(
.WithStack(
.Error
to the list of default ignore sigs due to #8This release adds some more signatures to ignore error wrapping calls from popular package such as github.com/pkg/errors
by default.
This release takes wrapcheck to v1. It's currently stable and breaking changes will result in major version bumps.
An upcoming minor version release will allow for configurable ignored signatures in order to have more control over where errors are reported.