You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above code, there is a blank line before the if statement, and I really want to remind developers to remove it. Is it possible to add a rule to give such a warning?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
I don't think it's possible to enforce cuddling every time something is related, the main purpose is to get people to add newlines. However since it's idiomatic to cuddle the error checking it was implemented in #65 (after #66 was created).
The feature is not merged to golangci-lint but if you build your own version or use wsl with --enforce-err-cuddling you can enforce what you're asking about regarding error checking.
For now that's the best idea! I (or someone) will update the version in golangci-lint with a new release in the future. I've been lagging behind because I really want to find the time to implement a fixer before the next merge to golangci-lint. Sadly it seems like it will take longer than I thought so I might need to update golangci-lint anyway.
To build it locally is the only option right now I'm afraid.
For example:
In the above code, there is a blank line before the
if
statement, and I really want to remind developers to remove it. Is it possible to add a rule to give such a warning?Thank you in advance.
The text was updated successfully, but these errors were encountered: