1
0
mirror of https://github.com/golang/go synced 2024-10-01 08:28:43 -06:00
go/cmd/vet
Rob Pike 331c428e76 go.tools/cmd/vet: add check for shadowed variables
Experimental feature. It's too noisy yet to be enabled by default,
so it must be enabled explicitly by
        go tool vet -shadow *.go
or
        go tool vet -shadow directory
(The go command does not know about the -shadow flag.)

Fixes golang/go#5634.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/10409047
2013-06-21 11:27:53 -07:00
..
testdata go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -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
deadcode.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
doc.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
main.go go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -07:00
method.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
print.go go.tools/cmd/vet: check for missing printf verb 2013-06-18 08:21:06 -07: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
taglit.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
types.go go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -07:00
vet_test.go go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -07:00