vscode-codeql-starter/codeql-custom-queries-csharp/example.ql

13 строки
209 B
Plaintext

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