Files
codeql/csharp/ql/examples/snippets/empty_block.ql
2019-07-26 17:47:11 +02:00

15 lines
222 B
Plaintext

/**
* @id cs/examples/empty-block
* @name Empty blocks
* @description Finds empty block statements.
* @tags empty
* block
* statement
*/
import csharp
from BlockStmt blk
where blk.isEmpty()
select blk