rspec/rules/S2757/description.adoc
Fred Tingaud 49e4aff3ec
Modify Rule S2757: LaYC =+
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
2023-06-15 19:30:44 +02:00

7 lines
449 B
Plaintext

Using operator pairs (``++=+++``, ``++=-++``, or ``++=!++``) that look like reversed single operators (``+++=++``, ``++-=++`` or ``++!=++``) is confusing. They compile and run but do not produce the same result as their mirrored counterpart.
include::{example}[]
This rule raises an issue when ``++=+++``, ``++=-++``, or ``++=!++`` are used without any space between the operators and when there is at least one whitespace after.
include::{fix}[]