Skip to content

Releases: tomarrell/wrapcheck

Restrict checking to exported interface methods

15 Aug 12:24
4a8f079
Compare
Choose a tag to compare

This release publishes work by @MichaelUrman which restricts checking to only exported interface methods as per the philosophy of the tool – ignoring unexported methods which must be by definition defined in the same package.

What's Changed

New Contributors

Full Changelog: v2.8.3...v2.9.0

Compile with Go v1.21

20 Feb 14:01
acb3e1f
Compare
Choose a tag to compare

Shifting back to Go v1.21 for the benefit of golangci-lint.

Update dependencies, support Go v1.22

19 Feb 14:53
d45c49d
Compare
Choose a tag to compare

What's Changed

Support for Go v1.22.

Full Changelog: v2.8.1...v2.8.2

Bump dependency version

23 Feb 13:49
23b75d2
Compare
Choose a tag to compare

Bumps golang.org/x/text from 0.3.7 to 0.3.8.

Ignore `errors.Join()` sig by default

04 Feb 12:18
142a2ce
Compare
Choose a tag to compare

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

Check interfaces against ignorePackageGlobs

07 Oct 18:29
36ebab6
Compare
Choose a tag to compare

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

Update Dependencies

14 Jun 13:45
3713191
Compare
Choose a tag to compare

Closes #30, updates x/tools to latest.

Update Dependencies

29 Apr 10:36
aa67455
Compare
Choose a tag to compare

This release fixes an issue when running wrapcheck over a Go v1.18 codebase due to an older version of a dependency.

Config to ignore interfaces

24 Mar 17:00
624a3b4
Compare
Choose a tag to compare

This release adds the config parameter ignoreInterfaceRegexps, which provides the ability to specify regex patterns which will ignore calls through an interface with a matching name.

For example:

ignoreInterfaceRegexps:
- [dD]ecoder

The above configuration will cause errors returned by methods called on an interface named decoder or Decoder to skip wrapcheck analysis.

Many thanks to @guillaumeio for the contribution!

Improved compilation of `ignoreSigRegexp`

17 Feb 15:12
fab0c41
Compare
Choose a tag to compare

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.