Inspectopedia
 
2024.3

Assignment expression in conditional

Warning
New
Last modified: 03 December 2024

Reports usages of assignment expressions in conditionals. Assignments in conditionals can make the code harder to read and are often a typo (= instead of ==).

Use the Report assignments in parentheses checkbox to highlight assignments in parentheses.