-
Notifications
You must be signed in to change notification settings - Fork 2
/
sublime-package.json
326 lines (326 loc) · 19.1 KB
/
sublime-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
{
"contributions": {
"settings": [
{
"file_patterns": [
"/LSP-SonarLint.sublime-settings"
],
"schema": {
"$id": "sublime://settings/LSP-SonarLint",
"allOf": [
{
"$ref": "sublime://settings/LSP-plugin-base"
},
{
"$ref": "sublime://settings/LSP-SonarLint#/definitions/PluginConfig"
}
],
"definitions": {
"PluginConfig": {
"properties": {
"settings": {
"additionalProperties": false,
"properties": {
"sonarlint.analyzerProperties": {
"markdownDescription": "Extra properties that could be passed to the code analyzers. Only for advanced use cases.",
"order": 92,
"patternProperties": {
"^.*$": {
"markdownDescription": "One entry value",
"type": "string"
},
"additionalProperties": false
},
"type": "object"
},
"sonarlint.connectedMode.connections.sonarcloud": {
"default": [],
"examples": [
[
{
"organizationKey": "<replace_with_your_sonarcloud_organization_key>",
"token": "<replace_with_a_sonarcloud_token>"
}
],
[
{
"connectionId": "MyOrganization",
"disableNotifications": false,
"organizationKey": "<replace_with_your_sonarcloud_organization_key>",
"token": "<replace_with_a_sonarcloud_token>"
}
]
],
"items": {
"additionalProperties": false,
"examples": [
{
"organizationKey": "<replace_with_your_sonarcloud_organization_key>",
"token": "<replace_with_a_sonarcloud_token>"
},
{
"connectionId": "MyOrganization",
"disableNotifications": false,
"organizationKey": "<replace_with_your_sonarcloud_organization_key>",
"token": "<replace_with_a_sonarcloud_token>"
}
],
"properties": {
"connectionId": {
"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.",
"type": "string"
},
"disableNotifications": {
"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.",
"type": "boolean"
},
"organizationKey": {
"description": "A SonarCloud organization key. If you want to bind different projects that are in different organizations, simply declare multiple connections.",
"type": "string"
},
"token": {
"description": "Token generated from 'My Account>Security' in SonarCloud",
"type": "string"
}
},
"required": [
"organizationKey",
"token"
],
"type": "object"
},
"markdownDescription": "Configure connection(s) to [SonarCloud](https://sonarcloud.io). For each connection, please provide:\n- `organizationKey`: the key of your SonarCloud organization\n- `token`: a personal authentication token ([How to generate one](https://docs.sonarcloud.io/advanced-setup/user-accounts/#user-tokens))\n\nOptionally specify a `connectionId` if you want to use multiple connections.\nSet `disableNotifications` to `true` to disable [Smart Notifications](https://docs.sonarcloud.io/advanced-setup/sonarlint-smart-notifications/).\n\nDon't forget to also configure the project binding for each workspace folder using configuration `#sonarlint.connectedMode.project#`.\nIf you have projects in different SonarCloud organizations, simply declare multiple connections.\n\nExample:\n\n \"sonarlint.connectedMode.connections.sonarcloud\": [\n {\n \"organizationKey\": \"myOrg\",\n \"token\": \"V2VkIE1...\"\n }\n ]",
"order": 3,
"type": "array"
},
"sonarlint.connectedMode.connections.sonarqube": {
"default": [],
"examples": [
[
{
"serverUrl": "https://<replace_with_your_sonarqube_server_url>",
"token": "<replace_with_a_sonarqube_token>"
}
],
[
{
"connectionId": "MyCompanySonarQube",
"disableNotifications": false,
"serverUrl": "https://<replace_with_your_sonarqube_server_url>",
"token": "<replace_with_a_sonarqube_token>"
}
]
],
"items": {
"additionalProperties": false,
"examples": [
{
"serverUrl": "https://<replace_with_your_sonarqube_server_url>",
"token": "<replace_with_a_sonarqube_token>"
},
{
"connectionId": "MyCompanySonarQube",
"disableNotifications": false,
"serverUrl": "https://<replace_with_your_sonarqube_server_url>",
"token": "<replace_with_a_sonarqube_token>"
}
],
"properties": {
"connectionId": {
"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.",
"type": "string"
},
"disableNotifications": {
"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.",
"type": "boolean"
},
"serverUrl": {
"description": "URL of the SonarQube server.",
"type": "string"
},
"token": {
"description": "Token generated from 'My Account>Security' in SonarQube",
"type": "string"
}
},
"required": [
"serverUrl",
"token"
],
"type": "object"
},
"markdownDescription": "Configure connection(s) to [SonarQube](https://sonarqube.org). For each connection, please provide:\n- `serverUrl`: your SonarQube server URL\n- `token`: a personal authentication token ([How to generate one](https://docs.sonarqube.org/latest/user-guide/user-token/))\n\nOptionally specify a `connectionId` if you want to use multiple connections.\nSet `disableNotifications` to `true` to disable [Smart Notifications](https://docs.sonarqube.org/latest/user-guide/connected-mode/).\n\nDon't forget to also configure project binding for each workspace folder using configuration `#sonarlint.connectedMode.project#`.\n\nExample:\n\n \"sonarlint.connectedMode.connections.sonarqube\": [\n {\n \"serverUrl\": \"https://sonar.mycompany.com\",\n \"token\": \"V2VkIE1...\"\n }\n ]",
"order": 2,
"type": "array"
},
"sonarlint.connectedMode.project": {
"anyOf": [
{
"additionalProperties": false,
"deprecationMessage": "Replace `serverId` attribute by `connectionId`.",
"properties": {
"projectKey": {
"description": "Key of the project in SonarQube/SonarCloud",
"type": "string"
},
"serverId": {
"description": "Identifier of the server connection declared in `#sonarlint.connectedMode.connections.sonarqube#` or `#sonarlint.connectedMode.connections.sonarcloud#`",
"type": "string"
}
},
"required": [
"serverId",
"projectKey"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"connectionId": {
"description": "Identifier of the server connection declared in `#sonarlint.connectedMode.connections.sonarqube#` or `#sonarlint.connectedMode.connections.sonarcloud#`",
"type": "string"
},
"projectKey": {
"description": "Key of the project in SonarQube/SonarCloud (can be found on project homepage)",
"type": "string"
}
},
"required": [
"projectKey"
],
"type": "object"
}
],
"default": {},
"examples": [
{
"projectKey": "<replace_with_server_project_key>"
},
{
"connectionId": "<replace_with_connection_id>",
"projectKey": "<replace_with_server_project_key>"
}
],
"markdownDescription": "Bind the current workspace folder to a [SonarQube](https://sonarqube.org) or [SonarCloud](https://sonarcloud.io) 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 project allows to use the same rules and configuration that are defined in the server, as well as issue suppressions.\n\nExample:\n\n \"sonarlint.connectedMode.project\": {\n \"projectKey\": \"my_project\"\n }\n\nSpecify the `connectionId` only if you have defined multiple connections.",
"order": 4
},
"sonarlint.connectedMode.servers": {
"default": [],
"deprecationMessage": "The setting is deprecated. Use `sonarlint.connectedMode.connections.sonarqube` or `sonarlint.connectedMode.connections.sonarcloud` instead.",
"items": {
"additionalProperties": false,
"properties": {
"organizationKey": {
"description": "Only used for SonarCloud",
"type": "string"
},
"serverId": {
"description": "A unique identifier for this server connection. Will be referenced from `#sonarlint.connectedMode.project#`",
"type": "string"
},
"serverUrl": {
"description": "URL of the server. Use https://sonarcloud.io for SonarCloud.",
"type": "string"
},
"token": {
"description": "Token generated from My Account>Security in SonarQube/SonarCloud",
"type": "string"
}
}
},
"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 ]",
"type": "array"
},
"sonarlint.disableTelemetry": {
"default": false,
"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.",
"order": 99,
"type": "boolean"
},
"sonarlint.output.showAnalyzerLogs": {
"default": false,
"description": "Show analyzer's logs in the SonarLint output.",
"order": 91,
"type": "boolean"
},
"sonarlint.output.showVerboseLogs": {
"default": false,
"description": "Enable verbose log level in the SonarLint output.",
"order": 90,
"type": "boolean"
},
"sonarlint.pathToCompileCommands": {
"markdownDescription": "Path to the active compilation database, e.g. `C:\\\\Repos\\\\MyProject\\\\compile_commands.json`",
"order": 11,
"type": "string"
},
"sonarlint.pathToNodeExecutable": {
"markdownDescription": "Path to a Node.js executable (12.22.0 or more recent) used to analyze JavaScript and TypeScript code. \nOn Windows, backslashes must be escaped, e.g. `C:\\\\Program Files\\\\NodeJS\\\\12-lts\\\\bin\\\\node.exe`",
"order": 10,
"type": "string"
},
"sonarlint.rules": {
"additionalProperties": false,
"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. See _SonarLint Rules_ view for the full list of available rules. In connected mode, this configuration is overridden by the projects's quality profile, as configured on server side.\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",
"order": 1,
"patternProperties": {
"^[^:]+:[^:]+$": {
"markdownDescription": "Property names are rule keys in the form: `repo:key`",
"properties": {
"additionalProperties": false,
"level": {
"anyOf": [
"off",
"on"
],
"markdownDescription": "When set to `off`, disable the rule. When set to `on`, enable the rule.",
"type": "string"
},
"parameters": {
"markdownDescription": "Rule parameters. See rule description for accepted parameters. E.g `{ \"intParam\": \"123\" }`.",
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"sonarlint.testFilePattern": {
"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. Example: `{**/test/**,**/*test*,**/*Test*}`",
"order": 12,
"type": "string"
}
}
}
}
}
}
}
},
{
"file_patterns": [
"/*.sublime-project"
],
"schema": {
"properties": {
"settings": {
"properties": {
"LSP": {
"properties": {
"SonarLint": {
"$ref": "sublime://settings/LSP-SonarLint#/definitions/PluginConfig"
}
}
}
}
}
}
}
}
]
}
}