-
Notifications
You must be signed in to change notification settings - Fork 88
feat: enhance golangci-lint configuration for better code quality #367
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?
feat: enhance golangci-lint configuration for better code quality #367
Conversation
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.
@rishi-jat thanks for the PR.
A few points that are required in order to start moving it forward:
- DCO is required
- rebasing is required
- while helpful for PR review, the markdown files are not part of the configuration change and should not be included in the PR.
- CI should pass (currently fails)
- lint configuration file is missing a newline at end of file.
In addition, we'll review the list of added/modified linters` configuration so can reach consensus on specific linters ROI (e.g., false positive rates...)
f32c095 to
33cbde7
Compare
|
@rishi-jat please address previous review comments (DCO, remove extra files in commit). |
|
Apologies, For late will do all the suggested changes today! Thanks |
fffc431 to
8c41d39
Compare
|
thanks for removing the extra files. |
- Add 10+ new high-value linters focusing on security, k8s patterns, and code quality - Enhanced error handling with errorlint, nilerr for robust controller code - Added security linters: gosec, bodyclose, contextcheck, noctx - Improved import organization with gci for large project maintainability - Added character safety checks: asciicheck, bidichk - Enhanced testing support with testpackage for Ginkgo conventions - Strategically disabled overly restrictive linters (varnamelen, exhaustruct, etc.) - Maintains compatibility with existing codebase while improving standards Fixes llm-d#149 Signed-off-by: Rishi Jat <[email protected]>
8c41d39 to
0b021fc
Compare
- Remove deprecated gomnd linter - Add newline at end of file - Add exclusion rules for problematic packages - Configuration now works with modern golangci-lint versions Fixes golangci-lint compatibility and CI issues. Signed-off-by: Rishi Jat <[email protected]>
|
@elevran I have fix the lint error and also can you please add Hacktoberfestt tag as this pr is part of my Hacktoberfest contribution! |
|
what is an |

Summary
Fixes #149