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