-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
Description
Description
Add a linter to detect and remove unused functions, variables, and constants in the Go project.
Requirements and Context
- Background: Keeps the codebase lean and maintainable.
- Success Criteria (Done):
unusedlinter enabled ingolangci-lint.
Suggested Execution
- Fork/Branch:
qa/go-dead-code - Implementation:
- Update
.golangci.yml. - Remove any code flagged as unused by the linter.
- Update
Test and Commit
- Testing:
- Run
golangci-lint runand verify zero unused code warnings.
- Run
- PR Inclusions:
- Updated config and removal of dead code.
Example Commit Message
chore: enable unused linter and remove dead code
Guidelines
- Must-haves: Ensure non-exported fields intended for future use aren't prematurely deleted.
Reactions are currently unavailable