Closed mitar closed 1 month ago
I have tests and in those tests I have examples which have an output. This linter complains for example on:
func ExampleUnwrap() { base := errors.Base("error") withPrefix := errors.WithMessage(base, "prefix") fmt.Println(withPrefix) fmt.Println(errors.Unwrap(withPrefix)) // Output: // prefix: error // error }
But this is the output of the code, I cannot remove that duplicate "error" string. I think this should be detected automatically and all outputs from examples in tests should not be linted.
Thanks @matthewhughes934 this issue has fixed by #41
I have tests and in those tests I have examples which have an output. This linter complains for example on:
But this is the output of the code, I cannot remove that duplicate "error" string. I think this should be detected automatically and all outputs from examples in tests should not be linted.