1
0
mirror of https://github.com/golang/go synced 2024-11-05 23:36:12 -07:00
go/cmd/vet
David Symonds f895b43688 vet: Rearrange checkers to use a registration system.
This removes much of the AST logic out of main.go,
and makes it easier to build custom vet binaries

The trade-off in this change is for flexibility.
There's very little change in the per-check files,
a lot less code in main.go (specifically the AST walking
logic has shrunk), and it makes it much easier to build
custom vet binaries simply by dropping new source files
in the directory.

LGTM=josharian, r
R=r, josharian, kamil.kisiel
CC=golang-codereviews
https://golang.org/cl/83400043
2014-06-13 15:04:45 +10:00
..
testdata cmd/vet: diagnose use of unsafe.Pointer to convert integer to pointer 2014-05-15 15:32:51 -04:00
whitelist cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
asmdecl.go cmd/vet: add amd64p32 (nacl) support to asmdecl check 2014-05-19 12:31:38 -04:00
assign.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
atomic.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
buildtag.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
composite.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
copylock.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
deadcode.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
doc.go go.tools/cmd/vet: clean up formatting of the package document 2014-05-19 11:34:31 -07:00
main.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
method.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
nilfunc.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
print.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
rangeloop.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
shadow.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
structtag.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
types.go cmd/vet: diagnose use of unsafe.Pointer to convert integer to pointer 2014-05-15 15:32:51 -04:00
unsafeptr.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
vet_test.go go.tools/cmd/vet: disable TestVet on Plan 9 2014-02-20 21:43:24 +01:00