-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
420 lines (420 loc) · 14.1 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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
{
"name": "codechecker",
"displayName": "CodeChecker",
"author": "Ericsson",
"publisher": "codechecker",
"description": "CodeChecker integration for Visual Studio Code",
"icon": "media/codechecker_logo.png",
"repository": {
"type": "git",
"url": "https://github.com/Ericsson/CodeCheckerVSCodePlugin"
},
"homepage": "https://github.com/Ericsson/CodeCheckerVSCodePlugin/tree/main/README.md",
"bugs": {
"url": "https://github.com/Ericsson/CodeCheckerVSCodePlugin/issues"
},
"license": "Apache-2.0",
"version": "1.6.0",
"engines": {
"vscode": "^1.53.0"
},
"categories": [
"Linters",
"Programming Languages",
"Other"
],
"keywords": [
"CodeChecker",
"C",
"C++",
"linters",
"code analysis"
],
"activationEvents": [
"onCommand:codechecker.backend.reloadMetadata",
"onView:codechecker.views.overview",
"onFileSystem:file"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "codechecker.backend.reloadMetadata",
"title": "CodeChecker: Reload metadata"
},
{
"command": "codechecker.editor.nextStep",
"title": "CodeChecker: Next reproduction step"
},
{
"command": "codechecker.editor.previousStep",
"title": "CodeChecker: Previous reproduction step"
},
{
"command": "codechecker.editor.showSetupDialog",
"title": "CodeChecker: Show database setup dialog"
},
{
"command": "codechecker.executor.analyzeCurrentFile",
"title": "CodeChecker: Analyze current file"
},
{
"command": "codechecker.executor.analyzeSelectedFiles",
"title": "CodeChecker: Analyze selected files..."
},
{
"command": "codechecker.executor.analyzeProject",
"title": "CodeChecker: Analyze entire project"
},
{
"command": "codechecker.executor.showCommandLine",
"title": "CodeChecker: Show full CodeChecker analyze command line"
},
{
"command": "codechecker.executor.runCodeCheckerLog",
"title": "CodeChecker: Run CodeChecker log"
},
{
"command": "codechecker.executor.runLogWithBuildCommand",
"title": "CodeChecker: Run CodeChecker log with a custom build command..."
},
{
"command": "codechecker.executor.previewLogInTerminal",
"title": "CodeChecker: Preview CodeChecker log in terminal"
},
{
"command": "codechecker.executor.showOutput",
"title": "CodeChecker: Show Output"
},
{
"command": "codechecker.executor.stopCodeChecker",
"title": "CodeChecker: Stop running CodeChecker instance"
},
{
"command": "codechecker.executor.clearQueue",
"title": "CodeChecker: Stop analysis and clear analysis queue"
},
{
"command": "codechecker.sidebar.clearNotifications",
"title": "CodeChecker: Clear notifications list"
}
],
"configuration": {
"title": "CodeChecker",
"properties": {
"codechecker.executor.executablePath": {
"type": "string",
"description": "Path to CodeChecker's executable. Can be an executable in the `PATH` environment variable, or an absolute path to one.",
"default": "CodeChecker",
"order": 1
},
"codechecker.backend.outputFolder": {
"type": "string",
"description": "Output folder for CodeChecker's analysis files",
"default": "${workspaceFolder}/.codechecker",
"order": 2
},
"codechecker.backend.compilationDatabasePath": {
"type": "string",
"description": "Path to a custom compilation database, in case of a custom build system. Leave blank to use the database in CodeChecker's output folder, or to use CodeChecker's autodetection for multi-root workspaces.",
"default": null,
"order": 3
},
"codechecker.executor.arguments": {
"type": "string",
"description": "Additional arguments to CodeChecker's analyze command. For example, if you want to use a config file for CodeChecker pass '--config <config.json>'. For supported arguments, run `CodeChecker analyze --help`. The command `CodeChecker: Show full command line` command shows the resulting command line.",
"deprecationMessage": "This setting is deprecated. Use `codechecker.analyze.arguments` instead."
},
"codechecker.analyze.arguments": {
"type": "string",
"description": "Additional arguments to CodeChecker analyze command. For example, if you want to use a config file for CodeChecker pass '--config <config.json>'. For supported arguments, run `CodeChecker analyze --help`. The command `CodeChecker: Show full command line` command shows the resulting command line.",
"default": "--analyzer-config clangsa:mode=shallow",
"order": 4
},
"codechecker.executor.threadCount": {
"type": [
"number",
"null"
],
"description": "CodeChecker's thread count - leave empty to use all threads",
"deprecationMessage": "This setting is deprecated. Use `codechecker.analyze.threadCount` instead."
},
"codechecker.analyze.threadCount": {
"type": [
"number",
"null"
],
"description": "CodeChecker's thread count - leave empty to use all threads",
"default": 4,
"minimum": 1,
"order": 5
},
"codechecker.executor.analysisTimeout": {
"type": "number",
"description": "The timeout (in seconds) for each individual analysis run by the CodeChecker analyze command - set to 0 to disable the timeout",
"default": 60,
"order": 6
},
"codechecker.executor.logBuildCommand": {
"type": "string",
"description": "The build command passed to CodeChecker log.",
"deprecationMessage": "This setting is deprecated. Use `codechecker.log.buildCommand` instead."
},
"codechecker.log.buildCommand": {
"type": "string",
"description": "The build command passed to CodeChecker log.",
"default": "make",
"order": 7
},
"codechecker.executor.logArguments": {
"type": "string",
"description": "Additional arguments to CodeChecker log command. For supported arguments, run `CodeChecker log --help`. The command `CodeChecker: Preview CodeChecker log in terminal` command shows the resulting command line.",
"deprecationMessage": "This setting is deprecated. Use `codechecker.log.arguments` instead."
},
"codechecker.log.arguments": {
"type": "string",
"description": "Additional arguments to CodeChecker log command. For supported arguments, run `CodeChecker log --help`. The command `CodeChecker: Preview CodeChecker log in terminal` command shows the resulting command line.",
"default": "",
"order": 8
},
"codechecker.editor.showDatabaseDialog": {
"type": "boolean",
"description": "Show a dialog if the compilation database is not found",
"default": true
},
"codechecker.editor.enableCodeLens": {
"type": "boolean",
"description": "Enable CodeLens for displaying the reproduction path",
"default": true
},
"codechecker.editor.customBugSeverities": {
"type": "object",
"description": "Control how a bug is displayed in the editor, depending on what its severity is.",
"additionalProperties": {
"type": "string",
"enum": [
"Error",
"Warning",
"Information",
"Hint"
]
},
"default": {
"HIGH": "Error",
"MEDIUM": "Error",
"LOW": "Error",
"UNSPECIFIED": "Error",
"STYLE": "Warning"
}
},
"codechecker.executor.enableNotifications": {
"type": "boolean",
"description": "Enable pop-up notifications. Past messages are accessible via the sidebar menu regardless of this setting.",
"default": true
},
"codechecker.executor.runOnSave": {
"type": "boolean",
"description": "Controls auto-run of CodeChecker on save",
"deprecationMessage": "This setting is deprecated. Use `codechecker.analyze.runOnSave` instead."
},
"codechecker.analyze.runOnSave": {
"type": "boolean",
"description": "Controls auto-run of CodeChecker on save",
"default": true
}
}
},
"keybindings": [
{
"command": "codechecker.editor.nextStep",
"key": "ctrl-f7",
"mac": "cmd-f7",
"when": "editorTextFocus"
},
{
"command": "codechecker.editor.previousStep",
"key": "ctrl-shift-f7",
"mac": "cmd-shift-f7",
"when": "editorTextFocus"
}
],
"taskDefinitions": [
{
"type": "CodeChecker",
"required": [
"taskType"
],
"properties": {
"taskType": {
"type": "string",
"description": "The type of the CodeChecker analysis task",
"enum": [
"project",
"currentFile",
"selectedFiles"
]
},
"selectedFiles": {
"type": "array",
"description": "When using type `selectedFiles`, analyze the selected files."
}
}
},
{
"type": "CodeChecker log",
"required": [],
"properties": {
"buildCommand": {
"type": [
"string",
"null"
],
"description": "Optional custom build command for CodeChecker log"
}
}
}
],
"viewsContainers": {
"activitybar": [
{
"id": "codechecker",
"title": "CodeChecker",
"icon": "media/codechecker_logo.svg"
}
]
},
"views": {
"codechecker": [
{
"id": "codechecker.views.overview",
"name": "Overview",
"icon": "media/codechecker_logo.svg",
"contextualTitle": "CodeChecker"
},
{
"id": "codechecker.views.reports",
"name": "Reports in current file",
"icon": "media/codechecker_logo.svg",
"contextualTitle": "CodeChecker",
"when": "codechecker.sidebar.showReports"
},
{
"id": "codechecker.views.notifications",
"name": "Recent notifications",
"icon": "media/codechecker_logo.svg",
"contextualTitle": "CodeChecker"
}
]
},
"colors": [
{
"id": "codechecker.highlightBugReportPoints.background",
"description": "Color for highlighting bug report points.",
"defaults": {
"dark": "#00000000",
"light": "#eeb",
"highContrast": "#00000000"
}
},
{
"id": "codechecker.highlightBugReportPoints.border",
"description": "Border color for highlighting bug report points.",
"defaults": {
"dark": "#eeb",
"light": "#e07a16",
"highContrast": "#eeb"
}
},
{
"id": "severity.critical",
"description": "Indicating compilation errors",
"defaults": {
"dark": "#e92625",
"light": "#e92625",
"highContrast": "#e92625"
}
},
{
"id": "severity.high",
"description": "A true positive indicates that the source code will cause a run-time error",
"defaults": {
"dark": "#ffa800",
"light": "#ffa800",
"highContrast": "#ffa800"
}
},
{
"id": "severity.medium",
"description": "A true positive indicates that the source code that may not cause a run-time error (yet), but against intuition and hence prone to error",
"defaults": {
"dark": "#a9d323",
"light": "#a9d323",
"highContrast": "#a9d323"
}
},
{
"id": "severity.low",
"description": "A true positive indicates that the source code is hard to read/understand or could be easily optimized",
"defaults": {
"dark": "#669603",
"light": "#669603",
"highContrast": "#669603"
}
},
{
"id": "severity.style",
"description": "A true positive indicates that the source code is against a specific coding guideline or could improve readability",
"defaults": {
"dark": "#9932cc",
"light": "#9932cc",
"highContrast": "#9932cc"
}
},
{
"id": "severity.unspecified",
"description": "Severity is not specified for a checker",
"defaults": {
"dark": "#666666",
"light": "#666666",
"highContrast": "#666666"
}
}
]
},
"scripts": {
"vscode:prepublish": "yarn run package",
"deploy": "vsce publish --yarn",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run test-compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "yarn run pretest && node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "^16.11.7",
"@types/shell-quote": "^1.7.5",
"@types/vscode": "1.53.0",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.24.0",
"eslint": "^8.57.0",
"glob": "^8.1.0",
"mocha": "^10.3.0",
"sinon": "^17.0.1",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.90.3",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"shell-quote": "^1.8.1",
"tslib": "^2.6.2"
},
"packageManager": "[email protected]"
}