Configure wrapcheck linter to recognize wrapping done by kyaml's errors package

This commit is contained in:
Katrina Verey
2022-05-09 16:40:48 -04:00
parent 2e230b4d4b
commit 7a773a3a48
2 changed files with 15 additions and 2 deletions

View File

@@ -110,6 +110,19 @@ linters-settings:
gomnd:
ignored-functions:
- ioutil.WriteFile
wrapcheck:
ignoreSigs:
# defaults
- .Errorf(
- errors.New(
- errors.Unwrap(
- .Wrap(
- .Wrapf(
- .WithMessage(
- .WithMessagef(
- .WithStack(
# from kyaml's errors package
- .WrapPrefixf(
issues:
new-from-rev: c94b5d8f2 # enables us to enforce a larger set of linters for new code than pass on existing code