From f3abcdf6023a6ec3bd05db750fedc608bb2b7ded Mon Sep 17 00:00:00 2001 From: Janos Gyerik Date: Tue, 15 Aug 2017 09:29:18 +0200 Subject: Add incrementalMode param to BranchConfigurationValidator.validate (#2353) --- .../main/java/org/sonar/scanner/scan/BranchConfigurationValidator.java | 2 +- .../org/sonar/scanner/scan/DefaultBranchConfigurationValidator.java | 2 +- .../src/main/java/org/sonar/scanner/scan/ProjectReactorValidator.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sonar-scanner-engine/src') 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 validationMessages, @Nullable String deprecatedBranchName); + void validate(List 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 validationMessages, @Nullable String deprecatedBranchName) { + public void validate(List 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()) { -- cgit v1.2.3