Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider add Go Vet tool in the CI #639

Closed
Dentrax opened this issue Aug 28, 2020 · 4 comments · Fixed by #670
Closed

Consider add Go Vet tool in the CI #639

Dentrax opened this issue Aug 28, 2020 · 4 comments · Fixed by #670
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@Dentrax
Copy link

Dentrax commented Aug 28, 2020

Since we already use golangci-lint static analysis in the run-lint.sh file, adding the yet another static analysis tool (a.k.a go vet) would still makes sense. In order to detect suspicious constructs (too see registered analyzers: go tool vet help), we should use that official tool. (We are still covering some cases, by using .golangci.yaml config file.)

@ahmetb
Copy link
Member

ahmetb commented Aug 28, 2020

I believe go vet is already run as part of that. Do you see any output from go vet?

@Dentrax
Copy link
Author

Dentrax commented Aug 28, 2020

As far as i know, go vet is not part of golangci. But it covers some of cases. I just opened a PR about this, btw. 🙃
Edit: Currently, go vet returns 0.

@chriskim06
Copy link
Member

It seems like it is part of golangci-lint https://golangci-lint.run/usage/linters/, but I think would have to be added to this list https://github.com/kubernetes-sigs/krew/blob/master/.golangci.yml#L40

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants