]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/vet: refresh command for updating whitelist data.
authorDavid Symonds <dsymonds@golang.org>
Mon, 11 Apr 2016 00:26:38 +0000 (10:26 +1000)
committerDavid Symonds <dsymonds@golang.org>
Mon, 11 Apr 2016 00:39:53 +0000 (00:39 +0000)
This excludes internal and testdata packages, as well as func types.

No new whitelist entries were found.

Change-Id: Ie7d42ce0a235394e4bcabf09e155726a35cd2d3d
Reviewed-on: https://go-review.googlesource.com/21822
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/vet/internal/whitelist/whitelist.go

index b6c85850f388e3c3c96f716bfac1cebaf9ab4d98..696f7a533d15000bfaf513fd35b3f56e9a7eb5cd 100644 (file)
@@ -11,7 +11,8 @@ package whitelist
 // library's exported slice types.
 var UnkeyedLiteral = map[string]bool{
        /*
-               find $GOROOT/src -type f | grep -v _test.go | xargs grep '^type.*\[\]' | \
+               find $GOROOT/src -type f | grep -v _test.go | grep -v /internal/ | grep -v /testdata/ | \
+                       xargs grep '^type.*\[\]' | grep -v ' func(' | \
                        grep -v ' map\[' | sed 's,/[^/]*go.type,,' | sed 's,.*src/,,' | \
                        sed 's, ,.,' |  sed 's, .*,,' | grep -v '\.[a-z]' | \
                        sort | awk '{ print "\"" $0 "\": true," }'