mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
15 lines
286 B
Plaintext
15 lines
286 B
Plaintext
/**
|
|
* @id py/examples/eq-true
|
|
* @name Equality test on boolean
|
|
* @description Finds tests like `==true`, `==false`, `"!=true`, `is false`
|
|
* @tags equals
|
|
* test
|
|
* boolean
|
|
*/
|
|
|
|
import python
|
|
|
|
from Compare eq
|
|
where eq.getAComparator() instanceof BooleanLiteral
|
|
select eq
|