-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLSP-SonarLint.sublime-settings
133 lines (131 loc) · 7.06 KB
/
LSP-SonarLint.sublime-settings
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
{
// The startup command to spawn the language server subprocess.
"command": [
"java",
"-jar",
"${packages}/${name}/sonarlint-language-server-4.6.0.2652.jar",
"${port}",
"${packages_uri}/${name}/sonar-javascript-plugin-9.1.1.17782.jar",
"${packages_uri}/${name}/sonar-java-plugin-7.9.0.28969.jar",
"${packages_uri}/${name}/sonar-php-plugin-3.9.0.6331.jar",
"${packages_uri}/${name}/sonar-python-plugin-3.9.0.9230.jar",
"${packages_uri}/${name}/sonar-html-plugin-3.6.0.3106.jar"
],
"selector": "source.js | source.jsx | source.ts | source.tsx | source.html | text.html.jsp | text.html.basic | text.html.ngx | text.html.vue | source.java | embedding.php | source.python | source.plsql.oracle | source.oraclesql",
// We want LSP to choose a random free port for us, and we want to act as a TCP server and await
// the spawned subprocess to connect to us as a TCP client.
"tcp_port": -1,
// Server settings that are passed to the language server subprocess.
"settings": {
// Extra properties that could be passed to the code analyzers. Only for advanced use cases.
"sonarlint.analyzerProperties": {},
// Configure connection(s) to [SonarCloud](https://sonarcloud.io). For each connection,
// please provide:
// - `organizationKey`: the key of your SonarCloud organization
// - `token`: a personal authentication token ([How to generate
// one](https://docs.sonarcloud.io/advanced-setup/user-accounts/#user-tokens))
// Optionally specify a `connectionId` if you want to use multiple connections.
// Set `disableNotifications` to `true` to disable [Smart
// Notifications](https://docs.sonarcloud.io/advanced-setup/sonarlint-smart-notifications/).
// Don't forget to also configure the project binding for each workspace folder using
// configuration `#sonarlint.connectedMode.project#`.
// If you have projects in different SonarCloud organizations, simply declare multiple
// connections.
// Example:
// "sonarlint.connectedMode.connections.sonarcloud": [
// {
// "organizationKey": "myOrg",
// "token": "V2VkIE1..."
// }
// ]
"sonarlint.connectedMode.connections.sonarcloud": [],
// Configure connection(s) to [SonarQube](https://sonarqube.org). For each connection,
// please provide:
// - `serverUrl`: your SonarQube server URL
// - `token`: a personal authentication token ([How to generate
// one](https://docs.sonarqube.org/latest/user-guide/user-token/))
// Optionally specify a `connectionId` if you want to use multiple connections.
// Set `disableNotifications` to `true` to disable [Smart
// Notifications](https://docs.sonarqube.org/latest/user-guide/connected-mode/).
// Don't forget to also configure project binding for each workspace folder using
// configuration `#sonarlint.connectedMode.project#`.
// Example:
// "sonarlint.connectedMode.connections.sonarqube": [
// {
// "serverUrl": "https://sonar.mycompany.com",
// "token": "V2VkIE1..."
// }
// ]
"sonarlint.connectedMode.connections.sonarqube": [],
// 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#`.
// Binding 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.
// Example:
// "sonarlint.connectedMode.project": {
// "projectKey": "my_project"
// }
// Specify the `connectionId` only if you have defined multiple connections.
"sonarlint.connectedMode.project": {},
// 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#`.
// Example for SonarCloud:
// "sonarlint.connectedMode.servers": [
// {
// "serverId": "my_orga_in_sonarcloud.io",
// "serverUrl": "https://sonarcloud.io",
// "organizationKey": "my_organization",
// "token": "V2VkIE1..."
// }
// ]
// Example for SonarQube:
// "sonarlint.connectedMode.servers": [
// {
// "serverId": "my_sonarqube",
// "serverUrl": "https://sonar.mycompany.com",
// "token": "V2VkIE1..."
// }
// ]
"sonarlint.connectedMode.servers": [],
// 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.
"sonarlint.disableTelemetry": false,
// Show analyzer's logs in the SonarLint output.
"sonarlint.output.showAnalyzerLogs": false,
// Enable verbose log level in the SonarLint output.
"sonarlint.output.showVerboseLogs": false,
// Path to the active compilation database, e.g.
// `C:\\Repos\\MyProject\\compile_commands.json`
"sonarlint.pathToCompileCommands": "",
// Path to a Node.js executable (12.22.0 or more recent) used to analyze JavaScript and
// TypeScript code.
// On Windows, backslashes must be escaped, e.g. `C:\\Program
// Files\\NodeJS\\12-lts\\bin\\node.exe`
"sonarlint.pathToNodeExecutable": "",
// 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.
// Example:
// "sonarlint.rules": {
// "javascript:1481": {
// "level": "off",
// "javascript:S103": {
// "level": "on",
// "parameters": {
// "maximumLineLength": "120"
// }
// }
// }
"sonarlint.rules": {},
// 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*}`
"sonarlint.testFilePattern": ""
}
}