-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
In large codebases it's possible to end up with constants redefined across multiple packages. Usually we would like each constant to have a single source of truth. We currently don't have a way to detect for that.
I have a need for a linter which finds constants like these. I was going to write my own but after taking a look here, I realized it would be easier to add on to this one.
I've authored a PR which adds this feature, with a --find-duplicates flag. It also includes backwards compatible changes to the Issue struct, to allow integration with golangci-lint, if it is merged.
jgautheronjgautheron
Metadata
Metadata
Assignees
Labels
No labels