-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: add innertypealias linter #3525
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
Implements golangci#3490.
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements. Pull Request Description
Linter
The Linter Tests Inside Golangci-lint
|
as you are the author of the PR you should not edit my message. And the first 2 conditions are not met:
|
Updated. |
@@ -587,6 +587,11 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config { | |||
WithPresets(linter.PresetUnused). | |||
WithURL("https://github.com/gordonklaus/ineffassign"), | |||
|
|||
linter.NewConfig(golinters.NewInnerTypeAlias()). | |||
WithSince("v1.51.0"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v1.55.0
at the moment
|
The
innertypealias
linter finds and reports exported types which are an alias for another exported type:https://github.com/gostaticanalysis/innertypealias
Fixes #3490