-
Notifications
You must be signed in to change notification settings - Fork 30
/
package.json
261 lines (261 loc) · 9.81 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
{
"name": "deepcode",
"//": "Changing display name requires change in general.ts",
"displayName": "DeepCode",
"version": "3.0.12",
"description": "DeepCode finds bugs, security vulnerabilities, performance and API issues based on AI. DeepCode's speed of analysis allow us to analyse your code in real time and deliver results when you hit the save button in Visual Studio Code. We support Java, C/C++, JavaScript, Python, TypeScript, C# and PHP.",
"icon": "images/deepCodeLogo.jpg",
"publisher": "deepcode",
"homepage": "https://www.deepcode.ai/",
"repository": {
"type": "git",
"url": "https://github.com/DeepCodeAI/vscode-extension.git"
},
"engines": {
"vscode": "^1.48.0"
},
"galleryBanner": {
"color": "#283e55",
"theme": "dark"
},
"categories": [
"Programming Languages",
"Linters",
"Other"
],
"keywords": [
"Code Analysis",
"JavaScript",
"Java",
"TypeScript",
"ts",
"Python",
"C/C++",
"C#",
"PHP",
"Vue",
"Angular",
"React",
"Static Code Analysis",
"Code Quality"
],
"activationEvents": [
"onWebviewPanel:deepcode.views.suggestion",
"*"
],
"main": "./out/extension.js",
"types": "./out/extension.d.ts",
"contributes": {
"configuration": [
{
"title": "DeepCode",
"properties": {
"deepcode.advancedMode": {
"type": "boolean",
"default": false,
"description": "Toggle advanced tools for expert users",
"scope": "application"
},
"deepcode.url": {
"type": "string",
"default": "",
"description": "In order to use a self-managed DeepCode server with Bitbucket or Gitlab instance, update the instance url below:",
"scope": "application"
},
"deepcode.token": {
"type": "string",
"default": "",
"description": "API key",
"scope": "application"
},
"deepcode.uploadApproved": {
"type": "boolean",
"default": false,
"markdownDescription": "User consent for code upload to `#deepcode.url#` in agreement with our [terms and conditions](https://www.deepcode.ai/tc?utm_source=vsc)",
"scope": "window"
},
"deepcode.yesCrashReport": {
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
"type": "boolean",
"default": true,
"markdownDescription": "Allow crash reports to be reported to `#deepcode.url#`",
"scope": "application"
},
"deepcode.yesTelemetry": {
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
"type": "boolean",
"default": true,
"markdownDescription": "Allow extension's telemetry to be sent to `#deepcode.url#`",
"scope": "application"
},
"deepcode.yesWelcomeNotification": {
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
"type": "boolean",
"default": true,
"markdownDescription": "Show welcome notification after installation and restart",
"scope": "application"
}
}
}
],
"viewsContainers": {
"activitybar": [
{
"id": "deepcode",
"title": "DeepCode",
"icon": "images/deepcode-vscode-icon.svg"
}
]
},
"views": {
"deepcode": [
{
"id": "deepcode.views.analysis",
"name": "DeepCode Analysis"
},
{
"id": "deepcode.views.actions",
"name": "Actions",
"when": "deepcode:advanced && !deepcode:error && deepcode:loggedIn && deepcode:uploadApproved && deepcode:workspaceFound"
},
{
"id": "deepcode.views.support",
"name": "Help & feedback"
}
]
},
"viewsWelcome": [
{
"view": "deepcode.views.analysis",
"contents": "DeepCode is temporarily unavailable\nWe are automatically retrying to connect...",
"when": "deepcode:error == 'transient'"
},
{
"view": "deepcode.views.analysis",
"contents": "The DeepCode extension is deprecated. Please use [Snyk Vulnerability Scanner](command:workbench.extensions.search?%22snyk-security.snyk-vulnerability-scanner%22) with included DeepCode's functionality and more.",
"when": "deepcode:deprecated"
},
{
"view": "deepcode.views.analysis",
"contents": "DeepCode has encountered a problem. Please restart the extension: \n[Restart](command:deepcode.start 'Restart DeepCode')\nIf the error persists, please check your [settings](command:deepcode.settings) and [contact us](https://www.deepcode.ai/feedback?select=2?utm_source=vsc)!",
"when": "deepcode:error == 'blocking'"
},
{
"view": "deepcode.views.analysis",
"contents": "Welcome to DeepCode for Visual Studio Code. 👋\nLet's start by connecting VS Code with DeepCode:\n[Connect VS Code with DeepCode](command:deepcode.login 'Connect with DeepCode')\n👉 DeepCode's mission is to finds bugs, fast. Connect with DeepCode to start your first analysis!",
"when": "!deepcode:error && !deepcode:loggedIn && !deepcode:deprecated"
},
{
"view": "deepcode.views.analysis",
"contents": "Thanks for connecting with DeepCode. ✅\n 👉 You are almost set 🤗. DeepCode is analysing the code remotely on DeepCode's servers (our [terms](https://www.deepcode.ai/tc?utm_source=vsc)). Let's confirm you know this and start the analysis.\n[Accept and start analysing](command:deepcode.approve 'Upload code to DeepCode')\nYou can always change it in the [configuration panel](command:deepcode.settings).",
"when": "!deepcode:error && deepcode:loggedIn && !deepcode:uploadApproved"
},
{
"view": "deepcode.views.analysis",
"contents": "Open a workspace or a folder in Visual Studio Code to start the analysis.",
"when": "!deepcode:error && deepcode:loggedIn && deepcode:uploadApproved && !deepcode:workspaceFound"
},
{
"view": "deepcode.views.actions",
"contents": "You are currently running DeepCode in manual mode. You are in control, no automated actions from our side.\n[Analyze now](command:deepcode.start)\n[Switch to auto-scan mode](command:deepcode.setmode?%5B%22auto%22%5D)",
"when": "deepcode:mode == 'manual'"
},
{
"view": "deepcode.views.actions",
"contents": "DeepCode analysis is currently paused.\n[Unpause](command:deepcode.setmode?%5B%22auto%22%5D)",
"when": "deepcode:mode == 'paused'"
},
{
"view": "deepcode.views.actions",
"contents": "You are currently running DeepCode in a throttled mode - it scans your code every 30 minutes if it detects changes in your files.\n[Analyze now](command:deepcode.start)\n[Switch to auto-scan mode](command:deepcode.setmode?%5B%22auto%22%5D)",
"when": "deepcode:mode == 'throttled'"
},
{
"view": "deepcode.views.actions",
"contents": "You are currently running DeepCode in a fully automated mode. It scans your code for issues when you save a file.\nNeed to take control?\n[Pause DeepCode for 30 minutes](command:deepcode.setmode?%5B%22paused%22%5D)\n[Switch to manual scan mode](command:deepcode.setmode?%5B%22manual%22%5D)\n[Switch to throttled scan mode](command:deepcode.setmode?%5B%22throttled%22%5D)",
"when": "deepcode:mode != 'manual' && deepcode:mode != 'paused' && deepcode:mode != 'throttled'"
}
],
"menus": {
"view/title": [
{
"command": "deepcode.start",
"when": "view == deepcode.views.analysis",
"group": "navigation"
},
{
"command": "deepcode.settings",
"when": "view != deepcode.views.support",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "deepcode.login",
"when": "!deepcode:loggedIn && !deepcode:deprecated"
},
{
"command": "deepcode.dcignore",
"when": "!deepcode:error && deepcode:loggedIn && deepcode:uploadApproved && deepcode:workspaceFound"
}
]
},
"commands": [
{
"command": "deepcode.start",
"title": "DeepCode re-scan",
"icon": "$(refresh)",
"enablement": "!deepcode:deprecated"
},
{
"command": "deepcode.settings",
"title": "DeepCode settings",
"icon": "$(gear)"
},
{
"command": "deepcode.login",
"title": "DeepCode login",
"icon": "$(log-in)"
},
{
"command": "deepcode.dcignore",
"title": "DeepCode create dcignore file",
"icon": "$(new-file)"
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "tsc -p ./",
"test": "node ./out/test/runTest.js",
"lint": "npx eslint src/**/*.ts",
"lint:fix": "npx eslint --fix src/**/*.ts"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.161",
"@types/mocha": "^8.0.3",
"@types/node": "^14.6.2",
"@types/vscode": "^1.48.0",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"eslint": "^7.8.1",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"glob": "^7.1.6",
"mocha": "^8.1.3",
"prettier": "^2.1.1",
"typescript": "^4.0.2",
"vscode-test": "^1.4.0",
"yalc": "^1.0.0-pre.44"
},
"dependencies": {
"@deepcode/tsc": "^2.1.0",
"lodash": "^4.17.19",
"open": "^7.3.1"
}
}