Skip to content

Commit

Permalink
Update sonar-api and orchestrator (#4877)
Browse files Browse the repository at this point in the history
  • Loading branch information
saberduck authored Oct 17, 2024
1 parent 2e4967c commit d0227c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ void test() throws Exception {
.setProjectKey(PROJECT_KEY)
.setProjectName(PROJECT_KEY)
.setProjectVersion("1")
.setLanguage("css")
.setSourceEncoding("UTF-8")
.setSourceDirs(".")
.setProperty(
Expand All @@ -129,7 +128,7 @@ void test() throws Exception {
.setEnvironmentVariable("SONAR_RUNNER_OPTS", "-Xmx2000m");
ORCHESTRATOR.executeBuild(build);

String litsDifferences = new String(Files.readAllBytes(litsDifferencesFile.toPath()), UTF_8);
String litsDifferences = Files.readString(litsDifferencesFile.toPath());
assertThat(litsDifferences).isEmpty();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private static void deleteUnchecked(Path path) {

private static void installScanner() {
var installer = new SonarScannerInstaller(orchestrator.getConfiguration().locators());
installer.install(Version.create(SCANNER_VERSION), null, Path.of("target").toFile(), false);
installer.install(Version.create(SCANNER_VERSION), Path.of("target").toFile());
}

@ParameterizedTest
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@
<junit.version>5.9.3</junit.version>
<mockito.version>3.5.0</mockito.version>
<slf4j.version>1.7.36</slf4j.version>
<sonar.version>10.4.1.88267</sonar.version>
<sonar.api.version>10.7.0.2191</sonar.api.version>
<sonar-orchestrator.version>4.9.0.1920</sonar-orchestrator.version>
<sonar.version>10.7.0.96327</sonar.version>
<sonar.api.version>10.12.0.2522</sonar.api.version>
<sonar-orchestrator.version>5.0.0.2065</sonar-orchestrator.version>
<gson.version>2.11.0</gson.version>
<analyzer-commons.version>2.13.0.3004</analyzer-commons.version>
<sslr.version>1.22</sslr.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import javax.annotation.CheckForNull;
import org.sonar.api.batch.rule.ActiveRule;
import org.sonar.api.batch.rule.ActiveRules;
import org.sonar.api.issue.impact.Severity;
import org.sonar.api.issue.impact.SoftwareQuality;
import org.sonar.api.rule.RuleKey;

public class TestActiveRules implements ActiveRules {
Expand Down Expand Up @@ -84,6 +86,11 @@ public String severity() {
return null;
}

@Override
public Map<SoftwareQuality, Severity> impacts() {
return Map.of();
}

@Override
public String language() {
return null;
Expand Down

0 comments on commit d0227c4

Please sign in to comment.