-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errorf improvements #36
Comments
Indeed, |
But not every linter agrees it seems : go-critic/go-critic#1381 |
The fact gocritic doesn't support it, allow you to add it in your own lib 😅 |
We could also add fmt.Errorf("%s", err) But this one might be already reported by another linter This one is insane fmt.Sprintf("%s", err.Error()) |
Not yet, it was more a message in the bottle, to add it later. Anyone can work on it |
I'm still surprised by the ability of people to create code
fmt.Errorf("%s", "whatever")
fmt.Errorf("%w", err)
Some are using
fmt.Errorf("%w", ErrSentinel)
These could somehow be addressed with code close to
sprint1
with fmt.Errorf, but I think it should be inerrorf
Originally posted by @ccoVeille in mgechev/revive#1142 (comment)
The text was updated successfully, but these errors were encountered: