rspec/rules/S1454/flex/rule.adoc

18 lines
269 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Using several "--" or "{plus}{plus}" unary operators in the same arithmetic expression can quickly make the expression unreadable.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
var j:int = foo++ - --bar;
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
bar--;
var j:int = foo++ - bar;
----