Skip to content

Commit 5b120e8

Browse files
SLOMNI-34 update C# analyzer 10.3 to 10.4
1 parent 3dd4f7c commit 5b120e8

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

omnisharp-plugin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<properties>
1919
<!-- The following properties should match the pom.xml of sonar-dotnet for the given analyzer version -->
2020
<sonar.analyzer.commons>2.16.0.3141</sonar.analyzer.commons>
21-
<sonar.version>10.13.0.2560</sonar.version>
22-
<sonar.api.impl.version>10.7.0.96327</sonar.api.impl.version>
21+
<sonar.version>10.14.0.2599</sonar.version>
22+
<sonar.api.impl.version>24.12.0.100206</sonar.api.impl.version>
2323
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
2424
<sonarAnalyzer.directory>${project.build.directory}/analyzer</sonarAnalyzer.directory>
2525
<servicesDll.directory>${project.build.directory}/services</servicesDll.directory>

omnisharp-plugin/src/test/java/org/sonarsource/sonarlint/omnisharp/OmnisharpSensorTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,10 @@ void passActiveRulesAndParams() throws Exception {
252252

253253
underTest.execute(sensorContext);
254254

255+
// The order of parameters is not guaranteed
255256
verify(mockProtocol)
256-
.config(argThat(json -> json.toString().equals("{\"activeRules\":[{\"ruleId\":\"S123\"},{\"ruleId\":\"S456\",\"params\":{\"param1\":\"val1\",\"param2\":\"val2\"}}]}")));
257+
.config(argThat(json -> json.toString().equals("{\"activeRules\":[{\"ruleId\":\"S123\"},{\"ruleId\":\"S456\",\"params\":{\"param1\":\"val1\",\"param2\":\"val2\"}}]}")
258+
|| json.toString().equals("{\"activeRules\":[{\"ruleId\":\"S123\"},{\"ruleId\":\"S456\",\"params\":{\"param2\":\"val2\",\"param1\":\"val1\"}}]}")));
257259
}
258260

259261
@Test

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<sonarlint-core.version>10.11.0.79687</sonarlint-core.version>
4646
<jdk.min.version>11</jdk.min.version>
4747
<omnisharp.version>1.39.10</omnisharp.version>
48-
<analyzer.version>10.3.0.106239</analyzer.version>
48+
<analyzer.version>10.4.0.108396</analyzer.version>
4949
<license.name>GNU LGPL v3</license.name>
5050
</properties>
5151

0 commit comments

Comments
 (0)