1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:44:49 -07:00
go/cmd/vet/testdata
Josh Bleecher Snyder d46b792624 cmd/vet: check for use of json/xml struct tags with unexported fields
This is a common source of bugs, particularly for those new to Go. Running this on a corpus of public code flagged 114 instances.

This check may need to be updated once issue 7363 is resolved.

LGTM=r
R=golang-codereviews, r
CC=bradfitz, golang-codereviews
https://golang.org/cl/91010047
2014-06-13 18:44:31 -07:00
..
asm1.s go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
asm2.s go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
asm3.s go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
asm4.s go.tools/cmd/vet: handle symbolic TEXT annotations 2013-11-01 11:49:11 -07:00
asm.go go.tools/cmd/vet: handle symbolic TEXT annotations 2013-11-01 11:49:11 -07:00
assign.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
atomic.go go.tools/cmd/vet: fix a panic on invalid AddInt 2014-05-14 12:16:58 -07:00
buildtag_bad.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
buildtag.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
composite.go go.tools/cmd/vet: the composite test is about keys, not tags 2013-08-03 12:19:59 +10:00
copylock.go cmd/vet: check for sync types being copied during function calls 2013-12-09 20:14:28 -08:00
deadcode.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
method.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
nilfunc.go go.tools/cmd/vet: fix build of testdata package 2013-08-21 11:08:25 +10:00
print.go vet: Don't consider %T for recursive stringers. 2014-03-14 16:08:04 +11:00
rangeloop.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
shadow.go go.tools/cmd/vet: don't check for shadowing of blank identifier 2014-03-13 10:27:55 +11:00
structtag.go cmd/vet: check for use of json/xml struct tags with unexported fields 2014-06-13 18:44:31 -07:00
unsafeptr.go cmd/vet: diagnose use of unsafe.Pointer to convert integer to pointer 2014-05-15 15:32:51 -04:00