Files
codeql-lab/codeql-jedis/example.ql

13 lines
199 B
Plaintext

/**
* @name Empty block
* @kind problem
* @problem.severity warning
* @id java/example/empty-block
*/
import java
from BlockStmt b
where b.getNumStmt() = 0
select b, "This is an empty block."