-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
481 lines (481 loc) · 25.9 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
{
"name": "coc-sonarlint",
"version": "0.2.3",
"description": "Coc sonar lint language server extension client",
"license": "MIT",
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/asmodeus812/coc-sonarlint"
},
"keywords": [
"coc.nvim"
],
"engines": {
"coc": "^0.0.82"
},
"scripts": {
"watch": "node esbuild.mjs --watch",
"build": "node esbuild.mjs",
"prepare": "node esbuild.mjs"
},
"dependencies": {
"lodash": "^4.14.194",
"node-html-markdown": "1.3.0",
"node-html-parser": "6.1.13"
},
"devDependencies": {
"vscode-languageserver-protocol": "^3.17.2",
"coc.nvim": "^0.0.83-next.18",
"compare-versions": "^4.1.3",
"expand-home-dir": "^0.0.3",
"find-java-home": "^1.2.2",
"esbuild": "^0.15.13",
"fs-extra": "^8.1.0",
"path-exists": "4.0.0",
"jdk-utils": "^0.5.1"
},
"activationEvents": [
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:cuda",
"onLanguage:yaml",
"onLanguage:json",
"onLanguage:jsonc",
"onLanguage:objc",
"onLanguage:objcpp",
"onLanguage:opencl",
"onLanguage:objective-c",
"onLanguage:objective-cpp",
"onLanguage:php",
"onLanguage:java",
"onLanguage:cs",
"onLanguage:vb",
"onLanguage:markdown",
"onLanguage:css",
"onLanguage:less",
"onLanguage:scss",
"onLanguage:go",
"onLanguage:gomod",
"onLanguage:python",
"onLanguage:jupyter",
"onLanguage:jsx-tags",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:javascript.jsx",
"onLanguage:typescript",
"onLanguage:typescript.tsx",
"onLanguage:typescript.jsx",
"onLanguage:typescriptreact",
"workspaceContains:.sonar.properties"
],
"contributes": {
"rootPatterns": [
{
"filetype": "*",
"patterns": [
".git",
"package.json"
]
}
],
"configuration": {
"type": "object",
"title": "SonarLint",
"properties": {
"sonarlint.rules": {
"order": 1,
"type": "object",
"scope": "application",
"default": {},
"markdownDescription": "Customize applied rule set. This property contains a list of rules whose activation level or parameter values differ from the one provided by default. In [Connected Mode](command:SonarLint.HelpAndFeedbackLinkClicked?%22connectedModeDocs%22), this configuration is overridden by the projects's Quality Profile, as configured on server side and can be **shared among contributors**. See [SonarLint Rules](command:SonarLint.AllRules.focus) view for the list of **locally** available rules.\n\nExample:\n\n \"sonarlint.rules\": {\n \"javascript:1481\": {\n \"level\": \"off\",\n \"javascript:S103\": {\n \"level\": \"on\",\n \"parameters\": {\n \"maximumLineLength\": \"120\"\n }\n }\n }\n",
"patternProperties": {
"^[^:]+:[^:]+$": {
"type": "object",
"markdownDescription": "Property names are rule keys in the form: `repo:key`",
"properties": {
"level": {
"type": "string",
"enum": [
"off",
"on"
],
"markdownDescription": "When set to `off`, disable the rule. When set to `on`, enable the rule."
},
"parameters": {
"type": "object",
"markdownDescription": "Rule parameters. See rule description for accepted parameters. E.g `{ \"intParam\": \"123\" }`."
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"sonarlint.connectedMode.servers": {
"deprecationMessage": "The setting is deprecated. Use `sonarlint.connectedMode.connections.sonarqube` or `sonarlint.connectedMode.connections.sonarcloud` instead.",
"type": "array",
"scope": "application",
"default": [],
"markdownDescription": "Configure one or more connection(s) to SonarQube/SonarCloud. For security reasons, the token should not be stored in SCM with workspace settings. The `serverId` can be any identifier and will be referenced in `#sonarlint.connectedMode.project#`.\n\nExample for SonarCloud:\n\n \"sonarlint.connectedMode.servers\": [\n {\n \"serverId\": \"my_orga_in_sonarcloud.io\",\n \"serverUrl\": \"https://sonarcloud.io\",\n \"organizationKey\": \"my_organization\",\n \"token\": \"V2VkIE1...\"\n }\n ]\n\nExample for SonarQube:\n\n \"sonarlint.connectedMode.servers\": [\n {\n \"serverId\": \"my_sonarqube\",\n \"serverUrl\": \"https://sonar.mycompany.com\",\n \"token\": \"V2VkIE1...\"\n }\n ]",
"items": {
"properties": {
"serverId": {
"type": "string",
"description": "A unique identifier for this server connection. Will be referenced from `#sonarlint.connectedMode.project#`"
},
"serverUrl": {
"type": "string",
"description": "URL of the server. Use https://sonarcloud.io for SonarCloud."
},
"token": {
"type": "string",
"description": "Token generated from My Account>Security in SonarQube/SonarCloud"
},
"organizationKey": {
"type": "string",
"description": "Only used for SonarCloud"
}
},
"additionalProperties": false
}
},
"sonarlint.connectedMode.connections.sonarqube": {
"order": 2,
"type": "array",
"scope": "application",
"default": [],
"markdownDescription": "Connect SonarLint to SonarQube to apply the same Clean Code standards as your team. Analyze more languages, detect more issues **on the whole project**, receive notifications about the quality gate status, and more. Quality Profiles and file exclusion settings defined on the server are shared between all connected users. Please find the documentation [here](https://docs.sonarsource.com/sonarlint/vs-code/team-features/connected-mode/)",
"items": {
"type": "object",
"properties": {
"connectionId": {
"type": "string",
"description": "A unique identifier for this connection to be used as a reference in `#sonarlint.connectedMode.project#`. Only needed if you plan to use multiple connections to SonarQube/SonarCloud."
},
"serverUrl": {
"type": "string",
"description": "URL of the SonarQube server."
},
"token": {
"type": "string",
"description": "Token generated from 'My Account>Security' in SonarQube"
},
"disableNotifications": {
"type": "boolean",
"description": "SonarLint will show notifications for bound projects when there are new issues assigned to you, or when the quality gate status changed. Set to false to disable all notifications for projects bound to this connection."
}
},
"additionalProperties": false,
"required": [
"serverUrl"
],
"examples": [
{
"serverUrl": "https://<replace_with_your_sonarqube_server_url>"
},
{
"connectionId": "MyCompanySonarQube",
"serverUrl": "https://<replace_with_your_sonarqube_server_url>",
"disableNotifications": false
}
]
}
},
"sonarlint.connectedMode.connections.sonarcloud": {
"order": 3,
"type": "array",
"scope": "application",
"default": [],
"markdownDescription": "Connect SonarLint to SonarCloud to apply the same Clean Code standards as your team. Analyze more languages, detect more issues **on the whole project**, receive notifications about the quality gate status, and more. Quality Profiles and file exclusion settings defined on the server are shared between all connected users. Please find the documentation [here](https://docs.sonarsource.com/sonarlint/vs-code/team-features/connected-mode/)",
"items": {
"type": "object",
"properties": {
"connectionId": {
"type": "string",
"description": "A unique identifier for this connection to be used as a reference in `#sonarlint.connectedMode.project#`. Only needed if you plan to use multiple connections to SonarQube/SonarCloud."
},
"organizationKey": {
"type": "string",
"description": "A SonarCloud organization key. If you want to bind different projects that are in different organizations, simply declare multiple connections."
},
"token": {
"type": "string",
"description": "Token generated from 'My Account>Security' in SonarCloud"
},
"disableNotifications": {
"type": "boolean",
"description": "SonarLint will show notifications for bound projects when there are new issues assigned to you, or when the quality gate status changed. Set to false to disable all notifications for projects bound to this connection."
}
},
"additionalProperties": false,
"required": [
"organizationKey"
],
"examples": [
{
"organizationKey": "<replace_with_your_sonarcloud_organization_key>"
},
{
"connectionId": "MyOrganization",
"organizationKey": "<replace_with_your_sonarcloud_organization_key>",
"disableNotifications": false
}
]
}
},
"sonarlint.connectedMode.project": {
"order": 4,
"markdownDescription": "Bind the current workspace folder to a [SonarQube](command:SonarLint.HelpAndFeedbackLinkClicked?%22sonarQubeProductPage%22) or [SonarCloud](command:SonarLint.HelpAndFeedbackLinkClicked?%22sonarCloudProductPage%22) project. Requires connection details to be defined in the setting `#sonarlint.connectedMode.connections.sonarqube#` or `#sonarlint.connectedMode.connections.sonarcloud#`.\n\nBinding a workspace folder to a server project allows SonarLint to match, as much as possible, the same rules and settings as found on the server, and hence share the analysis configuration with other contributors.\n\nExample:\n\n \"sonarlint.connectedMode.project\": {\n \"projectKey\": \"my_project\",\n \"connectionId\":\"my_connection_id\"\n }\n\n",
"examples": [
{
"projectKey": "<replace_with_server_project_key>"
},
{
"connectionId": "<replace_with_connection_id>",
"projectKey": "<replace_with_server_project_key>"
}
],
"default": {},
"anyOf": [
{
"type": "object",
"properties": {
"serverId": {
"type": "string",
"description": "Identifier of the server connection declared in `#sonarlint.connectedMode.connections.sonarqube#` or `#sonarlint.connectedMode.connections.sonarcloud#`"
},
"projectKey": {
"type": "string",
"description": "Key of the project in SonarQube/SonarCloud"
}
},
"additionalProperties": false,
"required": [
"serverId",
"projectKey"
],
"deprecationMessage": "Replace `serverId` attribute by `connectionId`."
},
{
"type": "object",
"properties": {
"connectionId": {
"type": "string",
"description": "Identifier of the server connection declared in `#sonarlint.connectedMode.connections.sonarqube#` or `#sonarlint.connectedMode.connections.sonarcloud#`"
},
"projectKey": {
"type": "string",
"description": "Key of the project in SonarQube/SonarCloud (can be found on project homepage)"
}
},
"additionalProperties": false,
"required": [
"projectKey"
]
}
],
"scope": "resource"
},
"sonarlint.pathToNodeExecutable": {
"order": 10,
"type": "string",
"markdownDescription": "Path to a Node.js executable (18.18 or more recent) used to analyze JavaScript and TypeScript code. \nOn Windows, backslashes must be escaped, e.g. `C:\\\\Program Files\\\\NodeJS\\\\20-lts\\\\bin\\\\node.exe`",
"scope": "machine"
},
"sonarlint.pathToCompileCommands": {
"order": 11,
"type": "string",
"markdownDescription": "Path to the active compilation database, e.g. `C:\\\\Repos\\\\MyProject\\\\compile_commands.json`",
"scope": "resource"
},
"sonarlint.testFilePattern": {
"order": 12,
"type": "string",
"default": "",
"markdownDescription": "Files whose name match this [glob pattern](https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob) are considered as test files by analyzers. Most rules are *not* evaluated on test files.\n\nIn [Connected Mode](command:SonarLint.HelpAndFeedbackLinkClicked?%22connectedModeDocs%22), this setting is configured **on the server-side** and shared among all contributors.\n\nExample: `**/test/**,**/*test*,**/*Test*`",
"scope": "resource"
},
"sonarlint.listFilesFoldersExclusions": {
"order": 13,
"type": "array",
"default": [
"node_modules",
"target",
".settings",
".angular",
".next",
".nuxt",
".cargo",
".cache",
".github",
".tmp",
".log",
".vim",
".git",
".svn",
".hg",
".idea",
".vscode"
],
"markdownDescription": "List of folder names which are to be excluded when the files for analysis are collected and sent to sonar language server"
},
"sonarlint.analysisExcludesStandalone": {
"order": 14,
"type": "string",
"default": "**/target/**,**/build/**,**/node_modules/**,**/.angular/**,**/.next/**,**/.nuxt/**,**/.cargo/**,**/.cache/**,**/.tmp/**,**/.log/**,**/.git/**,**/.svn/**,**/.hg/**,**/.idea/**,**/.vscode/**",
"markdownDescription": "Files whose name match this [glob pattern](https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob) will not be processed by analyzers. In [Connected Mode](command:SonarLint.HelpAndFeedbackLinkClicked?%22connectedModeDocs%22) with SonarQube or SonarCloud, this property will be ignored and server exclusion settings will be applied. No rules are evaluated on excluded files. Example: `**/lib/**,**/*generated*`",
"scope": "resource"
},
"sonarlint.notifyMissingCompileCommands": {
"order": 15,
"default": true,
"type": "boolean",
"markdownDescription": "Specifies if missing or invalid compile commands in c or cpp projects will prompt the user to generate or create one, by default the user will be asked for each new workspace he visits, and the user can opt out of it per workspace by selecting the option - Do not ask for compile commands again for this workspace",
"scope": "resource"
},
"sonarlint.ls.javaHome": {
"order": 20,
"type": "string",
"markdownDescription": "Path to a Java Runtime Environment (17 or more recent) used to launch the SonarLint Language Server.\n* On Windows, backslashes must be escaped, e.g. `C:\\\\Program Files\\\\Java\\\\jdk-17` \n* On macOS, this path should include the `/Contents/Home` directory, e.g `/Library/Java/JavaVirtualMachines/corretto-17.0.5/Contents/Home`",
"scope": "machine"
},
"sonarlint.ls.directory": {
"order": 21,
"type": "string",
"markdownDescription": "Specifies the directory where the sonar lint binaries are located, the directory must contain two sub-folders, a server/ and analyzers/, where the server binary is located in the server/ folder and all analyzer binaries are located in the analyzers/ folder",
"scope": "machine"
},
"sonarlint.ls.vmargs": {
"order": 22,
"type": "string",
"markdownDescription": "Extra JVM arguments used to launch the SonarLint Language Server. e.g. `-Xmx1024m`",
"scope": "machine"
},
"sonarlint.output.showVerboseLogs": {
"order": 90,
"type": "boolean",
"default": false,
"description": "Enable verbose log level in the SonarLint output.",
"scope": "window"
},
"sonarlint.output.showAnalyzerLogs": {
"order": 91,
"type": "boolean",
"default": false,
"description": "Show analyzer's logs in the SonarLint output.",
"scope": "window"
},
"sonarlint.analyzerProperties": {
"order": 92,
"type": "object",
"patternProperties": {
"^.*$": {
"type": "string",
"markdownDescription": "One entry value"
},
"additionalProperties": false
},
"markdownDescription": "Extra properties that could be passed to the code analyzers. Only for advanced use cases.",
"scope": "resource"
},
"sonarlint.trace.server": {
"order": 98,
"default": "off",
"description": "Traces the communication between VS Code and the SonarLint language server.",
"scope": "window",
"anyOf": [
{
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off"
},
{
"type": "object",
"properties": {
"verbosity": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off"
},
"format": {
"type": "string",
"enum": [
"text",
"json"
],
"default": "text"
}
},
"additionalProperties": false
}
]
},
"sonarlint.disableTelemetry": {
"order": 99,
"type": "boolean",
"default": true,
"markdownDescription": "Disable sending anonymous usage statistics to SonarSource. Click [here](https://github.com/SonarSource/sonarlint-vscode/blob/master/telemetry-sample.md) to see a sample of the data that are collected.",
"scope": "window"
},
"sonarlint.focusOnNewCode": {
"order": 100,
"type": "boolean",
"default": false,
"markdownDescription": "Set SonarLint focus to new code. [Learn how](https://docs.sonarsource.com/sonarlint/vs-code/using-sonarlint/investigating-issues/#focusing-on-new-code) to deliver clean code with Clean as You Code.",
"scope": "window"
}
}
},
"commands": [
{
"command": "sonarlint.show.sonar.lint.output",
"title": "Show sonarlint Output"
},
{
"command": "sonarlint.enable.verbose.logs",
"title": "Enable Verbose Logging"
},
{
"command": "sonarlint.install.managed.jre",
"title": "Install managed java runtime binaries"
},
{
"command": "sonarlint.configure.compilation.database",
"title": "Configure compilation database for C/C++ analysis"
},
{
"command": "sonarlint.deactivate.rule",
"title": "Deactivate sonar rule"
},
{
"command": "sonarlint.activate.rule",
"title": "Activate sonar rule"
},
{
"command": "sonarlint.show.all.rules",
"title": "Show all rules"
},
{
"command": "sonarlint.show.active.rules",
"title": "Show active rules"
},
{
"command": "sonarlint.show.inactive.rules",
"title": "Show inactive rules"
},
{
"command": "sonarlint.find.rule.by.key",
"title": "Find Rule By Key"
}
]
}
}