Skip to content

Commit e6a8dac

Browse files
committed
cmd/vet: refresh command for updating whitelist data.
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 <[email protected]>
1 parent ad7448f commit e6a8dac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmd/vet/internal/whitelist/whitelist.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ package whitelist
1111
// library's exported slice types.
1212
var UnkeyedLiteral = map[string]bool{
1313
/*
14-
find $GOROOT/src -type f | grep -v _test.go | xargs grep '^type.*\[\]' | \
14+
find $GOROOT/src -type f | grep -v _test.go | grep -v /internal/ | grep -v /testdata/ | \
15+
xargs grep '^type.*\[\]' | grep -v ' func(' | \
1516
grep -v ' map\[' | sed 's,/[^/]*go.type,,' | sed 's,.*src/,,' | \
1617
sed 's, ,.,' | sed 's, .*,,' | grep -v '\.[a-z]' | \
1718
sort | awk '{ print "\"" $0 "\": true," }'

0 commit comments

Comments
 (0)