False positive when return errors.Newf()
m3dwards opened this issue · 1 comments
m3dwards commented
return nil, errors.Newf("Unknown node implementation: %v", n.Impl)
Gives me a false positive
m3dwards commented
Using with golangci so the following fixes it for me:
.golangci file:
linters-settings:
wrapcheck:
ignoreSigs:
- .Errorf(
- errors.New(
- errors.Newf(
- errors.Unwrap(
- .Wrap(
- .Wrapf(
- .WithMessage(
- .WithMessagef(
- .WithStack(