This change creates a fork of vet from the standard distribution. It was created by this script: $ mkdir go/analysis/passes/vet/ $ cd go/analysis/passes/vet/ $ (cd $GOROOT/src/cmd/vet >/dev/null && git co 31d19c0 && tar cf - .) | tar xf - $ rm -fr all # We'll deal with cmd/vet/all later. $ rm -fr internal/cfg # Published as golang.org/x/tools/go/cfg. $ sed -i -e '1s?^?// +build ignore\n\n?' *.go All the Go files have been tagged "ignore" for now. A series of follow-up changes will convert each vet check into an instance of the new go/analysis API's Analyzer. At some point soon, cmd/vet in the standard distribution will use a vendored copy of this code. Until then we will periodically integrate any changes made to cmd/vet to this fork. The current version of cmd/vet will be recorded in the REVISION file. Change-Id: I0c63eeb17cc612b3f013679595dcbc71a90950f7 Reviewed-on: https://go-review.googlesource.com/138137 Reviewed-by: Michael Matloob <matloob@golang.org> |
||
---|---|---|
.. | ||
findcall | ||
pkgfact | ||
vet | ||
README |
README
This directory does not contain a Go package, but acts as a container for various analyses that implement the golang.org/x/tools/go/analysis API and may be imported into an analysis tool. By convention, each package foo provides the analysis, and each command foo/cmd/foo provides a standalone driver.