Releases: tomarrell/wrapcheck
Improved compilation of `ignoreSigRegexp`
This releases front-loads the compilation of regexps provided via the config file, enabling immediate error reporting.
It also removes the os.Exit(1)
upon failing to compile the regexps, to play nicer with golangci-lint.
Ignore signature by Regex
This release adds the ability to configure wrapcheck to ignore signatures using regex matching using the ignoreSigRegexps
config value. Example configuration is below.
# An array of strings which specify regular expressions of signatures to ignore.
# This is similar to the ignoreSigs configuration above, but gives slightly more
# flexibility.
ignoreSigRegexps:
- \.New.*Error\(
Upgrade dependencies
There are no functional differences with this release, just dependency upgrades.
Ignore packages by pattern
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/*
Better default pkg/errors support
This release adds better support for github.com/pkg/errors by default. Including ignore cases for the signatures:
.WithMessagef(
.WithStack(
v2.1.0
v2.0.0
v1.2.0
More flexible default
This release adds some more signatures to ignore error wrapping calls from popular package such as github.com/pkg/errors
by default.
v1.0.0
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.