Assignment used as condition
Reports assignments that are used as a condition of an
do statement, or a conditional expression.
Although occasionally intended, this usage is confusing and may indicate a typo, for example,
= instead of
The quick-fix replaces
After the quick-fix is applied:
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3