-
Notifications
You must be signed in to change notification settings - Fork 18k
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
cmd/vet: %w in Printf call should be flagged #35472
Comments
This also seems like a pretty simple issue for anyone wanting to get started contributing to vet. |
I would love to take a shot on this. Any pointers to get started on this issue? |
The file in question is this one - https://github.com/golang/tools/blob/master/go/analysis/passes/printf/printf.go. Look at how other verbs are handled and take it from there. |
Ah I'm on the right track then. Thank you! I'm working on this 😃 |
|
You are right. This was fixed by golang/tools@1d17272. The original issue was reported by @josharian himself which was about passing strings to a The error message is I will go ahead and close this one. Thanks for looking into it @Inconnu08. |
Exactly. But the end error message is the above one reported by |
Oops, sorry. :( I thought I tested with tip but apparently only did 1.13. Thanks, @Inconnu08. |
Refs golang/go#35472 Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
https://play.golang.org/p/-kQ6HtIIMG7
vet should complain about the
%w
verb. Only in Errorf format strings does it have meaning.The text was updated successfully, but these errors were encountered: