1
0
mirror of https://github.com/golang/go synced 2024-11-05 15:06:09 -07:00
go/cmd/vet
Dmitri Shuralyov cccd43354a cmd/vet: fix bug where incorrect exit code was returned
Fixes golang/go#8792.

This is a simple change that fixes the issue. It may be desireable
to opt for a larger code change that makes this problem less likely
to be inadvertedly reintroduced in the future. For instance, a vetMain()
func can be used similar to gofmtMain(), or the os.Exit call can be
deferred.

LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/150850043
2014-10-02 10:33:35 -07:00
..
testdata go.tools/cmd/vet: remove duplicate test file 2014-09-26 15:09:18 -07:00
whitelist go.tools/*: replace $GOROOT/src/pkg with $GOROOT/src where appropriate. 2014-09-08 13:24:38 -04:00
asmdecl.go vet: LEA* opcodes don't need to have matching length source and destination. 2014-07-21 21:15:39 -07: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
bool.go go.tools/cmd/vet: detect stupid boolean conditions 2014-07-02 10:39:57 -07: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 go.tools/cmd/vet: warn about copying locks in range statements 2014-09-24 12:35:15 -07:00
deadcode.go go.tools/cmd/vet: prevent panic on goto without label 2014-06-20 11:08:45 -07:00
doc.go go.tools/cmd/vet: detect suspicious shifts 2014-08-29 11:17:01 -07:00
main.go cmd/vet: fix bug where incorrect exit code was returned 2014-10-02 10:33:35 -07: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 go.tools/cmd/vet: don't panic on zero arg Log method calls. 2014-08-29 08:56:35 +10:00
rangeloop.go go.tools/cmd/vet: change message for range check 2014-08-24 17:26:18 -07:00
shadow.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
shift.go go.tools/cmd/vet: detect suspicious shifts 2014-08-29 11:17:01 -07:00
structtag.go cmd/vet: check for use of json/xml struct tags with unexported fields 2014-06-13 18:44:31 -07:00
types.go cmd/vet: provide access to externally defined types 2014-09-24 13:54:50 -07: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