rspec/rules/S2757/description.adoc

7 lines
449 B
Plaintext
Raw Normal View History

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.
2020-06-30 12:48:07 +02:00
include::{example}[]
2021-02-02 15:02:10 +01:00
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}[]