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 @@ -762,9 +762,11 @@ linters-settings:
762762 - .WithMessage(
763763 - .WithMessagef(
764764 - .WithStack(
765+ ignoreSigRegexps :
766+ - \.New.*Error\(
765767 ignorePackageGlobs :
766- - encoding/*
767- - github.com/pkg/*
768+ - encoding/*
769+ - github.com/pkg/*
768770
769771 wsl :
770772 # 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