• Alan Donovan's avatar
    cmd/vet/all: use x/tools/go/analysis/cmd/vet not cmd/vet · b2df0bd5
    Alan Donovan authored
    cmd/vet/all applies vet to all packages in the standard tree.
    It is run for every configuration using this command:
      GO_BUILDER_NAME=misc-vetall go tool dist test
    by the misc-vetall builder (see chart at build.golang.org).
    
    Ideally we would switch to 'go vet', but it effectively does a partial
    build. This means that its analysis has accurate type information, so
    it reports slightly fewer spurious diagnostics. However, it is more
    than twice as slow.
    
    Instead, cmd/vet/all builds and runs
    golang.org/x/tools/go/analysis/cmd/vet, which uses x/tools/go/packages
    to load the entire std lib from source. It takes about 4min to run all
    OS/ARCH pairs. An important consequence is that golang.org/x/tools
    must be on your $GOPATH to run cmd/vet/all. The test has been
    temporarily modified to warn and skip if this is not the case.
    
    This is a preparatory step for switching to the new
    cmd/vet based on vet-lite.
    
    Whitelist changes:
    - The two "deadcode" diagnostics removed from the whitelist were due
      to if-conditions that could now be proven false.
    - The asmdecl warnings are now printed with the log.Printf prefix,
      so they are discarded by the parser and needn't be whitelisted.
    
    Change-Id: I6486508b0de2cd947c897523af086a408cbaf4a8
    Reviewed-on: https://go-review.googlesource.com/c/149097Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    b2df0bd5
Name
Last commit
Last update
..
386.txt Loading commit data...
all.txt Loading commit data...
amd64.txt Loading commit data...
android_386.txt Loading commit data...
android_amd64.txt Loading commit data...
android_arm.txt Loading commit data...
arm.txt Loading commit data...
arm64.txt Loading commit data...
darwin_386.txt Loading commit data...
darwin_amd64.txt Loading commit data...
darwin_arm.txt Loading commit data...
darwin_arm64.txt Loading commit data...
dragonfly_amd64.txt Loading commit data...
freebsd_386.txt Loading commit data...
freebsd_amd64.txt Loading commit data...
freebsd_arm.txt Loading commit data...
linux_386.txt Loading commit data...
linux_amd64.txt Loading commit data...
linux_arm.txt Loading commit data...
linux_arm64.txt Loading commit data...
linux_ppc64x.txt Loading commit data...
mips.txt Loading commit data...
mips64x.txt Loading commit data...
mipsle.txt Loading commit data...
mipsx.txt Loading commit data...
nacl_386.txt Loading commit data...
nacl_amd64p32.txt Loading commit data...
nacl_arm.txt Loading commit data...
netbsd.txt Loading commit data...
netbsd_386.txt Loading commit data...
netbsd_amd64.txt Loading commit data...
netbsd_arm.txt Loading commit data...
openbsd_386.txt Loading commit data...
openbsd_amd64.txt Loading commit data...
openbsd_arm.txt Loading commit data...
plan9_386.txt Loading commit data...
plan9_amd64.txt Loading commit data...
plan9_arm.txt Loading commit data...
ppc64x.txt Loading commit data...
readme.txt Loading commit data...
s390x.txt Loading commit data...
solaris_amd64.txt Loading commit data...
wasm.txt Loading commit data...
windows.txt Loading commit data...
windows_386.txt Loading commit data...
windows_amd64.txt Loading commit data...