tomarrell/wrapcheck
A Go linter to check that errors from external packages are wrapped
📋 What's Changed
- deps: update Go version and upgrade golang.org/x/tools to v0.39.0 by @KoheiMatsuno99 in https://github.com/tomarrell/wrapcheck/pull/66
✨ New Contributors
- @KoheiMatsuno99 made their first contribution in https://github.com/tomarrell/wrapcheck/pull/66
- Full Changelog: https://github.com/tomarrell/wrapcheck/compare/v2.11.0...v2.12.0
📋 What's Changed
- deps: upgrade golang.org/x/tools to v0.25.0 by @high-moctane in https://github.com/tomarrell/wrapcheck/pull/61
- feat: add option for reporting internal errors by @frozenbonito in https://github.com/tomarrell/wrapcheck/pull/60
✨ New Contributors
- @high-moctane made their first contribution in https://github.com/tomarrell/wrapcheck/pull/61
- @frozenbonito made their first contribution in https://github.com/tomarrell/wrapcheck/pull/60
- Full Changelog: https://github.com/tomarrell/wrapcheck/compare/v2.10.0...v2.11.0
📋 What's Changed
- Add config option to extend `ignoreSigs` by @matthewhughes934 in https://github.com/tomarrell/wrapcheck/pull/56. Previously the only option was to replace the entire set, requiring you to also include the default set.
✨ New Contributors
- @matthewhughes934 made their first contribution in https://github.com/tomarrell/wrapcheck/pull/56
- Full Changelog: https://github.com/tomarrell/wrapcheck/compare/v2.9.0...v2.10.0
📋 What's Changed
- Suppress reports from unexported interface methods by @MichaelUrman in https://github.com/tomarrell/wrapcheck/pull/52
✨ New Contributors
- @MichaelUrman made their first contribution in https://github.com/tomarrell/wrapcheck/pull/52
- Full Changelog: https://github.com/tomarrell/wrapcheck/compare/v2.8.3...v2.9.0
Shifting back to Go v1.21 for the benefit of golangci-lint.
📋 What's Changed
- Support for Go v1.22.
- deps: upgrade golang.org/x/tools by @rledisez & @tomarrell in https://github.com/tomarrell/wrapcheck/pull/48
- Full Changelog: https://github.com/tomarrell/wrapcheck/compare/v2.8.1...v2.8.2
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8.
The new `errors.Join()` function was added in Go 1.20, it should be ignored by default. More info in the Go 1.20 release notes: https://tip.golang.org/doc/go1.20#errors
This release introduces checking of the interface's package against the configured ignorePackageGlobs values. Previously, only functions called directly from other packages had their packages checked against this option, however this behaviour was unintuitive. This change checks the interface package as well, ignoring interfaces which originate from a package matching a glob pattern. Closes #34
Closes #30, updates `x/tools` to latest.
This release fixes an issue when running wrapcheck over a Go v1.18 codebase due to an older version of a dependency.
📋 Changes
- [dD]ecoder
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.
📋 Changes
- \.New.*Error\(
There are no functional differences with this release, just dependency upgrades.
📋 Changes
- encoding/*
- github.com/pkg/*
📋 Changes
- `.WithMessagef(`
- `.WithStack(`
📋 Changes
- Add configuration file support.
- Add support for configuring ignored signatures.
📋 Changes
- Added `.Error` to the list of default ignore sigs due to #8
This 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.
