aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorAntoine Vinot <antoine.vinot@sonarsource.com>2023-03-14 16:26:20 +0100
committerLukasz Jarocki <lukasz.jarocki@sonarsource.com>2023-03-17 10:45:57 +0100
commitcf21baf17e658d76361fec15a709938685169587 (patch)
tree7af3c07b9c9ba1de9dfc885d89fd83b5ae33b544 /sonar-scanner-engine
parent27e0c9780d56a3d57b9657e53a8d812d73b263a1 (diff)
downloadsonarqube-cf21baf17e658d76361fec15a709938685169587.tar.gz
sonarqube-cf21baf17e658d76361fec15a709938685169587.zip
SONAR-18389 - Fix Sarif import triggered multiple times for project with many modules
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/externalissue/sarif/SarifIssuesImportSensor.java4
1 files 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";