Open powerman opened 4 days ago
For records, it was detected here https://github.com/mgechev/revive/issues/1066#issuecomment-2466227459
I'm curious if all assignments operators are supported
https://www.w3schools.com/go/go_assignment_operators.php
Including the non common one such as &=,|=, << and co
I checked the code, I think it's OK
but, maybe it is worth adding the unit tests
Hi @powerman @ccoVeille Thank you for reporting this. I'll add support for increment, decrement and assignment ops to the rule
Describe the bug modifies-value-receiver does not trigger on
++
and--
.To Reproduce Steps to reproduce the behavior:
go install github.com/mgechev/revive@latest
Expected behavior
Desktop (please complete the following information):