diff options
author | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-08-15 09:29:18 +0200 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2017-09-12 10:59:56 +0200 |
commit | f3abcdf6023a6ec3bd05db750fedc608bb2b7ded (patch) | |
tree | 958610444101feed63cca05955addfe0027d2263 /sonar-scanner-engine/src | |
parent | 0ce71ddd4933fca7f4b909e108b9ea26fc25a22c (diff) | |
download | sonarqube-f3abcdf6023a6ec3bd05db750fedc608bb2b7ded.tar.gz sonarqube-f3abcdf6023a6ec3bd05db750fedc608bb2b7ded.zip |
Add incrementalMode param to BranchConfigurationValidator.validate (#2353)
Diffstat (limited to 'sonar-scanner-engine/src')
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()) { |