tools/go/analysis
Alan Donovan 7d6b83ca4d go/analysis: exit nonzero upon diagnostics
This change causes singlechecker and multichecker to exit with the
correct error code: 0 for success, 1 for load/analysis and other
errors, 3 for diagnostics.  (We avoid 2 because the flag package uses
it.)

In JSON mode, errors in package loading, parsing, typechecking and
analysis are successfully in JSON format, with exit code 0.

+ Test.

Change-Id: Iaf130ed3d4cb3e747a628af6da8dc97d065aa869
Reviewed-on: https://go-review.googlesource.com/c/149603
Run-TryBot: Alan Donovan <adonovan@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-11-14 17:55:09 +00:00
..
analysistest go/analysis/cmd/analyze: install all analyzers 2018-10-19 17:03:54 +00:00
cmd go/analysis/cmd/vet-lite: remove deprecation warnings 2018-11-13 15:29:50 +00:00
internal go/analysis: exit nonzero upon diagnostics 2018-11-14 17:55:09 +00:00
multichecker go/analysis: exit nonzero upon diagnostics 2018-11-14 17:55:09 +00:00
passes go/analysis/passes/stdmethods: show p.T not dir/p.T in diagnostic 2018-11-14 16:30:30 +00:00
singlechecker go/analysis: exit nonzero upon diagnostics 2018-11-14 17:55:09 +00:00
analysis.go go/analysis: write package documentation 2018-10-08 17:31:26 +00:00
doc.go go/analysis/cmd/vet: new name for cmd/analyze 2018-10-19 18:46:07 +00:00
validate.go go/analysis: validate: report duplicates among analyzers (roots) 2018-10-11 19:55:00 +00:00