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
Linter to rewrite err=foo; if err
to if err=foo; err
#4471
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
err = foo; if err != nil
to if err = foo; err != nil {
err=foo; if err
to if err=foo; err
Hello, FYI golangci-lint is a wrapper around linters. Also, I think you are looking for something like ifshort has been archived.
|
awesome, thx! |
can I use this without the PR being merged ? |
Not unless you build |
Your feature request related to a problem? Please describe.
rewrite
into
so our code looks consistent
Describe the solution you'd like.
automatic reformat
Describe alternatives you've considered.
manually reformatting
Additional context.
No response
The text was updated successfully, but these errors were encountered: