Skip to content

Conversation

rishi-jat
Copy link

Summary

  • 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.)
  • Added comprehensive documentation and ROI analysis
  • Maintains compatibility with existing codebase while improving standards

Fixes #149

- 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.)
- Added comprehensive documentation and ROI analysis
- Maintains compatibility with existing codebase while improving standards

Addresses llm-d#149 - Review and expand golangci-lint configuration
Copy link
Collaborator

@elevran elevran left a 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...)

@elevran elevran moved this from In review to In progress in llm-d-inference-scheduler Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Review (and expand, if needed) golangci-lint configuration

2 participants