-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.Categorizes issue or PR as related to cleaning up code, process, or technical debt.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Description
The following linters are deprecated in golangci-lint but we're still using them in our config:
- structcheck - Finds unused struct fields
- deadcode - Finds unused code
- varcheck - Finds unused global variables and constants
- ifshort - Go linter that checks if your code uses short syntax for if-statements whenever possible.
We should remove these linters at some point as they're no longer mantained, but is there a strong reason to keep any of them around?
I think ifshort is low-impact and is currently buggy (gives different results on my machine for some reason). The others - deadcode, varcheck, and struct check can all be replaced by unused
Metadata
Metadata
Assignees
Labels
kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.Categorizes issue or PR as related to cleaning up code, process, or technical debt.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.