Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add golint package name MixedCaps rule #796

Closed
cce opened this issue Feb 24, 2023 · 0 comments · Fixed by #797
Closed

Add golint package name MixedCaps rule #796

cce opened this issue Feb 24, 2023 · 0 comments · Fixed by #797

Comments

@cce
Copy link
Contributor

cce commented Feb 24, 2023

Is your feature request related to a problem? Please describe.
I have been using revive as a "drop-in replacement for golint" but recently noticed revive did not detect an issue I remembered golint used to raise. golint has a rule to check for MixedCaps package names, added in golang/lint#285 and implemented in https://github.com/golang/lint/blob/83fdc39ff7b56453e3793356bcff3070b9b96445/lint.go#L561-L563

Describe the solution you'd like
It would be great to have revive's var-naming rule also perform a check for MixedCaps package names.

Describe alternatives you've considered
I've considered re-enabling golint and running it alongside revive but that would result in duplicate linter suggestions.

Additional context
PR to follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant