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 block
* @kind problem
* @problem.severity warning
* @id javascript/example/empty-block
*/
import javascript
from Block b
where b.getNumStmt() = 0
select b, "This is an empty block."

View File

@@ -0,0 +1,3 @@
name: codeql-custom-queries-javascript
version: 0.0.0
libraryPathDependencies: codeql-javascript