-
Notifications
You must be signed in to change notification settings - Fork 72
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
chore: enable golangci-lint on repository #138
Conversation
The tests will fail until #132 will be merged. This way, it will give you an idea of the errors it might report. |
f99bd7c
to
2dc9d0f
Compare
2dc9d0f
to
c06089b
Compare
pushed back after a rebase, all tests should pass, let see |
I suggest to merge it before any other PR, so the tests would be run on new PR, ensuring I hope maintaining code quality. Do not hesitate to ping me for help on any PR where you or contributor will face golangci-lint issues. But golangci-lint guidelines and documentation is great. Please note that you only have to install golangci-lint 1.57.2 or newer locally and run the following command to replicate locally the GitHub action I installed golangci-lint run ./... |
Is everything alright with this PR? I mean tell me if you need something from me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - a few questions
Big thanks @ccoVeille for adding golangci-lint functionality to the pipeline! |
You won't thank me when it will report errors on every PR 😅 Anyway, golangci-lint was a great discovery for me. It helped me to find many bugs in my code. They keep adding linters. I recommend you to read golangci-lint website and especially the false positive section. |
@ccoVeille Any idea why the linter on windows is failing? https://github.com/Boeing/config-file-validator/actions/runs/8709768011/job/23890548496 |
@kehoecj I couldn't reproduce the problem on my windows PC but this error is sometimes fixed by doing |
The message is about timeout parameter It can be increased in .golangci.yaml https://golangci-lint.run/usage/configuration/#run-configuration The default value (1min) might be too short for windows docker instance, try 5m |
I followed https://github.com/golangci/golangci-lint-action
Fixes #137