cmd/vet: add unkeyed field literal check to 'go test' set #31695
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
early-in-cycle
A change that should be done early in the 3 month dev cycle.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
#2794 proposes requiring keyed (tagged) literals for any imported struct.
go vet
has a test for this already.But the test is only on in
go vet
not the automatic vet duringgo test
.I suggest we enable it during
go test
at the start of the Go 1.14 cycleas an experiment. If it works well there then maybe it would make sense
to promote the restriction to the language itself. And if not, then not.
Or maybe vet alone will be enough. Time will tell.
/cc @robpike @ianlancetaylor @griesemer
The text was updated successfully, but these errors were encountered: