Skip to content

64. [QA] Implement dead code detection for Go codebase #116

@dotandev

Description

@dotandev

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):
    • unused linter enabled in golangci-lint.

Suggested Execution

  • Fork/Branch: qa/go-dead-code
  • Implementation:
    • Update .golangci.yml.
    • Remove any code flagged as unused by the linter.

Test and Commit

  • Testing:
    • Run golangci-lint run and verify zero unused code warnings.
  • 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions