-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
179 lines (179 loc) · 5.42 KB
/
package.json
File metadata and controls
179 lines (179 loc) · 5.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"name": "codeql-agent",
"displayName": "CodeQL Agent",
"description": "Automatically build and scan code with CodeQL",
"version": "0.9.0",
"icon": "media/icon-marketplace.png",
"engines": {
"vscode": "^1.64.0"
},
"repository": {
"type": "git",
"url": "https://github.com/codeql-agent-project/codeql-agent-extension"
},
"publisher": "DoubleVKay",
"categories": [
"Other"
],
"activationEvents": [
"onCommand:codeql-agent.scan",
"onCommand:codeql-agent.scan-folder",
"onCommand:codeql-agent.go-to-settings",
"onCommand:codeql-agent.build-database",
"onCommand:codeql-agent.build-database-folder"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "codeql-agent.scan",
"title": "CodeQL Agent: Scan"
},
{
"command": "codeql-agent.scan-folder",
"title": "CodeQL Agent: Choose project folder to scan"
},
{
"command": "codeql-agent.go-to-settings",
"title": "CodeQL Agent: Go to settings"
},
{
"command": "codeql-agent.build-database",
"title": "CodeQL Agent: Build database only (current project)"
},
{
"command": "codeql-agent.build-database-folder",
"title": "CodeQL Agent: Build database only from folder"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "ql-agent-container",
"title": "CodeQL Agent",
"icon": "media/logo.svg"
}
]
},
"views": {
"ql-agent-container": [
{
"id": "codeQLProject",
"name": "Project"
},
{
"id": "codeQLSettings",
"name": "Configuration"
}
]
},
"viewsWelcome": [
{
"view": "codeQLProject",
"contents": "Execute static application security testing (SAST) with CodeQL.\n[Scan](command:codeql-agent.scan) \n[Scan folder](command:codeql-agent.scan-folder) \n Build database only without executing SAST. \n[Build database](command:codeql-agent.build-database)\n[Build database from](command:codeql-agent.build-database-folder)"
},
{
"view": "codeQLSettings",
"contents": "Go to settings: CLI, source, language, output,... \n[Settings](command:codeql-agent.go-to-settings)"
}
],
"configuration": [
{
"id": "cli",
"type": "object",
"title": "CLI",
"properties": {
"codeql-agent.cli.dockerExecutablePath": {
"scope": "window",
"type": "string",
"default": "",
"markdownDescription": "Path to the Docker executable that should be used by the CodeQL extension. If empty, the extension will look for a Docker executable on your shell PATH, or if Docker is not on your PATH, download and manage its own Docker executable."
}
}
},
{
"id": "project",
"type": "object",
"title": "Project",
"properties": {
"codeql-agent.project.outputPath": {
"scope": "window",
"type": "string",
"default": "",
"markdownDescription": "Path to the output folder. Please enter full path. Default is ${currentProjectPath}/codeql-agent-results"
},
"codeql-agent.project.overwriteFlag": {
"type": "boolean",
"default": false,
"description": "Enable overwrite database when database path is exists and not an empty directory. This flag is useful for forcely rebuild database."
},
"codeql-agent.project.threads": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 1024,
"description": "Use this many threads to build database and evaluate queries. \nDefaults to 0. You can pass 0 to use one thread per core on the machine."
},
"codeql-agent.project.saveCache": {
"type": "boolean",
"default": false,
"description": "Aggressively save intermediate results to the disk cache. This may speed up subsequent queries if they are similar. Be aware that using this option will greatly increase disk usage and initial evaluation time."
},
"codeql-agent.project.language": {
"type": "string",
"default": "Auto detect",
"enum": [
"cpp",
"csharp",
"go",
"java",
"javascript",
"python",
"ruby"
]
},
"codeql-agent.project.javaVersion": {
"type": "string",
"default": "Auto",
"enum": [
"8",
"11"
],
"markdownDescription": "Set the Java version, support Java 8 and Java 11. The default value is Java 11."
},
"codeql-agent.project.command": {
"scope": "window",
"type": "string",
"default": "",
"markdownDescription": "The command used when you create a CodeQL database for one or more compiled languages, omit if the only languages requested are Python and JavaScript. This specifies the build commands needed to invoke the compiler. If you don't set this variable, CodeQL will attempt to detect the build system automatically, using a built-in autobuilder."
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "14.x",
"@types/vscode": "^1.64.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@vscode/test-electron": "^2.0.3",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"mocha": "^9.1.3",
"typescript": "^4.5.5"
},
"dependencies": {
"@types/fs-extra": "^9.0.13",
"fs-extra": "^10.0.0"
}
}