ssgreg / nlreturn

Checks for a new line before return and branch statements.
MIT License
26 stars 6 forks source link

Implement autofix #13

Open remyleone opened 1 month ago

remyleone commented 1 month ago

We got very large code base and doing it by hand seems long. Could you implement auto fix for this linter?

kersten commented 1 week ago

@remyleone great idea. Would you be able to propose a PR?

remyleone commented 1 week ago

I have no experience in writing linters and auto fix features.

kersten commented 6 days ago

@remyleone a colleague just found out that nlreturn has an autofix feature already. If you are using it with golang-lint it's not working, because they have implemented their own solution, which is not compatible with nlreturn. There is already an issue for it: https://github.com/golangci/golangci-lint/issues/1779