Skip to content

Releases: tomarrell/wrapcheck

Ignore signature by Regex

29 Oct 12:37
1d12a32
Compare
Choose a tag to compare

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

01 Oct 13:09
82c88b3
Compare
Choose a tag to compare

There are no functional differences with this release, just dependency upgrades.

Ignore packages by pattern

29 Jul 16:24
d409df3
Compare
Choose a tag to compare

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

15 Jun 20:30
56ecd1e
Compare
Choose a tag to compare

This release adds better support for github.com/pkg/errors by default. Including ignore cases for the signatures:

  • .WithMessagef(
  • .WithStack(

v2.1.0

30 Apr 15:27
Compare
Choose a tag to compare
Update to Go 1.16

v2.0.0

30 Apr 14:34
Compare
Choose a tag to compare
  • Add configuration file support.
  • Add support for configuring ignored signatures.

v1.2.0

19 Apr 15:40
Compare
Choose a tag to compare
  • Added .Error to the list of default ignore sigs due to #8

More flexible default

31 Mar 15:49
Compare
Choose a tag to compare

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

29 Mar 19:51
Compare
Choose a tag to compare

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.