File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -767,9 +767,11 @@ linters-settings:
767
767
- .WithMessage(
768
768
- .WithMessagef(
769
769
- .WithStack(
770
+ ignoreSigRegexps :
771
+ - \.New.*Error\(
770
772
ignorePackageGlobs :
771
- - encoding/*
772
- - github.com/pkg/*
773
+ - encoding/*
774
+ - github.com/pkg/*
773
775
774
776
wsl :
775
777
# See https://github.com/bombsimon/wsl/blob/master/doc/configuration.md for
Original file line number Diff line number Diff line change @@ -525,6 +525,7 @@ type WhitespaceSettings struct {
525
525
526
526
type WrapcheckSettings struct {
527
527
IgnoreSigs []string `mapstructure:"ignoreSigs"`
528
+ IgnoreSigRegexps []string `mapstructure:"ignoreSigRegexps"`
528
529
IgnorePackageGlobs []string `mapstructure:"ignorePackageGlobs"`
529
530
}
530
531
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ func NewWrapcheck(settings *config.WrapcheckSettings) *goanalysis.Linter {
16
16
if len (settings .IgnoreSigs ) != 0 {
17
17
cfg .IgnoreSigs = settings .IgnoreSigs
18
18
}
19
+ if len (settings .IgnoreSigRegexps ) != 0 {
20
+ cfg .IgnoreSigRegexps = settings .IgnoreSigRegexps
21
+ }
19
22
if len (settings .IgnorePackageGlobs ) != 0 {
20
23
cfg .IgnorePackageGlobs = settings .IgnorePackageGlobs
21
24
}
You can’t perform that action at this time.
0 commit comments