I am using GitHub - sublimelsp/LSP-SonarLint: Linting from SonarSource in SublimeText.
I am wondering how I can have it us my extended ruleset instead of the global SonarCloud Way.
This is my config file:
{
"command": [
"java",
"-jar",
"${packages}/${name}/sonarlint-language-server-4.6.0.2652.jar",
"${port}",
"${packages_uri}/${name}/sonar-javascript-plugin-6.4.1.12828.jar",
"${packages_uri}/${name}/sonar-java-plugin-6.7.0.23054.jar",
"${packages_uri}/${name}/sonar-php-plugin-3.9.0.6331.jar",
"${packages_uri}/${name}/sonar-python-plugin-3.1.0.7619.jar",
"${packages_uri}/${name}/sonar-html-plugin-3.2.0.2082.jar"
],
"languages": [
{
"languageId": "javascript",
"document_selector": "source.js"
},
{
"languageId": "php",
"document_selector": "embedding.php"
},
{
"languageId": "html",
"document_selector": "source.html | text.html.basic | text.html.ngx"
},
{
"languageId": "css",
"document_selector": "source.css"
},
],
"tcp_port": -1,
"settings": {
"sonarlint.connectedMode.connections.sonarcloud": [
{
"organizationKey":"MY_ORG_KEY",
"token":"MY_ORG_TOKEN"
}
],
"sonarlint.disableTelemetry": true,
"sonarlint.output.showAnalyzerLogs": false,
// Enable verbose log level (for both SonarLint and analyzer) in the
// SonarLint output.
"sonarlint.output.showVerboseLogs": false,
}
}
(of course MY_ORG_KEY
and MY_ORG_TOKEN
are placeholders in this above code)
How could I tell it to use my actual amended rules?
In the integration for VSCode I read that it is automatically using it, if in connected mode… but it also says I have to connected it to a project which I obviously don’t want, since I want to use SonarCloud on all my code edited in SublimeText, not just in one project.
(see sonarlint-vscode/package.json at master · SonarSource/sonarlint-vscode · GitHub for ref)
Anyone here using SublimeText has had any luck?
BTW, it is a shame that SonarCloud just skipped one of the most used Editor (SublimeText) compared to the ones integrated (see Stack Overflow Developer Survey 2018, Stack Overflow Developer Survey 2021 for ref).
Sublimetext was above almost all integrated editors for long time and still is above things like PHPStorm.