-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
package.json
526 lines (526 loc) · 19.3 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
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
{
"name": "vscode-code-review",
"displayName": "Code Review",
"description": "Create expert reviews / code reviews for a workspace that can be exported as a document for handing over to customers",
"version": "1.33.1",
"publisher": "d-koppenhagen",
"author": "Danny Koppenhagen <[email protected]> (https://k9n.dev)",
"homepage": "https://github.com/d-koppenhagen/vscode-code-review",
"bugs": {
"url": "https://github.com/d-koppenhagen/vscode-code-review/issues",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/d-koppenhagen/vscode-code-review.git"
},
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.59.0",
"node": ">=16.0.0 <17.0.0",
"npm": ">=8.0.0 <9.0.0"
},
"icon": "images/icon.png",
"galleryBanner": {
"color": "#9B9DEC",
"theme": "light"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"keywords": [
"code review",
"review",
"comments",
"multi-root ready"
],
"contributes": {
"commands": [
{
"command": "codeReview.addNote",
"title": "Code Review: Add Note",
"icon": {
"light": "images/icons/add-light.svg",
"dark": "images/icons/add-dark.svg"
}
},
{
"command": "codeReview.exportAsHtmlWithDefaultTemplate",
"title": "Code Review: Export as HTML with default template"
},
{
"command": "codeReview.exportAsHtmlWithHandlebarsTemplate",
"title": "Code Review: Export as HTML with Handlebars template"
},
{
"command": "codeReview.exportAsMarkdownWithDefaultTemplate",
"title": "Code Review: Export as Markdown with default template"
},
{
"command": "codeReview.exportAsMarkdownWithHandlebarsTemplate",
"title": "Code Review: Export as Markdown with Handlebars template"
},
{
"command": "codeReview.exportAsGitLabImportableCsv",
"title": "Code Review: Export as GitLab importable CSV file"
},
{
"command": "codeReview.exportAsGitHubImportableCsv",
"title": "Code Review: Export as GitHub importable CSV file (github-csv-tools)"
},
{
"command": "codeReview.exportAsJiraImportableCsv",
"title": "Code Review: Export as JIRA importable CSV file"
},
{
"command": "codeReview.exportAsJson",
"title": "Code Review: Export as JSON file"
},
{
"command": "codeReview.importFromJson",
"title": "Code Review: Import from JSON file"
},
{
"command": "codeReview.deleteNote",
"title": "Delete"
},
{
"command": "codeReview.filterByCommitEnable",
"title": "Code Review: View comments from the current commit",
"icon": {
"light": "images/icons/filter-off-light.svg",
"dark": "images/icons/filter-off-dark.svg"
}
},
{
"command": "codeReview.filterByCommitDisable",
"title": "Code Review: View comments from all commits",
"icon": {
"light": "images/icons/filter-on-light.svg",
"dark": "images/icons/filter-on-dark.svg"
}
},
{
"command": "codeReview.filterByFilenameEnable",
"title": "Code Review: View comments from the current file",
"icon": {
"light": "images/icons/filter-filename-off-light.svg",
"dark": "images/icons/filter-filename-off-dark.svg"
}
},
{
"command": "codeReview.filterByFilenameDisable",
"title": "Code Review: View comments from all files",
"icon": {
"light": "images/icons/filter-filename-on-light.svg",
"dark": "images/icons/filter-filename-on-dark.svg"
}
},
{
"command": "codeReview.filterByPriorityEnable",
"title": "Code Review: Hide comments with green traffic light priority",
"icon": {
"light": "images/icons/filter-priority-off-light.svg",
"dark": "images/icons/filter-priority-off-dark.svg"
}
},
{
"command": "codeReview.filterByPriorityDisable",
"title": "Code Review: View comments with all priorities",
"icon": {
"light": "images/icons/filter-priority-on-light.svg",
"dark": "images/icons/filter-priority-on-dark.svg"
}
},
{
"command": "codeReview.setReviewFileSelectedCsv",
"title": "Code Review: Set selected CSV as current code review file"
}
],
"menus": {
"editor/context": [
{
"command": "codeReview.addNote",
"group": "cmdGroup@1"
}
],
"view/title": [
{
"command": "codeReview.exportAsHtmlWithDefaultTemplate",
"when": "view == code-review.list",
"group": "export_html@0"
},
{
"command": "codeReview.exportAsHtmlWithHandlebarsTemplate",
"when": "view == code-review.list",
"group": "export_html@1"
},
{
"command": "codeReview.exportAsMarkdownWithDefaultTemplate",
"when": "view == code-review.list",
"group": "export_markdown@0"
},
{
"command": "codeReview.exportAsMarkdownWithHandlebarsTemplate",
"when": "view == code-review.list",
"group": "export_markdown@1"
},
{
"command": "codeReview.exportAsGitLabImportableCsv",
"when": "view == code-review.list",
"group": "export_source_control@1"
},
{
"command": "codeReview.exportAsGitHubImportableCsv",
"when": "view == code-review.list",
"group": "export_source_control@0"
},
{
"command": "codeReview.exportAsJson",
"when": "view == code-review.list",
"group": "share@1"
},
{
"command": "codeReview.exportAsJiraImportableCsv",
"when": "view == code-review.list",
"group": "export_source_control@2"
},
{
"command": "codeReview.importFromJson",
"when": "view == code-review.list",
"group": "share@0"
},
{
"command": "codeReview.addNote",
"when": "view == code-review.list",
"group": "navigation@0"
},
{
"command": "codeReview.filterByCommitEnable",
"when": "view == code-review.list && !isFilteredByCommit",
"group": "navigation@1"
},
{
"command": "codeReview.filterByCommitDisable",
"when": "view == code-review.list && isFilteredByCommit",
"group": "navigation@1"
},
{
"command": "codeReview.filterByFilenameEnable",
"when": "view == code-review.list && !isFilteredByFilename",
"group": "navigation@2"
},
{
"command": "codeReview.filterByFilenameDisable",
"when": "view == code-review.list && isFilteredByFilename",
"group": "navigation@2"
},
{
"command": "codeReview.filterByPriorityEnable",
"when": "view == code-review.list && !isFilteredByPriority",
"group": "navigation@3"
},
{
"command": "codeReview.filterByPriorityDisable",
"when": "view == code-review.list && isFilteredByPriority",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "codeReview.deleteNote",
"when": "view == code-review.list && viewItem == comment"
}
]
},
"configuration": {
"id": "code-review",
"type": "object",
"title": "Code Review",
"properties": {
"code-review.filename": {
"type": "string",
"title": "The filename for the csv file",
"description": "The name will be used for the file with the *.csv extension that contains the stored code review notes",
"default": "code-review.csv"
},
"code-review.baseUrl": {
"type": "string",
"title": "The base URL for a referenced file without the SHA",
"description": "The base URL is used to build a full link to the file (e.g. \"https://github.com/foo/bar/blob/b0b4...0175/src/file.txt#L12-L19\"). It will be appended with the GIT SHA if available followed by the relative path of the file and the selected lines as an anker. This setting is skipped when the setting `code-review.customUrl` is defined.",
"default": ""
},
"code-review.customUrl": {
"type": "string",
"title": "The URL mask with placeholders for a referenced file without the SHA",
"description": "The custom URL is used to build a full link to the file.\nThe following placeholders are available:\n - {sha}: insert the SHA ref for the file\n - {file}: insert the file name/path\n - {start}: insert the start of the lines selection as an anker\n - {end}: insert the end of the lines selection as an anker\ne.g. \"https://gitlab.com/foo/bar/baz/-/blob/{sha}/src/{file}#L{start}-{end}\" becomes this in the end: \"https://gitlab.com/foo/bar/baz/-/blob/b0b4...0175/src/file.txt#L12-19\"",
"default": ""
},
"code-review.categories": {
"type": "array",
"title": "Categories",
"description": "Configure categories to choose for review categorization",
"items": {
"type": "string"
},
"default": [
"Architecture",
"Best Practices",
"Code-Style",
"Complexity",
"Error Handling",
"Maintainability",
"Performance",
"Reliability",
"Separation of concerns"
]
},
"code-review.groupBy": {
"type": "string",
"enum": [
"filename",
"priority",
"category"
],
"default": "filename",
"title": "Group report results",
"description": "You can choose one of the available options to group the report results by this property."
},
"code-review.reportWithCodeSelection": {
"type": "boolean",
"title": "Include Code Selection in Report",
"description": "Define whether to include the code selection(s) in generated reports or not.",
"default": false
},
"code-review.reportWithPrivateComments": {
"type": "boolean",
"title": "Include Private Comments in Report",
"description": "Define whether to include private comments in generated reports or not.",
"default": false
},
"code-review.defaultTemplatePath": {
"type": "string",
"title": "The path to a default Handlebars template to be used for HTML default export",
"description": "The template is used when choosing 'Export as HTML with default template' extension command. Otherwise the out-of-the-box template provided by this extension is used.",
"default": ""
},
"code-review.defaultMarkdownTemplatePath": {
"type": "string",
"title": "The path to a default Handlebars template to be used for Markdown default export",
"description": "The template is used when choosing 'Export as Markdown with default template' extension command. Otherwise the out-of-the-box template provided by this extension is used.",
"default": ""
},
"code-review.priorities": {
"type": "array",
"title": "Priority labels",
"description": "Configure the labels that should be used for the priorities.\nThe first label is used when no priority is defined.\nThe subsequent labels are given in ascending priority (max. 3 priority levels)",
"uniqueItems": true,
"maxItems": 4,
"minItems": 4,
"items": {
"type": "string"
},
"default": [
"none",
"low",
"medium",
"high"
]
},
"code-review.gitDirectory": {
"type": "string",
"title": "The folder containing the Git repository",
"markdownDescription": "Use this setting when the Git repository is located in an other directory than the workspace one.\nThe path can be **relative** (prefixed with `.` or `..`) or **absolute** (prefixed with `/` on Linux/MacOS or `{drive}:\\` on Windows).\nExamples:\n- `./app`: for {workspace}/app (Linux/MacOS)\n- `../app`: for a folder at the same level as the workspace (Linux/MacOS)\n- `/path/to/my/app`: for an absolute path (Linux/MacOS)\n- `C:\\Path\\To\\My\\App`: for an absolute path (Windows)",
"default": "."
},
"code-review.privateCommentIcon": {
"type": "string",
"title": "Identifier of the icon to show next to a private comment",
"markdownDescription": "The available icons are listed in <https://code.visualstudio.com/api/references/icons-in-labels#icon-listing>. \nA search engine can be found at <https://microsoft.github.io/vscode-codicons/dist/codicon.html>.",
"default": "eye-closed"
},
"code-review.filterCommentsByCommit": {
"type": "boolean",
"title": "Only view comments from the current commit",
"description": "Define whether to view only the comments from the current commit or not.",
"default": false
},
"code-review.filterCommentsByFilename": {
"type": "boolean",
"title": "Only view comments from the current file",
"description": "Define whether to view only the comments from the current file or not.",
"default": false
},
"code-review.filterCommentsByPriority": {
"type": "boolean",
"title": "Hide comments with green traffic light priority",
"description": "Define whether to hide the comments that have green priority.",
"default": false
},
"code-review.importBackup": {
"type": "boolean",
"title": "Make a copy of the comments before importing.",
"description": "Define whether to backup the existing comments before importing new ones or not.",
"default": true
},
"code-review.importCloneSuffix": {
"type": "string",
"title": "Cloned comments title suffix.",
"description": "Suffix to append to the title when existing comments are imported in 'clone' mode.",
"default": "(copy)"
},
"code-review.importConflictMode": {
"enum": [
"",
"skip",
"overwrite",
"clone"
],
"default": "",
"title": "Import conflict action.",
"markdownDescription": "Action to automatically take when importing comments already present:\n- *empty*: always ask.\n- `skip`: keep the existing comment.\n- `overwrite`: replace the existing comment with the imported one.\n- `clone`: keep both the existing and the imported comment."
},
"code-review.codeSelectionBackgroundColor": {
"type": "string",
"title": "Code selection background color.",
"markdownDescription": "Background color used to highlight the code associated to a comment.\nMust be specified using a hexadecimal representation - with or without the alpha part (`#C8C832` or `#C8C83226`) - or a `rgba()` definition.",
"default": "codereview.code.selection.background"
}
}
},
"keybindings": [
{
"command": "codeReview.addNote",
"key": "ctrl+shift+n",
"mac": "ctrl+shift+n"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "code-review",
"title": "Code Review",
"icon": "images/icon-sidebar.svg"
}
]
},
"views": {
"code-review": [
{
"id": "code-review.list",
"name": "Comment Explorer",
"when": "codeReview:displayCodeReviewExplorer"
}
]
},
"viewsWelcome": [
{
"view": "code-review.list",
"contents": "No review comments found.\nCreate a comment by selecting the lines the comment is related to, then right click and choose:\n\"Code Review: Add Note\"\n[learn more](https://marketplace.visualstudio.com/items?itemName=d-koppenhagen.vscode-code-review)\n[Add a note](command:codeReview.addNote)"
}
],
"colors": [
{
"id": "codereview.priority.green",
"description": "Color for comments with priority level 1 in code-review extension.",
"defaults": {
"dark": "#008000",
"light": "#008000",
"highContrast": "#008000"
}
},
{
"id": "codereview.priority.yellow",
"description": "Color for comments with priority level 2 in code-review extension",
"defaults": {
"dark": "#ffff00",
"light": "#ffff00",
"highContrast": "#ffff00"
}
},
{
"id": "codereview.priority.red",
"description": "Color for comments with priority level 3 in code-review extension",
"defaults": {
"dark": "#ff0000",
"light": "#ff0000",
"highContrast": "#ff0000"
}
},
{
"id": "codereview.code.selection.background",
"description": "Background color for highlighted code",
"defaults": {
"dark": "#C8C83226",
"light": "#C8C83226",
"highContrast": "#C8C83226"
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"webpack": "webpack --mode development",
"webpack:dev": "webpack --mode development --watch",
"compile": "webpack",
"lint": "eslint src --ext ts",
"watch": "webpack --watch",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile && npm run lint",
"test": "node ./out/test/runTest.js",
"release": "standard-version",
"package": "webpack --mode production --devtool hidden-source-map",
"publish": "vsce package && vsce publish",
"publish:ovsx": "npx ovsx publish",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@types/common-tags": "^1.8.1",
"@types/glob": "^7.2.0",
"@types/handlebars": "^4.1.0",
"@types/js-base64": "^3.3.1",
"@types/mocha": "^9.1.1",
"@types/node": "16.x",
"@types/vscode": "^1.59.0",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"commitizen": "^4.2.4",
"copy-webpack-plugin": "^10.2.4",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.14.0",
"eslint-config-prettier": "^8.5.0",
"glob": "^8.0.1",
"husky": "^7.0.4",
"mocha": "^10.0.0",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"standard-version": "^9.3.2",
"ts-loader": "^9.3.0",
"typescript": "^4.6.4",
"vsce": "^2.7.0",
"vscode-extension-tester": "^4.2.4",
"vscode-test": "^1.6.1",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@fast-csv/parse": "^4.3.6",
"common-tags": "^1.8.2",
"git-commit-id": "^2.0.1",
"handlebars": "^4.7.7",
"js-base64": "^3.7.2",
"uuid": "^8.3.2"
}
}