rspec/rules/S881/description.adoc

6 lines
388 B
Plaintext
Raw Normal View History

2020-06-30 12:50:59 +02:00
The use of increment and decrement operators in method calls or in combination with other arithmetic operators is not recommended, because:
2020-06-30 12:50:59 +02:00
* It can significantly impair the readability of the code.
* It introduces additional side effects into a statement, with the potential for undefined behavior.
* It is safer to use these operators in isolation from any other arithmetic operators.