-
Notifications
You must be signed in to change notification settings - Fork 23
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(build): add golangci-lint to the pipeline as a non-blocking step #742
Conversation
6ba64c8
to
a918815
Compare
I noticed before that the PR Title check doesn't seem to see the change after editing a PR description (even if I re-run the job it was still failing with the original PR description) so I slipped a fix into this PR and added |
ba98e93
to
ad9f2e0
Compare
53342cb
to
7aba207
Compare
Co-authored-by: Brandt Keller <43887158+brandtkeller@users.noreply.github.com>
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.
thank you for doing a better job at naming jobs than I have in the past 😆
This is a fairly simple golang linter pipeline. It's not required so we don't have to fix anything before merging if we don't want, which will give us some time to tweak the linters (disable linters or individual rules as needed) - like all metrics it's important that we care about and act on the information instead of just add noise.
I will set myself a weekly reminder for the next 4 weeks to revisit the results during our sync and upgrade this check to required once we're happy with it. I'll keep an eye on the PRs and track what checks are useful vs not and upgrade as we go.
📢 👋🏻 Let me know what you think of annotating the PR; I don't know if I like it or not. I have strongly mixed feelings on it 😂 Maybe I'll like it more when I'm confident we agree with the linters
Enabled Linters
I don't think I have a strong opinion on most of these and I'm entirely willing to change the list as many times as we feel like; I like
prealloc
but I'm already worried it'll have too many false positives to be worthwhile. I'm also not sure how seriously I take theprintf: non-constant format string in call
errors but I'll make another pass at fixing them and see how I feel about it afterwards.Also, while I included gosec in here, we might want to move that into a security specific pipeline. I don't have an opinion there, let me know if you do 🤷🏻
Defaults:
Added by me: