tomarrell/wrapcheck

False positive when return errors.Newf()

m3dwards opened this issue · 1 comments

return nil, errors.Newf("Unknown node implementation: %v", n.Impl)

Gives me a false positive

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(