1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:44:40 -07:00
go/cmd/vet
Rob Pike 682ca03389 vet: improve validation of struct tags
Actually parse the strings to check them more accurately.
The particular problem it missed was that it didn't check
for control characters in the key. The only valid separator
is a space.

More tests.

Fixes #9500

Change-Id: Ib547e11c7e8d47d81eb8b1e8f1ab9c26174933df
Reviewed-on: https://go-review.googlesource.com/2685
Reviewed-by: Russ Cox <rsc@golang.org>
2015-01-12 23:15:16 +00:00
..
testdata vet: improve validation of struct tags 2015-01-12 23:15:16 +00:00
whitelist tools: add import comments. 2014-12-09 22:42:16 +00:00
asmdecl.go cmd/vet: check return moves, support power64x, various fixes 2014-10-30 11:53:56 -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
bool.go astutil: add Unparen utility, eliminating 7 copies. 2014-12-29 22:24:57 +00: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: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
copylock.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
deadcode.go go.tools/cmd/vet: prevent panic on goto without label 2014-06-20 11:08:45 -07:00
doc.go tools: add import comments. 2014-12-09 22:42:16 +00:00
main.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
method.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
nilfunc.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
print.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
rangeloop.go go.tools/cmd/vet: change message for range check 2014-08-24 17:26:18 -07:00
shadow.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
shift.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
structtag.go vet: improve validation of struct tags 2015-01-12 23:15:16 +00:00
types.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
unsafeptr.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
vet_test.go go.tools/cmd/vet: disable TestVet on Plan 9 2014-02-20 21:43:24 +01:00