-
Notifications
You must be signed in to change notification settings - Fork 267
ci: use golangci lint #698
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #698 +/- ##
==========================================
- Coverage 83.21% 73.41% -9.80%
==========================================
Files 28 41 +13
Lines 3413 4292 +879
==========================================
+ Hits 2840 3151 +311
- Misses 458 953 +495
- Partials 115 188 +73 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I’ve noticed that the Codecov workflow fails on this pr while its changes don’t significantly affect code coverage. So I think for this pr maybe it is a good idea to igonore the Codecov report. |
Hi @chengxilo & @l3pp4rd Thanks for taking initiative on my issue #696, the linter integration! I have a few questions about the implementation:
@l3pp4rd What do you think? Would a new PR with proper configuration be helpful? |
Hi @Saurabh2402, Thanks for your feedback! Regarding the linters: here are the default ones used by golangci-lint – https://golangci-lint.run/usage/linters/#enabled-by-default. While I don't think this usually causes inconsistencies between local and CI environments, I agree that adding a configuration file would be a good idea if we want more control over which linters are enabled or disabled. Probably you could tell me which lint you want to enable, so I can add the configuration file with those lints enabled. On the code quality concerns: I tend to use Regarding handling As for future PRs: if the code isn’t too terrible, maybe the best way would be to leave a review or you can feel free to create a new pr. Thanks again! |
🤔 What's changed?
⚡️ What's your motivation?
Fix #696
and my presonal preference.
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
📋 Checklist:
pull request.
This text was originally generated from a template, then edited by hand. You can modify the template here.