-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: add embeddedcheck linter #5761
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
base: main
Are you sure you want to change the base?
Conversation
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
|
|
Removed |
New linter to check that embedded types should be at the top of the field list of a struct. And there must be an empty line separating embedded fields from regular fields.
Following Embedding in structs
Link: https://github.com/manuelarte/embeddedcheck
Link to discussion: #5759