Skip to content

Commit e1a63e3

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

File tree

6 files changed

+26
-3
lines changed

6 files changed

+26
-3
lines changed

.golangci.next.reference.yml

+9
Original file line numberDiff line numberDiff line change
@@ -3587,6 +3587,15 @@ linters-settings:
35873587
multi-func: true
35883588

35893589
wrapcheck:
3590+
# An array of strings specifying additional substrings of signatures to ignore.
3591+
# Unlike 'ignoreSigs', this option extends the default set (or the set specified in 'ignoreSigs') without replacing it entirely.
3592+
# This allows you to add specific signatures to the ignore list
3593+
# while retaining the defaults or any items in 'ignoreSigs'.
3594+
# Default: []
3595+
extra-ignore-sigs:
3596+
- .CustomError(
3597+
- .SpecificWrap(
3598+
35903599
# An array of strings that specify substrings of signatures to ignore.
35913600
# If this set, it will override the default set of ignored signatures.
35923601
# See https://github.com/tomarrell/wrapcheck#configuration for more information.

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ require (
111111
github.com/tetafro/godot v1.4.18
112112
github.com/timakin/bodyclose v0.0.0-20230421092635-574207250966
113113
github.com/timonwong/loggercheck v0.10.1
114-
github.com/tomarrell/wrapcheck/v2 v2.9.0
114+
github.com/tomarrell/wrapcheck/v2 v2.10.0
115115
github.com/tommy-muehle/go-mnd/v2 v2.5.1
116116
github.com/ultraware/funlen v0.1.0
117117
github.com/ultraware/whitespace v0.1.1

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

+11
Original file line numberDiff line numberDiff line change
@@ -3417,6 +3417,17 @@
34173417
"type": "object",
34183418
"additionalProperties": false,
34193419
"properties": {
3420+
"extra-ignore-sigs": {
3421+
"description": "An array of strings specifying additional substrings of signatures to ignore.",
3422+
"default": [
3423+
".CustomError(",
3424+
".SpecificWrap("
3425+
],
3426+
"type": "array",
3427+
"items": {
3428+
"type": "string"
3429+
}
3430+
},
34203431
"ignoreSigs": {
34213432
"description": "An array of strings which specify substrings of signatures to ignore.",
34223433
"default": [

pkg/config/linters_settings.go

+1
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ type WhitespaceSettings struct {
984984
}
985985

986986
type WrapcheckSettings struct {
987+
ExtraIgnoreSigs []string `mapstructure:"extra-ignore-sigs"`
987988
// TODO(ldez): v2 the options must be renamed to use hyphen.
988989
IgnoreSigs []string `mapstructure:"ignoreSigs"`
989990
IgnoreSigRegexps []string `mapstructure:"ignoreSigRegexps"`

pkg/golinters/wrapcheck/wrapcheck.go

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111
func New(settings *config.WrapcheckSettings) *goanalysis.Linter {
1212
cfg := wrapcheck.NewDefaultConfig()
1313
if settings != nil {
14+
cfg.ExtraIgnoreSigs = settings.ExtraIgnoreSigs
15+
1416
if len(settings.IgnoreSigs) != 0 {
1517
cfg.IgnoreSigs = settings.IgnoreSigs
1618
}

0 commit comments

Comments
 (0)