]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18389 - Fix Sarif import triggered multiple times for project with many modules
authorAntoine Vinot <antoine.vinot@sonarsource.com>
Tue, 14 Mar 2023 15:26:20 +0000 (16:26 +0100)
committerLukasz Jarocki <lukasz.jarocki@sonarsource.com>
Fri, 17 Mar 2023 09:45:57 +0000 (10:45 +0100)
sonar-scanner-engine/src/main/java/org/sonar/scanner/externalissue/sarif/SarifIssuesImportSensor.java

index 77467ec9c74dbf396b600718ba50f96d54ecff89..7bb05650617aa3d625ae08a7b84b1b3cd9c351f3 100644 (file)
@@ -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";