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

13 строки
211 B
Plaintext

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