Skip to content

Commit fe1e49e

Browse files
build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.10.0 to 2.11.0 (#5656)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent 2edb46d commit fe1e49e

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

.golangci.next.reference.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3755,6 +3755,9 @@ linters:
37553755
# Default: []
37563756
ignore-interface-regexps:
37573757
- ^(?i)c(?-i)ach(ing|e)
3758+
# Determines whether wrapcheck should report errors returned from inside the package.
3759+
# Default: false
3760+
report-internal-errors: true
37583761

37593762
wsl:
37603763
# Do strict checking when assigning from append (x = append(x, y)).

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ require (
112112
github.com/tetafro/godot v1.5.0
113113
github.com/timakin/bodyclose v0.0.0-20241222091800-1db5c5ca4d67
114114
github.com/timonwong/loggercheck v0.10.1
115-
github.com/tomarrell/wrapcheck/v2 v2.10.0
115+
github.com/tomarrell/wrapcheck/v2 v2.11.0
116116
github.com/tommy-muehle/go-mnd/v2 v2.5.1
117117
github.com/ultraware/funlen v0.2.0
118118
github.com/ultraware/whitespace v0.2.0

go.sum

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

jsonschema/golangci.next.jsonschema.json

+5
Original file line numberDiff line numberDiff line change
@@ -3922,6 +3922,11 @@
39223922
"items": {
39233923
"type": "string"
39243924
}
3925+
},
3926+
"report-internal-errors": {
3927+
"description": "Determines whether wrapcheck should report errors returned from inside the package.",
3928+
"type": "boolean",
3929+
"default": false
39253930
}
39263931
}
39273932
},

pkg/config/linters_settings.go

+1
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ type WrapcheckSettings struct {
965965
IgnoreSigRegexps []string `mapstructure:"ignore-sig-regexps"`
966966
IgnorePackageGlobs []string `mapstructure:"ignore-package-globs"`
967967
IgnoreInterfaceRegexps []string `mapstructure:"ignore-interface-regexps"`
968+
ReportInternalErrors bool `mapstructure:"report-internal-errors"`
968969
}
969970

970971
type WSLSettings struct {

pkg/golinters/wrapcheck/wrapcheck.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import (
1010

1111
func New(settings *config.WrapcheckSettings) *goanalysis.Linter {
1212
cfg := wrapcheck.NewDefaultConfig()
13+
1314
if settings != nil {
1415
cfg.ExtraIgnoreSigs = settings.ExtraIgnoreSigs
16+
cfg.ReportInternalErrors = settings.ReportInternalErrors
1517

1618
if len(settings.IgnoreSigs) != 0 {
1719
cfg.IgnoreSigs = settings.IgnoreSigs

0 commit comments

Comments
 (0)