`go vet ./...` missing feature "go vet project"

I don't want to `go vet` a file, I want to `go vet ./…` at the project root and see a list of all the errors and warnings it pops up.

“Run” and “test” don't quite do this either. I don't want to run something, or run the tests which could take longer, `go vet` is _really fast_ and that's what I want.

0
Hi there,   

Thanks for the feedback. Before suggesting anything specific, a couple of quick questions:   
1. Which GoLand version are you on?  
2. How do you currently run go vet, if at all (terminal, External Tools, etc.)?

In case you have not come across it, GoLand bundles the Go Linter plugin. It runs golangci-lint across the project and shows the findings in the Problems tool window. golangci-lint includes the go vet checks plus several other linters. See our documentation: https://www.jetbrains.com/help/go/configuring-golangci-lint-in-the-go-linter-plugin.html
This is not strictly the same as go vet ./..., it runs more than go vet via golangci-lint as a wrapper, so it may or may not match what you have in mind. 
1

Aha! “lint with included vet" sounds great. I had been running in terminal `go vet ./…` , but the bundled lint plugin is better. Thanks.

Also what I wasn't finding was the “Problems” view, and the “Project Errors” tab to show everything

0

请先登录再写评论。