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

Add a golang-linter to CI #972

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aleksraiden
Copy link
Contributor

Add a golangci-lint (https://github.com/golangci/golangci-lint) into CI.

Currently, as a first stage, enable only one linter (nonascii symbols) and fix error into code.

In a next stages, I will enable a part of linters and fix errors.

@aleksraiden
Copy link
Contributor Author

@tristanmorgan may you merge into master this PR and PR #971 and I will add other linters step-by-step? Lot of thanks!

@tristanmorgan
Copy link
Member

I've Merged #971, I'm trying to get some feedback from the other maintainers about what linting we should apply. As food for thought, on my personal fork (and other work) I often use the following tools:

  • golang.org/x/lint/golint
  • honnef.co/go/tools/cmd/staticcheck
  • github.com/gordonklaus/ineffassign
  • golang.org/x/tools/cmd/deadcode
  • golang.org/x/vuln/cmd/govulncheck

@torwig
Copy link

torwig commented Feb 24, 2025

@tristanmorgan Hi, I believe the golangci-lint linter contains almost all those you listed (and more: https://golangci-lint.run/usage/linters/) except a vulnerability check.

@tristanmorgan tristanmorgan requested a review from a team February 24, 2025 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants