rspec/rules/S1454/flex/rule.adoc

33 lines
521 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;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]