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 @@ -762,9 +762,11 @@ linters-settings:
762
762
- .WithMessage(
763
763
- .WithMessagef(
764
764
- .WithStack(
765
+ ignoreSigRegexps :
766
+ - \.New.*Error\(
765
767
ignorePackageGlobs :
766
- - encoding/*
767
- - github.com/pkg/*
768
+ - encoding/*
769
+ - github.com/pkg/*
768
770
769
771
wsl :
770
772
# 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