From cf21baf17e658d76361fec15a709938685169587 Mon Sep 17 00:00:00 2001 From: Antoine Vinot Date: Tue, 14 Mar 2023 16:26:20 +0100 Subject: [PATCH] SONAR-18389 - Fix Sarif import triggered multiple times for project with many modules --- .../scanner/externalissue/sarif/SarifIssuesImportSensor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/externalissue/sarif/SarifIssuesImportSensor.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/externalissue/sarif/SarifIssuesImportSensor.java index 77467ec9c74..7bb05650617 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/externalissue/sarif/SarifIssuesImportSensor.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/externalissue/sarif/SarifIssuesImportSensor.java @@ -28,20 +28,20 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; import org.sonar.api.CoreProperties; -import org.sonar.api.batch.sensor.Sensor; import org.sonar.api.batch.sensor.SensorContext; import org.sonar.api.batch.sensor.SensorDescriptor; import org.sonar.api.config.Configuration; import org.sonar.api.config.PropertyDefinition; import org.sonar.api.resources.Qualifiers; import org.sonar.api.scanner.ScannerSide; +import org.sonar.api.scanner.sensor.ProjectSensor; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; import org.sonar.core.sarif.Sarif210; import org.sonar.core.sarif.SarifSerializer; @ScannerSide -public class SarifIssuesImportSensor implements Sensor { +public class SarifIssuesImportSensor implements ProjectSensor { private static final Logger LOG = Loggers.get(SarifIssuesImportSensor.class); static final String SARIF_REPORT_PATHS_PROPERTY_KEY = "sonar.sarifReportPaths"; -- 2.39.5