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/28959
Reviewed-by: Rob Pike <r@golang.org>
}
}
+ // 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
if w[key] == 0 {
// Vet error with no match in the whitelist. Print it.