go vet output

164 views
Skip to first unread message

Gert

unread,
Oct 26, 2019, 6:59:59 AM10/26/19
to golang-nuts
https://github.com/golang/go/issues/24344#issuecomment-546589062

The start of the go vet rabbit hole is this right?


So basically one of does or all of the analyzers is responsible for the print output right?
So if i want to fix it i need to go through all of them?

Gert

unread,
Oct 26, 2019, 7:23:40 AM10/26/19
to golang-nuts
https://github.com/golang/tools/blob/master/go/analysis/analysis.go#L161-L173

Can I assume every output of go vet passes through here? So basically need to figure out all the references to this two functions and change the format?

Gert

unread,
Oct 26, 2019, 7:33:29 AM10/26/19
to golang-nuts
A no wait need to go other direction and find all type Pass structs

pass.Report(Diagnostic{Pos: pos, Message: msg})

Gert

unread,
Oct 26, 2019, 7:47:24 AM10/26/19
to golang-nuts
Stuck :( I am lost in a jungle of source code looking for `Report` printers 

Gert

unread,
Oct 30, 2019, 10:49:22 PM10/30/19
to golang-nuts
I think it needs to be fixed here somewhere? go/src/cmd/go/internal/work
Reply all
Reply to author
Forward
0 new messages