#539 Add a check for counfusion between assignment and comparison

release_4.4
open
nobody
Check (274)
5
2012-10-10
2010-05-20
Nicolas Dordet
No

For example :
if (a = 1) : ko
if (a == 1) : ok

the rule must check you never assign something in a control statement condition.

For example :
b = 2;
a = 1 + b; : ok

b == 2 ;
a = 1 + b; : ko

the rule must check you never compare two references outside a control statement condition.

Discussion