1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:44:47 -07:00
The Go programming language
Go to file
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
astutil go.tools: rename packages. 2014-01-16 09:33:58 -05:00
blog go.tools/blog: strip prefix when serving static content 2013-11-08 13:28:32 +11:00
cmd go.tools/cmd/vet: replace warnings by errors 2014-03-07 15:31:28 +11:00
cover go.tools/cover: split parsing code out from cmd/cover 2013-12-03 20:55:21 -08:00
dashboard go.tools/dashboard/app: silence solaris11 and dragonfly builders 2014-03-04 11:53:58 +11:00
go go.tools/go/types: towards permitting adding additional package files incrementally 2014-03-06 15:53:37 -08:00
godoc godoc: Remove bogus messages referring to "/target". 2014-02-26 13:21:44 -05:00
imports imports: fix a case where we weren't gofmt-compatible 2014-02-07 17:03:34 -08:00
oracle go.tools/go/ssa: name anon funcs by their enclosing func. 2014-02-28 10:18:55 -05:00
playground go.tools/playground: parse shebang correctly 2014-02-18 09:44:12 -08:00
present go.tools/present: Remove formatting comments (HL, OMIT) from raw code. 2014-02-25 17:53:00 -08:00
.hgignore .hgignore: add comment setting policy 2013-12-20 16:28:57 -08:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
codereview.cfg codereview: switch defaultcc to golang-codereviews 2013-12-20 10:54:33 -05:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
LICENSE LICENSE: add 2012-03-17 15:20:58 +11:00
PATENTS go.empty: add PATENTS file to the subrepo. 2012-04-16 11:24:04 +10:00
README go.tools/README: minor correction. 2013-10-29 13:20:58 -04:00

This subrepository holds the source for various packages and tools that support
the Go programming language.

Some of the tools, godoc and vet for example, are included in binary Go distributions.
Others, including the Go oracle and the test coverage tool, can be fetched with "go get".

Packages include a type-checker for Go and an implementation of the
Static Single Assignment form (SSA) representation for Go programs.

To submit changes to this repository, see http://golang.org/doc/contribute.html.