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

20 lines
235 B
Plaintext

Chained assignments are confusing and hard to read, and should be avoided.
== Noncompliant Code Example
[source,text]
----
x = y = 0; // Noncompliant
----
== Compliant Solution
[source,text]
----
x = 0;
y = 0; // or y = x;
----