mirror of
https://github.com/hohn/codeql-lab.git
synced 2025-12-16 01:53:03 +01:00
12 lines
207 B
Plaintext
12 lines
207 B
Plaintext
/**
|
|
* @name Empty block
|
|
* @kind problem
|
|
* @problem.severity warning
|
|
* @id javascript/example/empty-block
|
|
*/
|
|
|
|
import javascript
|
|
|
|
from Block b
|
|
where b.getNumStmt() = 0
|
|
select b, "This is an empty block." |