Commit f15915af authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/vet: ignore printf failures in cmd

This is a temporary measure to work around #17057.
It will be reverted when #17057 is fixed.

Change-Id: I21c02f63f3530774c91065cfed5d9c566839ed9f
Reviewed-on: https://go-review.googlesource.com/28959Reviewed-by: 's avatarRob Pike <r@golang.org>
parent 8e84a5dd
...@@ -258,6 +258,15 @@ NextLine: ...@@ -258,6 +258,15 @@ NextLine:
} }
} }
// Temporarily ignore unrecognized printf verbs from cmd.
// The compiler now has several fancy verbs (CL 28339)
// used with types implementing fmt.Formatters,
// and I believe gri has plans to add many more.
// TODO: remove when issue 17057 is fixed.
if strings.HasPrefix(file, "cmd/") && strings.HasPrefix(msg, "unrecognized printf verb") {
continue
}
key := file + ": " + msg key := file + ": " + msg
if w[key] == 0 { if w[key] == 0 {
// Vet error with no match in the whitelist. Print it. // Vet error with no match in the whitelist. Print it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment