CodeQL for VS Code starter: Initial commit.

This commit is contained in:
Aditya Sharad
2019-11-11 19:38:28 -08:00
commit e9d672c6bb
21 changed files with 292 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/**
* @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."