1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:08:33 -06:00
go/cmd/vet
Rob Pike 95c9b7bad1 go.tools/cmd/vet: replace warnings by errors
Over time, a number of modules were added that used Warn instead of Bad
to report problems with the code, but the documentation states that
if there is a problem, the exit code must be 1, not 0. Warn does not set the
exit code and should be used only for internal errors and messages
triggered by the -v flag.

There's nothing substantive here except calling the other function in a few
places.

Fixes golang/go#7017.

LGTM=crawshaw
R=golang-codereviews, crawshaw
CC=golang-codereviews
https://golang.org/cl/71860044
2014-03-07 15:31:28 +11:00
..
testdata go.tools/cmd/vet: change reporting of incorrect error count in Printf 2014-03-04 15:41:49 +11:00
whitelist cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
asmdecl.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
assign.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
atomic.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
buildtag.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
composite.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
copylock.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
deadcode.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
doc.go cmd/vet: check for nil result set in isStringer 2014-02-24 11:39:42 -08:00
main.go go.tools/go/types: split Info.Objects map into Defs and Uses. 2014-02-27 13:21:59 -05:00
method.go go.tools/cmd/vet: Update canonical method check for new xml.Marshaler/Unmarshaler interfaces 2013-10-07 11:10:36 -07:00
nilfunc.go go.tools/go/types: split Info.Objects map into Defs and Uses. 2014-02-27 13:21:59 -05:00
print.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
rangeloop.go go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
shadow.go go.tools/go/types: split Info.Objects map into Defs and Uses. 2014-02-27 13:21:59 -05:00
structtag.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
types.go go.tools/go/types: split Info.Objects map into Defs and Uses. 2014-02-27 13:21:59 -05:00
vet_test.go go.tools/cmd/vet: disable TestVet on Plan 9 2014-02-20 21:43:24 +01:00