Equalities as expression statements

Author: LGTM

import python

from ExprStmt e, Compare eq
where e.getValue() = eq and eq.getOp(0) instanceof Eq
select e

Description

Finds `==` equality expressions that form a statement