Skip to content

Commit f8da49e

Browse files
committed
Upgrade SonarLint Language Server and analyzers
Despite the smaller major version, 2.19.0 is the latest version of SonarLint language server, it is newer than 4.6.0. I don't know what happened with the versioning. All the recent analyzer jars are published on the Maven or repox.jfrog.io instead of binaries.sonarsoruce.com. Also add basic continuous tests for each supported analyzer on Linux and MacOS.
1 parent f3b3beb commit f8da49e

18 files changed

+371
-54
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ Out of the box, SonarLint automatically checks your code against the following r
105105
* `lsp-sonarlint-disable-telemetry` - Disable telemetry option (disabled by default).
106106
* `lsp-sonarlint-test-file-pattern` - Regex to find test file, most rules are not evaluated on test files.
107107
* `lsp-sonarlint-show-analyzer-logs` - Show analyzer logs.
108-
* `lsp-sonarlint-server-download-url` - Sonarlint server download URL.
108+
* `lsp-sonarlint-verbose-logs` - Make SonarLint logs verbose.
109+
* `lsp-sonarlint-server-download-url` - SonarLint server download URL.
110+
* `lsp-sonarlint-plugin-autodownload` - Not ask for confirmation and download analyzers if they are missing.
109111

110112
### Plugins supported settings
111113
This settigns are common for all the language plugins.

fixtures/javascript-sample.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function f1() {
2+
// TODO: FIXME here
3+
return 18;
4+
}

fixtures/sample.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<body>
2+
<!-- TODO: complete this document -->
3+
</body>

fixtures/sample.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class HelloWorld {
2+
// TODO: flag this comment
3+
public static void main(String[] args) {
4+
System.out.println("Hello, World!");
5+
}
6+
}

fixtures/sample.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
echo "Hello, World!";
3+
// TODO: something more elaborate
4+
?>

fixtures/sample.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
# TODO: why not do this todo now?
3+
if true or false:
4+
break

fixtures/sample.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function f1() {
2+
// TODO: FIXME here
3+
return 18;
4+
}

fixtures/sample.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<root>
3+
<!-- TODO: this comment then -->
4+
<message>Hello, World!</message>
5+
</root>

languages/html/lsp-sonarlint-html.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@
2828
(defgroup lsp-sonarlint-html nil
2929
"lsp-sonarlint html analyzer group"
3030
:group 'lsp-sonarlint
31-
:version '(lsp-sonarlint-html . "3.2.0"))
31+
:version '(lsp-sonarlint-html . "3.7.1"))
3232

3333
(defcustom lsp-sonarlint-html-enabled nil
3434
"Enable lsp-sonarlint-html plugin."
3535
:group 'lsp-sonarlint-html
3636
:type 'boolean)
3737

3838
(defcustom lsp-sonarlint-html-download-url
39-
"https://binaries.sonarsource.com/Distribution/sonar-html-plugin/sonar-html-plugin-3.2.0.2082.jar"
40-
"Html plugin download URL."
39+
"https://repo.maven.apache.org/maven2/org/sonarsource/html/sonar-html-plugin/3.7.1.3306/sonar-html-plugin-3.7.1.3306.jar"
40+
"HTML plugin download URL."
4141
:group 'lsp-sonarlint-html
4242
:type 'string)
4343

languages/java/lsp-sonarlint-java.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
(defgroup lsp-sonarlint-java nil
2929
"lsp-sonarlint java analyzer group"
3030
:group 'lsp-sonarlint
31-
:version '(lsp-sonarlint-java . "6.4.0"))
31+
:version '(lsp-sonarlint-java . "7.18.0"))
3232

3333
(defcustom lsp-sonarlint-java-enabled nil
3434
"Enable lsp-sonarlint-java plugin."
3535
:group 'lsp-sonarlint-java
3636
:type 'boolean)
3737

3838
(defcustom lsp-sonarlint-java-download-url
39-
"https://binaries.sonarsource.com/Distribution/sonar-java-plugin/sonar-java-plugin-6.4.0.21967.jar"
39+
"https://repo.maven.apache.org/maven2/org/sonarsource/java/sonar-java-plugin/7.18.0.31443/sonar-java-plugin-7.18.0.31443.jar"
4040
"Java plugin download URL."
4141
:group 'lsp-sonarlint-java
4242
:type 'string)

0 commit comments

Comments
 (0)