coc-sonarlint
asmodeus812Coc sonar lint language server extension client
Published Package Summary
coc-sonarlint
SonarQube for IDE (formerly SonarLint) for coc.nvim. It runs the SonarLint language server of Sonar and reports quality and security issues while you type, in C, C++, Java, Go, JavaScript, TypeScript, Python, PHP, HTML, CSS, YAML/JSON (CloudFormation, Kubernetes, Azure Resource Manager), and secrets in any file. With Connected Mode it uses the rule sets and project settings of a SonarQube Server or SonarQube Cloud project.
Rule descriptions, hotspot details and connection details open as styled, syntax-highlighted
text in a reusable split or floating window, rendered like a browser would: the same stylesheets as in
VS Code, tabs and framework selectors you can toggle with <CR>, links that show their address, all
linked to your colorscheme.
Using it inside Neovim (commands, diagnostics, code actions, description views, findings,
hotspots) is described in :help coc-sonarlint, available once the extension is active. This
README covers requirements, installation, setup, settings and troubleshooting.
Requirements
- Neovim with coc.nvim 0.0.82 or later.
- A Java Runtime (JRE) 17 or later to run the language server.
- For JavaScript and TypeScript: Node.js above 20.12.0, or 22.11.0 or later.
- For C and C++: a
compile_commands.jsoncompilation database. - For Java: coc-java or a compatible extension.
Installation
:CocInstall coc-sonarlint
The language server and the analyzers ship with the extension. The extension starts when you open a file of a supported language or a
workspace that contains a .sonar.properties file (see :help coc-sonarlint-start).
Rule, hotspot and connection descriptions render like a browser page when the optional
coc-htmlview extension is installed (recommended); without it they open in a built-in renderer that works in
Vim and Neovim: a scratch buffer in a float (Neovim) or split (Vim) laid out like a browser with its
default styles, with switchable tabs (<CR>, ]c/[c), links (<CR>/gx, <Tab>) and q to close,
but without the stylesheets, capsules and code syntax colors (see :help coc-sonarlint-view-builtin):
:CocInstall https://github.com/asmodeus812/coc-htmlview
Setup
Java runtime
The language server needs Java 17 or later. The extension uses the first one it finds:
- The
sonarlint.ls.javaHomesetting, for example:
{
"sonarlint.ls.javaHome": "/usr/lib/jvm/java-17-openjdk"
}
- A JRE bundled in the
jre/folder of the extension. - The
JDK_HOMEenvironment variable. - The
JAVA_HOMEenvironment variable. - A Java installation found on the system (the
PATH).
If the setting points to a missing folder or to a folder without bin/java, the extension logs
this to the SonarLint output and tries the next source. If no Java 17+ is found, it offers to
download a JRE that only SonarLint uses (command SonarLint.InstallManagedJre). Extra JVM
arguments go in sonarlint.ls.vmargs, for example -Xmx1024m.
JavaScript and TypeScript
Analysis needs Node.js above 20.12.0, or 22.11.0 or later. The extension finds Node itself; to set it explicitly:
{
"sonarlint.pathToNodeExecutable": "/home/yourname/.nvm/versions/node/v22.11.0/bin/node"
}
C and C++
C and C++ analysis needs a compile_commands.json compilation database from your build system:
{
"sonarlint.pathToCompileCommands": "/home/yourname/repos/proj/compile_commands.json"
}
The command SonarLint.ConfigureCompilationDatabase lets you pick one of the
compile_commands.json files in the workspace. With the Microsoft compiler, the environment must
be ready to build the code. If no database is configured, you get a warning, see
Troubleshooting.
Java projects
Java analysis needs coc-java (or a compatible extension), which provides the classpath of the project.
Connected Mode
Connected Mode applies the rules and settings of a SonarQube Server or SonarQube Cloud project to your local workspace. You configure two things: a connection to the server and a binding of the workspace folder to a project on it. Bind one local project to one remote project where you can.
- Create a user token on the server. Project tokens have fewer permissions and some features do
not work with them. Add the connection to your global settings (
:CocConfig);connectionIdis a unique name you choose:
"sonarlint.connectedMode.connections.sonarqube": [
{
"serverUrl": "http://localhost:9000",
"token": "<your-user-token>",
"connectionId": "sonar-local"
}
],
- Bind the workspace folder in its local settings (
:CocLocalConfig).projectKeyis the key you gave the project when you created it on the server, here organizationmy_organd projectsonar-demo:
"sonarlint.connectedMode.project": {
"connectionId": "sonar-local",
"projectKey": "my_org_sonar-demo"
}
Instead of step 2 you can add a sonar-project.properties file (or .sonarcloud.properties,
same content) to the workspace. The workspace is then bound to that project key automatically.
The file is also needed for the first scan of a project:
sonar.projectKey=my_org_sonar-demo
sonar.organization=my_org
sonar.projectName=sonar-demo
sonar.sources=src
sonar.exclusions=**/__pycache__/**,**/*.md
Local server
You can run SonarQube locally with Docker. The server image is sonarqube:lts-community and the
scanner image is sonarsource/sonar-scanner-cli.
- Start the server with the
docker-compose.ymlof this repository:docker-compose up -d. - Open
http://localhost:9000, log in withadmin/admin, create a project and a user token. - Scan the project once (or let the server import it from GitHub or another platform) with
sonar-scan.shfrom this repository. Run it from the project folder (for a monorepo, its root); it reads the project key, name and organization fromsonar-project.properties:
cd my-project-to-scan
./path-to-sonar-scan-script/sonar-scan.sh --token "<usr-token>" --host http://localhost:9000
The scanner runs in a throwaway container, uploads the code and the server analyzes it.
Troubleshooting
- Nothing is reported: check that the extension is active (
:CocList extensions) and open the log withSonarLint.ShowSonarLintOutput.SonarLint.EnableLogsAndShowOutputturns on verbose logs and opens the log. - The server does not start, or "The Java Runtime Environment can not be located. ...": no
usable Java 17+ was found (see Java runtime). Choose "Let Sonarlint download the JRE", or set
sonarlint.ls.javaHometo a Java 17+ home: the folder that containsbin/java, notbin. - No JavaScript or TypeScript issues: set
sonarlint.pathToNodeExecutableto a supported Node. - "SonarLint might be unable to analyze C and C++ file(s) because there is no configured
compilation database.": set
sonarlint.pathToCompileCommands, or choose "Configure compile commands now". "Ask me later again" hides it for this session, "Do not ask for this workspace" and "Never ask or prompt me again" turn it off for the workspace or for good. - "Connection to '...' failed: Please verify your token.": the token in the connection settings is not valid for the server. Create a new user token.
- To see the traffic between coc.nvim and the server, set
sonarlint.trace.servertoverbose.
Development
npm install
npm run build
npm run watch # rebuild on change
License
Copyright 2017-2025 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0
- Coc sonar lint language server extension client
- 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: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
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for coc-sonarlint@1.0.27.
| Command (:CocCommand) | Description |
|---|---|
| SonarLint.OpenSample | Open Sample Project |
| SonarLint.ShowAllRules | Show All Rules |
| SonarLint.OpenRuleByKey | Open Rule by Key… |
| SonarLint.ShowActiveRules | Show Active Rules |
| SonarLint.AnalyseOpenFile | Analyze Active File |
| SonarLint.AnalyzeVCSChangedFiles | Analyze VCS Changed Files |
| SonarQube.ShowAllFindings | Show All Findings |
| SonarLint.HelpAndFeedback | Help & Feedback |
| SonarLint.ShowInactiveRules | Show Inactive Rules |
| SonarLint.EnableVerboseLogs | Enable Verbose Logs |
| SonarLint.InstallManagedJre | Install Managed JRE |
| SonarQube.ShowOpenFilesOnly | Show Findings for Open Files |
| SonarQube.DumpBackendThreads | Dump Backend Threads |
| SonarQube.ShowConnectionView | Show Connections |
| SonarQube.ShowCurrentFileOnly | Show Findings for Current File |
| SonarLint.ShowSonarLintOutput | Show SonarLint Output |
| SonarQube.ShowHighSeverityOnly | Show High Severity Only |
| SonarLint.ShowMCPConfigurations | Show MCP Configurations |
| SonarQube.ShowFixableIssuesOnly | Show Fixable Issues Only |
| SonarLint.OpenSonarQubeRulesFile | Open SonarQube Rules File |
| SonarLint.EnableLogsAndShowOutput | Enable Logs and Show Output |
| SonarLint.ScanForHotspotsInFolder | Scan Folder for Security Hotspots |
| SonarLint.AnalyzeWorkspace | Analyze Workspace |
| SonarLint.AutoBindWorkspaceFolders | Auto-Bind Workspace Folders |
| SonarLint.OpenMCPServerConfiguration | Open MCP Server Configuration |
| SonarLint.IntroduceSonarQubeRulesFile | Create SonarQube Rules File |
| SonarLint.ConfigureCompilationDatabase | Configure Compilation Database |
| SonarLint.ShareConnectedModeConfiguration | Share Connected Mode Configuration |
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "object",
"order": 1,
"scope": "application",
"default": {},
"patternProperties": {
"^[^:]+:[^:]+$": {
"type": "object",
"properties": {
"level": {
"enum": [
"off",
"on"
],
"type": "string",
"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
},
"markdownDescription": "Property names are rule keys in the form: `repo:key`"
}
},
"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:S1481\": {\n \"level\": \"off\",\n },\n \"javascript:S103\": {\n \"level\": \"on\",\n \"parameters\": {\n \"maximumLineLength\": \"120\"\n }\n }\n }\n",
"additionalProperties": false
}Raw JSON Schema
{
"type": "string",
"order": 21,
"scope": "machine",
"markdownDescription": "Extra JVM arguments used to launch the SonarLint Language Server. e.g. `-Xmx1024m`"
}Raw JSON Schema
{
"type": "string",
"order": 20,
"scope": "machine",
"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`"
}Raw JSON Schema
{
"anyOf": [
{
"enum": [
"off",
"messages",
"verbose"
],
"type": "string",
"default": "off"
},
{
"type": "object",
"properties": {
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"default": "text"
},
"verbosity": {
"enum": [
"off",
"messages",
"verbose"
],
"type": "string",
"default": "off"
}
},
"additionalProperties": false
}
],
"order": 98,
"scope": "window",
"default": "off",
"description": "Traces the communication between VS Code and the SonarLint language server."
}Raw JSON Schema
{
"type": "boolean",
"order": 100,
"scope": "machine",
"default": false,
"markdownDescription": "If enabled, by default, [focusing on new code](https://docs.sonarsource.com/sonarqube-for-vs-code/using/investigating-issues/#focusing-on-new-code) shows issues introduced in the last 30 days.\n\nFor the most accurate and customizable new code definition, use [Connected Mode](https://docs.sonarsource.com/sonarqube-for-vs-code/team-features/connected-mode) with SonarQube (Server, Cloud)."
}Raw JSON Schema
{
"type": "string",
"order": 12,
"scope": "resource",
"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*`"
}Raw JSON Schema
{
"type": "boolean",
"order": 99,
"scope": "window",
"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."
}Raw JSON Schema
{
"type": "array",
"items": {
"type": "string"
},
"scope": "application",
"default": [],
"markdownDescription": "Extra CSS files passed to coc-htmlview after the bundled stylesheets of every description view, so their rules win; see also `#htmlview.stylesheets#`. `~` and environment variables are expanded."
}Raw JSON Schema
{
"type": "boolean",
"order": 5,
"scope": "application",
"default": true,
"markdownDescription": "Enable or disable on-the-fly analysis of files you work on. When enabled, Sonarlint IDE will automatically analyze open files and show findings in real-time."
}Raw JSON Schema
{
"type": "object",
"order": 92,
"scope": "resource",
"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."
}Raw JSON Schema
{
"type": "boolean",
"scope": "machine",
"default": false,
"markdownDescription": "Start the language server's flight recorder mode.\n\n⚠ **This feature shares detailed information with SonarSource (logs, telemetry events) that may include _confidential_ data, only enable if requested to help investigate an issue.**"
}Raw JSON Schema
{
"type": "string",
"order": 10,
"scope": "machine",
"markdownDescription": "Path to a Node.js executable (versions above 20.12.0, or 22.11.0) used to analyze JavaScript and TypeScript code. \nOn Windows, backslashes must be escaped, e.g. `C:\\\\Program Files\\\\NodeJS\\\\20-lts\\\\bin\\\\node.exe`"
}Raw JSON Schema
{
"anyOf": [
{
"type": "object",
"required": [
"serverId",
"projectKey"
],
"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 (Server, Cloud)"
}
},
"deprecationMessage": "Replace `serverId` attribute by `connectionId`.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"projectKey"
],
"properties": {
"projectKey": {
"type": "string",
"description": "Key of the project in SonarQube Server or SonarQube Cloud (can be found on project homepage)"
},
"connectionId": {
"type": "string",
"description": "Identifier of the server connection declared in `#sonarlint.connectedMode.connections.sonarqube#` or `#sonarlint.connectedMode.connections.sonarcloud#`"
}
},
"additionalProperties": false
}
],
"order": 4,
"scope": "resource",
"default": {},
"examples": [
{
"projectKey": "<replace_with_server_project_key>"
},
{
"projectKey": "<replace_with_server_project_key>",
"connectionId": "<replace_with_connection_id>"
}
],
"markdownDescription": "Bind the current workspace folder to a [SonarQube Server](command:SonarLint.HelpAndFeedbackLinkClicked?%22sonarQubeProductPage%22) or [SonarQube Cloud](command:SonarLint.HelpAndFeedbackLinkClicked?%5B%7B%22id%22%3A%22sonarCloudProductPage%22%2C%22utm%22%3A%7B%22content%22%3A%22settings-connected-mode%22%2C%22term%22%3A%22bind-current-workspace%22%7D%7D%5D) 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"
}Raw JSON Schema
{
"type": "array",
"items": {
"properties": {
"token": {
"type": "string",
"description": "Token generated from My Account>Security in SonarQube (Server, Cloud)"
},
"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 SonarQube Cloud."
},
"organizationKey": {
"type": "string",
"description": "Only used for SonarQube Cloud"
}
},
"additionalProperties": false
},
"scope": "application",
"default": [],
"deprecationMessage": "The setting is deprecated. Use `sonarlint.connectedMode.connections.sonarqube` or `sonarlint.connectedMode.connections.sonarcloud` instead.",
"markdownDescription": "Configure one or more connection(s) to SonarQube (Server, Cloud). 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 SonarQube Cloud:\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 Server:\n\n \"sonarlint.connectedMode.servers\": [\n {\n \"serverId\": \"my_sonarqube\",\n \"serverUrl\": \"https://sonar.mycompany.com\",\n \"token\": \"V2VkIE1...\"\n }\n ]"
}Raw JSON Schema
{
"type": "string",
"order": 11,
"scope": "resource",
"markdownDescription": "Path to the active compilation database, e.g. `C:\\\\Repos\\\\MyProject\\\\compile_commands.json`"
}Raw JSON Schema
{
"type": "boolean",
"order": 90,
"scope": "window",
"default": false,
"description": "Enable verbose log level in the Sonarlint IDE output."
}Raw JSON Schema
{
"type": "string",
"order": 13,
"scope": "resource",
"default": "**/node_modules/**,**/.angular/**,**/.next/**,**/.nuxt/**,**/.cargo/**,**/.cache/**,**/.tmp/**,**/.log/**,**/.git/**,**/.svn/**,**/.hg/**,**/.idea/**,**/.vscode/**,**/target/surefire-reports/**,**/target/failsafe-reports/**,**/target/site/**,**/target/generated-resources/**,**/target/generated-sources/**,**/target/generated-test-sources/**,**/target/classes/**,**/target/test-classes/**,**/target/maven-archiver/**,**/target/maven-status/**,**/target/debug/**,**/target/release/**,**/target/*.jar,**/target/*.war,**/target/*.ear,**/target/*.zip,**/target/*.tar,**/target/*.gz,**/build/tmp/**,**/build/reports/**,**/build/distributions/**,**/build/libs/**,**/build/publications/**,**/build/resources/**,**/build/outputs/**,**/build/intermediates/transforms/**,**/bin/Debug/**,**/bin/Release/**,**/obj/**,**/vendor/**,**/__pycache__/**,**/.venv/**,**/venv/**,**/.pytest_cache/**,**/.mypy_cache/**,**/.tox/**,**/.ruff_cache/**,**/*.egg-info/**,**/dist/**,**/out/**,**/coverage/**,**/.turbo/**,**/.parcel-cache/**,**/.nyc_output/**,**/*.md,**/*.txt,**/*.log,**/*.lock,**/*.bak,**/*.tmp,**/*.swp,**/*.swo,**/*.DS_Store,**/*.csv,**/*.tsv,**/*.xls,**/*.xlsx,**/*.doc,**/*.docx,**/*.pdf,**/*.png,**/*.jpg,**/*.jpeg,**/*.gif,**/*.svg,**/*.ico,**/*.woff,**/*.woff2,**/*.ttf,**/*.eot,**/*.otf,**/*.mp3,**/*.mp4,**/*.zip,**/*.tar,**/*.gz,**/*.rar,**/*.7z,**/*.exe,**/*.dll,**/*.so,**/*.dylib,**/*.a,**/*.o,**/*.class,**/*.jar,**/*.war,**/*.ear,**/*.bin,**/*.dat,**/*.db,**/*.sqlite,**/*.dump,**/*.rdb,**/*.rdx,**/*.pid,**/*.pyc",
"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, and will be skipped by workspace-wide analysis features (Analyze Workspace, background analysis of files changed outside the editor). In [Connected Mode](command:SonarLint.HelpAndFeedbackLinkClicked?%22connectedModeDocs%22) with SonarQube Server or SonarQube Cloud, this property will be ignored and the server's exclusion settings will be applied. No rules are evaluated on excluded files. Example: `**/lib/**,**/*generated*`"
}Raw JSON Schema
{
"type": "number",
"order": 6,
"scope": "resource",
"default": 1000,
"markdownDescription": "Delay (in milliseconds) after the last detected file-system change before analyzing files that were modified on disk but are not open in an editor (e.g. by an external tool or AI coding agent). Only applies when `#sonarlint.automaticAnalysis#` is enabled."
}Raw JSON Schema
{
"type": "array",
"items": {
"type": "object",
"examples": [
{
"serverUrl": "https://<replace_with_your_sonarqube_server_url>"
},
{
"serverUrl": "https://<replace_with_your_sonarqube_server_url>",
"connectionId": "MyCompanySonarQube",
"disableNotifications": false
}
],
"required": [
"serverUrl"
],
"properties": {
"token": {
"type": "string",
"description": "Token generated from 'My Account>Security' in SonarQube Server"
},
"serverUrl": {
"type": "string",
"description": "URL of the SonarQube Server."
},
"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 (Server, Cloud)."
},
"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
},
"order": 2,
"scope": "application",
"default": [],
"markdownDescription": "Connect Sonarlint IDE to SonarQube Server to apply the same code quality and security 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/sonarqube-for-vs-code/team-features/connected-mode/)"
}Raw JSON Schema
{
"type": "array",
"items": {
"type": "object",
"examples": [
{
"organizationKey": "<replace_with_your_sonarqube_cloud_organization_key>"
},
{
"connectionId": "MyOrganization",
"organizationKey": "<replace_with_your_sonarqube_cloud_organization_key>",
"disableNotifications": false
}
],
"required": [
"organizationKey"
],
"properties": {
"token": {
"type": "string",
"description": "Token generated from 'My Account > Security' in SonarQube Cloud"
},
"region": {
"enum": [
"EU",
"US"
],
"type": "string",
"description": "Region of the SonarQube Cloud instance. Use 'US' for `sonarqube.us`, 'EU' for `sonarcloud.io`."
},
"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 (Server, Cloud)."
},
"organizationKey": {
"type": "string",
"description": "A SonarQube Cloud organization key. If you want to bind different projects that are in different organizations, simply declare multiple connections."
},
"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
},
"order": 3,
"scope": "application",
"default": [],
"markdownDescription": "Connect Sonarlint IDE to SonarQube Cloud to apply the same code quality and security 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/sonarqube-for-vs-code/team-features/connected-mode/)"
}