Skip to content

Commit b0ff233

Browse files
build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.5.0 to 2.6.0 (#2696)
* build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.5.0 to 2.6.0 Bumps [github.com/tomarrell/wrapcheck/v2](https://github.com/tomarrell/wrapcheck) from 2.5.0 to 2.6.0. - [Release notes](https://github.com/tomarrell/wrapcheck/releases) - [Commits](tomarrell/wrapcheck@v2.5.0...v2.6.0) --- updated-dependencies: - dependency-name: github.com/tomarrell/wrapcheck/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * add new option Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 97adeb3 commit b0ff233

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.golangci.example.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,8 @@ linters-settings:
15301530
ignorePackageGlobs:
15311531
- encoding/*
15321532
- github.com/pkg/*
1533+
ignoreInterfaceRegexps:
1534+
- ^(?i)c(?-i)ach(ing|e)
15331535

15341536
wsl:
15351537
# See https://github.com/bombsimon/wsl/blob/master/doc/configuration.md for documentation of available settings.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ require (
8585
github.com/tdakkota/asciicheck v0.1.1
8686
github.com/tetafro/godot v1.4.11
8787
github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144
88-
github.com/tomarrell/wrapcheck/v2 v2.5.0
88+
github.com/tomarrell/wrapcheck/v2 v2.6.0
8989
github.com/tommy-muehle/go-mnd/v2 v2.5.0
9090
github.com/ultraware/funlen v0.0.3
9191
github.com/ultraware/whitespace v0.0.5

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,11 @@ type WhitespaceSettings struct {
592592
}
593593

594594
type WrapcheckSettings struct {
595-
IgnoreSigs []string `mapstructure:"ignoreSigs"`
596-
IgnoreSigRegexps []string `mapstructure:"ignoreSigRegexps"`
597-
IgnorePackageGlobs []string `mapstructure:"ignorePackageGlobs"`
595+
// TODO(ldez): v2 the options must be renamed to use hyphen.
596+
IgnoreSigs []string `mapstructure:"ignoreSigs"`
597+
IgnoreSigRegexps []string `mapstructure:"ignoreSigRegexps"`
598+
IgnorePackageGlobs []string `mapstructure:"ignorePackageGlobs"`
599+
IgnoreInterfaceRegexps []string `mapstructure:"ignoreInterfaceRegexps"`
598600
}
599601

600602
type WSLSettings struct {

pkg/golinters/wrapcheck.go

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ func NewWrapcheck(settings *config.WrapcheckSettings) *goanalysis.Linter {
2222
if len(settings.IgnorePackageGlobs) != 0 {
2323
cfg.IgnorePackageGlobs = settings.IgnorePackageGlobs
2424
}
25+
if len(settings.IgnoreInterfaceRegexps) != 0 {
26+
cfg.IgnoreInterfaceRegexps = settings.IgnoreInterfaceRegexps
27+
}
2528
}
2629

2730
a := wrapcheck.NewAnalyzer(cfg)

0 commit comments

Comments
 (0)