You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a look at this at the moment. Seems unrelated to test files, as this one fails too:
$ cat f.go
package p
import "log"
func F() {
log.Fatal("%v", 1)
}
$ go vet f.go
$ go1 vet f.go
f.go:6: possible formatting directive in Fatal call
exit status 1
Note how this seems to be a regression from 1.9, however, as it works fine there.
It looks like this was a small regression in fc768da - likely an issue in the regex. CL coming soon.
mvdan
changed the title
cmd/vet: does not report log.Fatal with format string
cmd/vet: does not report possible formatting directive with %v
Nov 22, 2017
I don't understand why vet reports no problems here:
The text was updated successfully, but these errors were encountered: