rspec/rules/S1454/flex/rule.adoc
2022-02-04 16:28:24 +00:00

35 lines
549 B
Plaintext

Using several "--" or "{plus}{plus}" unary operators in the same arithmetic expression can quickly make the expression unreadable.
== Noncompliant Code Example
[source,flex]
----
var j:int = foo++ - --bar;
----
== Compliant Solution
[source,flex]
----
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[]