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 csharp/example/empty-block
*/
import csharp
from BlockStmt b
where b.getNumberOfStmts() = 0
select b, "This is an empty block."

View File

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