File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -767,9 +767,11 @@ linters-settings:
767767 - .WithMessage(
768768 - .WithMessagef(
769769 - .WithStack(
770+ ignoreSigRegexps :
771+ - \.New.*Error\(
770772 ignorePackageGlobs :
771- - encoding/*
772- - github.com/pkg/*
773+ - encoding/*
774+ - github.com/pkg/*
773775
774776 wsl :
775777 # 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 {
525525
526526type WrapcheckSettings struct {
527527 IgnoreSigs []string `mapstructure:"ignoreSigs"`
528+ IgnoreSigRegexps []string `mapstructure:"ignoreSigRegexps"`
528529 IgnorePackageGlobs []string `mapstructure:"ignorePackageGlobs"`
529530}
530531
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ func NewWrapcheck(settings *config.WrapcheckSettings) *goanalysis.Linter {
1616 if len (settings .IgnoreSigs ) != 0 {
1717 cfg .IgnoreSigs = settings .IgnoreSigs
1818 }
19+ if len (settings .IgnoreSigRegexps ) != 0 {
20+ cfg .IgnoreSigRegexps = settings .IgnoreSigRegexps
21+ }
1922 if len (settings .IgnorePackageGlobs ) != 0 {
2023 cfg .IgnorePackageGlobs = settings .IgnorePackageGlobs
2124 }
You can’t perform that action at this time.
0 commit comments