aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src
diff options
context:
space:
mode:
authorJanos Gyerik <janos.gyerik@sonarsource.com>2017-08-15 09:29:18 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2017-09-12 10:59:56 +0200
commitf3abcdf6023a6ec3bd05db750fedc608bb2b7ded (patch)
tree958610444101feed63cca05955addfe0027d2263 /sonar-scanner-engine/src
parent0ce71ddd4933fca7f4b909e108b9ea26fc25a22c (diff)
downloadsonarqube-f3abcdf6023a6ec3bd05db750fedc608bb2b7ded.tar.gz
sonarqube-f3abcdf6023a6ec3bd05db750fedc608bb2b7ded.zip
Add incrementalMode param to BranchConfigurationValidator.validate (#2353)
Diffstat (limited to 'sonar-scanner-engine/src')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/BranchConfigurationValidator.java2
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/DefaultBranchConfigurationValidator.java2
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/ProjectReactorValidator.java2
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()) {