From: Julien HENRY Date: Mon, 4 Feb 2019 14:19:36 +0000 (+0100) Subject: SONAR-11677 Use main branch as reference when analyzing a PR and base branch is not... X-Git-Tag: 7.7~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d72472646a0cd01f038d8c9b91a15c784e2ef182;p=sonarqube.git SONAR-11677 Use main branch as reference when analyzing a PR and base branch is not analyzed --- diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/branch/BranchConfiguration.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/branch/BranchConfiguration.java index 7377fcc6f3b..87dedb54d11 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/branch/BranchConfiguration.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/branch/BranchConfiguration.java @@ -55,7 +55,7 @@ public interface BranchConfiguration { * For short living branches, we look at sonar.branch.target (default to default branch). If it exists but is a short living branch or PR, we will * transitively use its own target. * For PR, we look at sonar.pullrequest.base (default to default branch). If it exists but is a short living branch or PR, we will - * transitively use its own target. + * transitively use its own target. If base is not analyzed, we will use default branch. * Only @null if the branch feature is not available. */ @CheckForNull