1
0
mirror of https://github.com/golang/go synced 2024-10-01 04:08:32 -06:00
go/cmd
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
..
benchcmp benchmark/parse, cmd/benchcmp: new package for parsing benchmarks 2015-01-06 01:34:08 +00:00
callgraph tools: add import comments. 2014-12-09 22:42:16 +00:00
cover tools: add import comments. 2014-12-09 22:42:16 +00:00
digraph tools: add import comments. 2014-12-09 22:42:16 +00:00
eg cmd/eg, godoc/redirect: update remaining code.google.com links 2014-12-18 07:48:40 +00:00
godex tools: add import comments. 2014-12-09 22:42:16 +00:00
godoc cmd/godoc: mention examples feature in godoc 2015-01-08 02:02:02 +00:00
goimports all: update links from code.google.com to new homes 2014-12-12 03:10:55 +00:00
gorename cmd/gorename: make Usage documentation sensible in godoc 2014-12-30 16:36:43 +00:00
gotype tools: add import comments. 2014-12-09 22:42:16 +00:00
html2article all: address vet reports 2014-12-29 06:08:34 +00:00
oracle tools: add import comments. 2014-12-09 22:42:16 +00:00
present cmd/present: fix unclosed section element 2015-01-08 23:27:10 +00:00
ssadump tools: add import comments. 2014-12-09 22:42:16 +00:00
stringer stringer: avoid if's in the generated code 2014-12-22 20:58:05 +00:00
tipgodoc cmd/tipgodoc: kill old process as we switch over 2015-01-12 02:54:00 +00:00
vet vet: improve validation of struct tags 2015-01-12 23:15:16 +00:00