We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
The increment-decrement rule is quite opinionated, as many rules are. However, its suggestion is problematic in the sense that e.g.
++
--
Describe the solution you'd like
increment-decrement can be disabled like all others, no problem with that, and that does not require a solution.
But for the above reasons, a rule that would do the opposite of increment-decrement for anything but loop counters would be nice to have.
Describe alternatives you've considered
Just disabling increment-decrement, but that won't help with adoption of the += 1 style.
+= 1
Additional context
N/A.
The text was updated successfully, but these errors were encountered:
Hi @scop, thank you for the proposal. PR are welcome.
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
The increment-decrement rule is quite opinionated, as many rules are. However, its suggestion is problematic in the sense that e.g.
++
/--
in contexts other than loop counters in Go code, e.g. stdlibDescribe the solution you'd like
increment-decrement can be disabled like all others, no problem with that, and that does not require a solution.
But for the above reasons, a rule that would do the opposite of increment-decrement for anything but loop counters would be nice to have.
Describe alternatives you've considered
Just disabling increment-decrement, but that won't help with adoption of the
+= 1
style.Additional context
N/A.
The text was updated successfully, but these errors were encountered: