1
0
mirror of https://github.com/golang/go synced 2024-10-01 05:38:32 -06:00
go/cmd/vet
Rob Pike 6bd3206b1f go.tools/cmd/vet: allow checks to be disabled explicitly as well as set explicitly
Now we can say
        vet -printf=false
to disable the printf test but run all others.
Implemented by creating a tri-state boolean flag that records whether it has been
set explicitly; before this, -printf=false was not distinguishable from not having
mentioned the printf flag at all.

Fixes golang/go#7422.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/72330043
2014-03-07 16:02:49 +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 go.tools/cmd/vet: allow checks to be disabled explicitly as well as set explicitly 2014-03-07 16:02:49 +11:00
main.go go.tools/cmd/vet: allow checks to be disabled explicitly as well as set explicitly 2014-03-07 16:02:49 +11: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