-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add funcorder linter #5630
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 funcorder linter #5630
Conversation
|
Hey, thank you for opening your first Pull Request ! |
|
For some reason, when I try to run:
I get the errors that I am expecting, but the |
|
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
|
This linter detects that the exported method for a struct are placed before the non-exported methods. It also detects that the
NewXYZfunctions are placed after the struct declaration and before the struct's methods.Following the uber style guidelines about function-grouping-and-ordering.
Repository: https://github.com/manuelarte/funcorder