diff options
3 files changed, 3 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/BranchConfigurationValidator.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/BranchConfigurationValidator.java index 39624b06305..8855553bb0e 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/BranchConfigurationValidator.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/BranchConfigurationValidator.java @@ -27,5 +27,5 @@ import org.sonar.api.batch.ScannerSide; @ScannerSide @InstantiationStrategy(InstantiationStrategy.PER_BATCH) public interface BranchConfigurationValidator { - void validate(List<String> validationMessages, @Nullable String deprecatedBranchName); + void validate(List<String> validationMessages, @Nullable String deprecatedBranchName, boolean incrementalMode); } diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/DefaultBranchConfigurationValidator.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/DefaultBranchConfigurationValidator.java index 0a85e1c5183..68c52726341 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/DefaultBranchConfigurationValidator.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/DefaultBranchConfigurationValidator.java @@ -24,7 +24,7 @@ import javax.annotation.Nullable; public class DefaultBranchConfigurationValidator implements BranchConfigurationValidator { @Override - public void validate(List<String> validationMessages, @Nullable String deprecatedBranchName) { + public void validate(List<String> validationMessages, @Nullable String deprecatedBranchName, boolean incrementalMode) { // no-op } } diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectReactorValidator.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectReactorValidator.java index 6b3f16f95ff..eb08678d0c0 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectReactorValidator.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectReactorValidator.java @@ -61,7 +61,7 @@ public class ProjectReactorValidator { String deprecatedBranchName = reactor.getRoot().getBranch(); - branchConfigurationValidator.validate(validationMessages, deprecatedBranchName); + branchConfigurationValidator.validate(validationMessages, deprecatedBranchName, mode.isIncremental()); validateBranch(validationMessages, deprecatedBranchName); if (!validationMessages.isEmpty()) { |