rspec/rules/S2224/rule.adoc
2021-06-08 14:23:48 +02:00

18 lines
207 B
Plaintext

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