mirror of
https://github.com/hohn/codeql-lab.git
synced 2025-12-16 09:53:04 +01:00
CodeQL for VS Code starter: Initial commit.
This commit is contained in:
12
codeql-custom-queries-csharp/example.ql
Normal file
12
codeql-custom-queries-csharp/example.ql
Normal 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."
|
||||
3
codeql-custom-queries-csharp/qlpack.yml
Normal file
3
codeql-custom-queries-csharp/qlpack.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: codeql-custom-queries-csharp
|
||||
version: 0.0.0
|
||||
libraryPathDependencies: codeql-csharp
|
||||
Reference in New Issue
Block a user