CodeQL queries 1.23

Skip to end of metadata
Go to start of metadata

Finds tests like `==true`, `==false`, `"!=true`, `is false`

import python

from Compare eq
where eq.getAComparator() instanceof BooleanLiteral
select eq