Skip to content

Commit

Permalink
SLI-1511 Update embedded C# analyzer to 9.30.0.95878 (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
nquinquenel authored Jul 29, 2024
1 parent 1c4eb50 commit 3733ab4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import org.sonarsource.sonarlint.core.client.api.standalone.StandaloneAnalysisConfiguration;
import org.sonarsource.sonarlint.core.client.api.standalone.StandaloneGlobalConfiguration;
import org.sonarsource.sonarlint.core.client.api.standalone.StandaloneSonarLintEngine;
import org.sonarsource.sonarlint.core.commons.IssueSeverity;
import org.sonarsource.sonarlint.core.commons.Language;
import org.sonarsource.sonarlint.core.commons.RuleKey;
import org.sonarsource.sonarlint.plugin.api.module.file.ModuleFileEvent;
Expand Down Expand Up @@ -531,6 +530,7 @@ void testRuleActivation(@TempDir Path tmpDir) throws Exception {
.extracting(Issue::getRuleKey, Issue::getMessage, Issue::getStartLine, Issue::getStartLineOffset, Issue::getEndLine, Issue::getEndLineOffset, i -> i.getInputFile().getPath(),
Issue::getSeverity)
.containsOnly(
tuple("csharpsquid:S1871", "Either merge this branch with the identical one on line 10 or change one of the implementations.", 14, 10, 16, 11, inputFile.getPath(), MAJOR),
tuple("csharpsquid:S1135", "Complete the task associated to this 'TODO' comment.", 19, 13, 19, 17, inputFile.getPath(), INFO));

issues.clear();
Expand All @@ -550,6 +550,8 @@ void testRuleActivation(@TempDir Path tmpDir) throws Exception {
.extracting(Issue::getRuleKey, Issue::getMessage, Issue::getStartLine, Issue::getStartLineOffset, Issue::getEndLine, Issue::getEndLineOffset, i -> i.getInputFile().getPath(),
Issue::getSeverity)
.containsOnly(
tuple("csharpsquid:S1871", "Either merge this branch with the identical one on line 10 or change one of the implementations.", 14, 10, 16, 11,
inputFile.getPath(), MAJOR),
tuple("csharpsquid:S126", "Add the missing 'else' clause with either the appropriate action or a suitable comment as to why no action is taken.", 13, 10, 13, 17,
inputFile.getPath(), CRITICAL));
}
Expand Down
6 changes: 3 additions & 3 deletions omnisharp-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<description>Code Analyzer based on Omnisharp</description>

<properties>
<analyzer.version>9.27.0.93347</analyzer.version>
<analyzer.version>9.30.0.95878</analyzer.version>
<!-- The following properties should match https://github.com/SonarSource/sonar-dotnet/blob/master/pom.xml#L58 for the given analyzer version -->
<sonar.analyzer.commons>2.11.0.2861</sonar.analyzer.commons>
<sonar.version>10.7.0.2191</sonar.version>
<sonar.api.impl.version>10.5.1.90531</sonar.api.impl.version>
<sonar.version>10.9.0.2362</sonar.version>
<sonar.api.impl.version>10.6.0.92116</sonar.api.impl.version>
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
<sonarAnalyzer.directory>${project.build.directory}/analyzer</sonarAnalyzer.directory>
<servicesDll.directory>${project.build.directory}/services</servicesDll.directory>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<gitRepositoryName>sonarlint-omnisharp</gitRepositoryName>
<artifactsToPublish>${project.groupId}:sonarlint-omnisharp-plugin:jar</artifactsToPublish>
<junit.version>5.9.1</junit.version>
<sonarlint-core.version>9.0.0.74282</sonarlint-core.version>
<sonarlint-core.version>9.8.0.76914</sonarlint-core.version>
<jdk.min.version>11</jdk.min.version>
<omnisharp.version>1.39.10</omnisharp.version>
</properties>
Expand Down

0 comments on commit 3733ab4

Please sign in to comment.