1
0
mirror of https://github.com/golang/go synced 2024-11-05 16:26:11 -07:00
go/cmd/vet
Rob Pike bc5f637240 go.tools/cmd/vet: assume implementations of fmt.Formatter print just fine
Update golang/go#6212
See issue 6259.
When that is resolved, we can do a better job. Until then, we just see if the
type has a method called Format and, if so, assume it's a Formatter and so
there's nothing to check.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/13267043
2013-08-28 11:24:43 +10:00
..
testdata go.tools/cmd/vet: assume implementations of fmt.Formatter print just fine 2013-08-28 11:24:43 +10:00
whitelist cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
asmdecl.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
assign.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
atomic.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
buildtag.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
composite.go cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
deadcode.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
doc.go go.tools/cmd/vet: the composite test is about keys, not tags 2013-08-03 12:19:59 +10:00
main.go go.tools/cmd/vet: check for recursive stringers 2013-08-21 11:07:53 +10:00
method.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
nilfunc.go go.tools/cmd/vet: detect useless function comparisons 2013-08-20 16:11:01 +10:00
print.go go.tools/cmd/vet: exclude "%#v" from recursive stringer check 2013-08-22 11:44:39 +10:00
rangeloop.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
shadow.go go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -07:00
structtag.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
types.go go.tools/cmd/vet: assume implementations of fmt.Formatter print just fine 2013-08-28 11:24:43 +10:00
vet_test.go go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -07:00