1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:26:11 -07:00
go/cmd/vet
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
..
testdata cmd/vet: check for use of json/xml struct tags with unexported fields 2014-06-13 18:44:31 -07:00
whitelist cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
asmdecl.go cmd/vet: add amd64p32 (nacl) support to asmdecl check 2014-05-19 12:31:38 -04:00
assign.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
atomic.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
buildtag.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
composite.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
copylock.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
deadcode.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
doc.go cmd/vet: check for use of json/xml struct tags with unexported fields 2014-06-13 18:44:31 -07:00
main.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
method.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
nilfunc.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
print.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
rangeloop.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
shadow.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
structtag.go cmd/vet: check for use of json/xml struct tags with unexported fields 2014-06-13 18:44:31 -07:00
types.go cmd/vet: diagnose use of unsafe.Pointer to convert integer to pointer 2014-05-15 15:32:51 -04:00
unsafeptr.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
vet_test.go go.tools/cmd/vet: disable TestVet on Plan 9 2014-02-20 21:43:24 +01:00