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