Open alecthomas opened 9 years ago
Fair point -- I've imagined that you run both of them and they catch different things.
The error you've pointed to here is really just a debugging message and not an error, so I should fix that for sure.
Hi @barakmich, Thanks for creating this tool!
I think it would be nice if go-nyet would be usable as a superset of go-vet directly, in the same way goimports
and goreturns
are for gofmt
. What would be required for this is:
-n
and -x
flagsfile.go:123: lower case error message
)go vet
for each package seperately and buffer all lines for both go vet
and go-nyet
and sort alphabetically (could also remove duplicates at this stage).This would make go-nyet a hot-plugable alternative in IDE's. In the same way as goimports
and goreturns
currently are. For instance in the atom go-plus plugin.
I'm not sure if this is intentional, but go-nyet doesn't pick up some issues that go vet does. eg.
This is not a big deal, but it does also seem to include some checks that are the same for both, so if you run both tools you sometimes get duplicates.
Basically I'd like to run either both of them, or just one of them, get the same coverage, and not get duplicates.