-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
new nlreturn linter #1267
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
new nlreturn linter #1267
Conversation
Hey, thank you for opening your first Pull Request ! |
Does this differ from https://github.com/bombsimon/wsl or is it simply a subset of the rules enforced by wsl? |
WSL is too strict linter. We tried to add more configurable options but author did not accept our changes and suggested to make an alternative implementation saying that WSL was started as a joke. We think that empty lines are really matter before return and branch statements. They greatly improve code readability. Besides that we're open to add any other configurable WSL like checks if anyone need them. |
I think it's fine to have overlapping linters in I just wanted to say that I very much appreciate changes and the PR never got merge since I never got any response to my questions or proposals on how to use keep development of WSL. And to be clear, it's no longer a joke but something I want to be useful. I just don't think configuring a linter to turn of all checks is the right way to go so again, I think this will be a good contribution to I'll approve this but I will let someone else from @golangci/team merge this so we agree with each other. |
IMO if it's not possible to achieve same result with other linters, then I don't see any reasons to not merge it |
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.
LGTM
@ssgreg Could please resolve conflicts and we will merge it |
Hey, @ssgreg — we just merged your PR to
By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests. Thanks again! |
Add nlreturn linter.
https://github.com/ssgreg/nlreturn