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] <support@github.com> * add new option Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 97adeb3 commit b0ff233

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.golangci.example.yml

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

Lines changed: 5 additions & 3 deletions
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

Lines changed: 3 additions & 0 deletions
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)