-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpackage.json
351 lines (351 loc) · 11.7 KB
/
package.json
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
{
"name": "semgrep",
"displayName": "Semgrep",
"description": "Security scans in a snap. Speedy SAST with a powerful rule registry for seamless detection and remediation of code vulnerabilities with each save.",
"version": "1.9.17",
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Linters"
],
"keywords": [
"lint",
"linter",
"validation",
"check",
"semgrep"
],
"activationEvents": [
"onStartupFinished"
],
"publisher": "Semgrep",
"repository": "https://github.com/semgrep/semgrep-vscode",
"icon": "semgrep-icon.png",
"galleryBanner": {
"color": "#ffffff",
"theme": "light"
},
"qna": "https://go.semgrep.dev/slack",
"main": "./out/main.js",
"contributes": {
"icons": {
"semgrep-icon": {
"description": "Semgrep Logo",
"default": {
"fontPath": "./semgrep-icon.woff",
"fontCharacter": "A"
}
}
},
"commands": [
{
"command": "semgrep.scanWorkspace",
"title": "Semgrep: Scan changed files in workspace"
},
{
"command": "semgrep.scanWorkspaceFull",
"title": "Semgrep: Scan all files in workspace"
},
{
"command": "semgrep.login",
"title": "Semgrep: Sign in"
},
{
"command": "semgrep.logout",
"title": "Semgrep: Sign out"
},
{
"command": "semgrep.refreshRules",
"title": "Semgrep: Update rules"
},
{
"command": "semgrep.showAst",
"title": "Semgrep: Show Generic AST"
},
{
"command": "semgrep.showAstNamed",
"title": "Semgrep: Show named Generic AST",
"when": "semgrep.cli.minor >= 36 || config.semgrep.ignoreCliVersion"
},
{
"command": "semgrep.search",
"title": "Semgrep: Search by pattern",
"icon": "$(search-view-icon)",
"when": "semgrep.cli.minor >= 70 || config.semgrep.ignoreCliVersion"
},
{
"command": "semgrep.search.clear",
"title": "Semgrep Search: Clear",
"icon": "$(search-remove)",
"when": "semgrep.cli.minor >= 70 || config.semgrep.ignoreCliVersion"
},
{
"command": "semgrep.search.exportRule",
"title": "Semgrep Search: Export Rule",
"icon": "$(search-remove)",
"when": "semgrep.cli.minor >= 70 || config.semgrep.ignoreCliVersion"
},
{
"command": "semgrep.search.replace",
"title": "Semgrep Search: Semantic Replace",
"icon": "$(replace)",
"when": "semgrep.cli.minor >= 70 || config.semgrep.ignoreCliVersion"
},
{
"command": "semgrep.restartLanguageServer",
"title": "Semgrep: Restart Language Server"
}
],
"configuration": {
"title": "Semgrep",
"properties": {
"semgrep.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"semgrep.trace.lspjsBreakBeforeStart": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Break before starting the LSP server in the Javascript version of the extension. Warning, this is for debugging purposes and may break things."
},
"semgrep.path": {
"description": "Path to the Semgrep executable. If none is set the extension will use the prepackaged version of Semgrep. Note: this has no effect if semgrep.useJS is set",
"type": "string",
"default": ""
},
"semgrep.useJS": {
"description": "Use the pure Javascript version of the extension. Warning, this is experimental and may break or have performance issues",
"type": "boolean",
"default": false
},
"semgrep.stackSizeJS": {
"description": "Maximum stack size (in KB) for the Javascript version of the extension. Warning, this is experimental and may break or have performance issues",
"type": "integer",
"default": 1000000
},
"semgrep.heapSizeJS": {
"description": "Maximum heap size (in MB) for the Javascript version of the extension. Increase if the extension crashes while downloading rules. Warning, this is experimental and may break or have performance issues.",
"type": "integer",
"default": 4096
},
"semgrep.ignoreCliVersion": {
"type": "boolean",
"default": false,
"description": "Ignore CLI Version, and enable all extension features (Warning: this is mainly for extension development, and can break things if enabled!)"
},
"semgrep.scan.configuration": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Each item can be a YAML configuration file, directory of YAML files ending in .yml | .yaml, URL of a configuration file, or Semgrep registry entry name. Use \"auto\" to automatically obtain rules tailored to this project; your project URL will be used to log in to the Semgrep registry."
},
"semgrep.scan.exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of files or directories to exclude."
},
"semgrep.scan.include": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of files or directories to include."
},
"semgrep.scan.jobs": {
"type": "integer",
"default": 2,
"description": "Number of parallel jobs to run."
},
"semgrep.scan.maxMemory": {
"type": "integer",
"default": 0,
"description": "Maximum memory to use in megabytes."
},
"semgrep.scan.maxTargetBytes": {
"type": "integer",
"default": 1000000,
"description": "Maximum size of target in bytes to scan."
},
"semgrep.scan.timeout": {
"type": "integer",
"default": 30,
"description": "Maximum time to scan in seconds."
},
"semgrep.scan.timeoutThreshold": {
"type": "integer",
"default": 3,
"description": "Maximum number of rules that can timeout on a file before the file is skipped. If set to 0 will not have limit. Defaults to 3."
},
"semgrep.scan.onlyGitDirty": {
"type": "boolean",
"default": true,
"description": "Only scan lines changed since the last commit"
},
"semgrep.scan.pro_intrafile": {
"type": "boolean",
"default": false,
"description": "Enable intrafile scanning using the Semgrep Pro Engine (requires Pro Engine to be already installed)"
},
"semgrep.doHover": {
"type": "boolean",
"default": false,
"description": "Enable hovering for AST node viewing (requires restart)"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "semgrep-sidebar",
"title": "Semgrep",
"icon": "semgrep-icon-basic.png"
}
]
},
"views": {
"semgrep-sidebar": [
{
"type": "webview",
"id": "semgrep.searchView",
"name": "Code Search"
},
{
"id": "semgrep.view.help",
"name": "Help and Feedback"
}
]
},
"menus": {
"editor/context": [
{
"command": "semgrep.showAst",
"when": "editorTextFocus",
"group": "navigation"
},
{
"command": "semgrep.showAstNamed",
"when": "editorTextFocus",
"group": "navigation"
}
]
},
"walkthroughs": [
{
"id": "semgrep.welcome",
"title": "Get started with Semgrep",
"description": "Make your code secure before you make that commit",
"steps": [
{
"id": "semgrep.welcome.getstarted",
"title": "Semgrep scans automatically",
"description": "Purpose-built for security engineers and developers.\n\n[Test how it works](command:semgrep.showDemoFile \"Open Semgrep test file\")",
"media": {
"markdown": "walkthrough/1-get-started.md"
},
"completionEvents": [
"onCommand:semgrep.showDemoFile"
]
},
{
"id": "semgrep.welcome.signin",
"title": "Level up your security practice",
"description": "Take a simple step for Pro coverage.\n\n[Sign in to use Pro features](command:semgrep.login \"Sign in to Semgrep Cloud Platform\")",
"media": {
"markdown": "walkthrough/2-sign-in.md"
},
"completionEvents": [
"onContext:semgrep.loggedIn"
]
},
{
"id": "semgrep.welcome.support",
"title": "Get support and give us feedback",
"description": "Join our active Slack community to get quick answers to your questions.\n\n[Join Semgrep Community Slack](https://go.semgrep.dev/slack \"Join Semgrep Community Slack\")",
"media": {
"markdown": "walkthrough/3-support.md"
},
"completionEvents": [
"onLink:https://github.com/semgrep/semgrep-vscode/issues",
"onLink:https://go.semgrep.dev/slack"
]
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "npm run download-lspjs && ./build.mjs",
"esbuild": "npm run esbuild-base -- --sourcemap",
"watch:esbuild": "npm run esbuild-base -- --sourcemap --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"lint": "eslint src --ext ts",
"test-compile": "tsc -p ./ && npm run esbuild",
"pretest": "npm run test-compile && npm run lint && cp -rf src/test/fixtures out/src/test",
"test-native": "node ./out/src/test/runTest.js",
"test-js": "USE_JS=1 node ./out/src/test/runTest.js",
"test": "npm run test-native && npm run test-js",
"clean": "rm -rf ./out",
"download-lspjs": "./download-lspjs.sh",
"install:all": "npm install"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^9.1.1",
"@types/node": "^14.0.27",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@types/semver": "^7.3.13",
"@types/tmp": "^0.2.3",
"@types/vscode": "1.86.0",
"@types/vscode-webview": "^1.57.0",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.8.0",
"@vitejs/plugin-react": "^1.0.7",
"@vscode/test-electron": "^2.3.8",
"esbuild": "^0.17.19",
"esbuild-css-modules-plugin": "^3.1.0",
"eslint": "^7.6.0",
"find-process": "^1.4.7",
"glob": "^7.1.6",
"mocha": "^9.1.4",
"tmp": "^0.2.1",
"typescript": "^4.7.4",
"typescript-plugin-css-modules": "^5.1.0"
},
"dependencies": {
"@sentry/esbuild-plugin": "^2.18.0",
"@sentry/node": "^8.7.0",
"@sentry/types": "^8.7.0",
"@types/node-fetch": "^2.5.7",
"@vscode/webview-ui-toolkit": "^1.4.0",
"lint-staged": "^13.0.3",
"node-fetch": "^2.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^5.0.1",
"react-use": "^17.5.0",
"semver": "^7.5.0",
"temp-dir": "^3.0.0",
"vscode-jsonrpc": "^6.0.0",
"vscode-languageclient": "^8.0.1",
"vscode-languageserver": "^9.0.1",
"which": "^2.0.2"
}
}