equals-sign-chaining.md
September 23, 2022 ยท View on GitHub
code pal for ABAP > Documentation > Equals Sign Chaining
Equals Sign Chaining
What is the intent of the check?
This check identifies chained assignments to multiple variables as they usually confuse the reader.
"anti-pattern
x = y = z
How to solve the issue?
Break the assignment into multiple rows:
y = z.
x = y.
What to do in case of exception?
In exceptional cases, you can suppress this finding by using the pseudo-comment "#EC EQUALS_CHAINING which should be placed after the attribution:
x = y = z. "#EC EQUALS_CHAINING