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

12 строки
204 B
Plaintext

/**
* @name Empty scope
* @kind problem
* @problem.severity warning
* @id python/example/empty-scope
*/
import python
from Scope s
where count(s.getAStmt()) = 0
select s, "This is an empty scope."