mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
14 lines
259 B
Plaintext
14 lines
259 B
Plaintext
/**
|
|
* @name Equality test on boolean
|
|
* @description Finds tests like `==true`, `==false`, `!=true`, `!=false`
|
|
* @tags equals
|
|
* test
|
|
* boolean
|
|
*/
|
|
|
|
import java
|
|
|
|
from EqualityTest eq
|
|
where eq.getAnOperand() instanceof BooleanLiteral
|
|
select eq
|