diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2020-03-05 11:45:56 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-03-06 20:04:32 +0000 |
commit | fb03a19566ef193e4860fb276824ff315ca5047d (patch) | |
tree | 2b6c4180b695056a210114e2a078d6a95e8edf90 /sonar-plugin-api/src | |
parent | ea65d148b2fc1b28b055dc58760b8966e406028f (diff) | |
download | sonarqube-fb03a19566ef193e4860fb276824ff315ca5047d.tar.gz sonarqube-fb03a19566ef193e4860fb276824ff315ca5047d.zip |
SONAR-13165 Scanner warns that it wasn't able to detected changed lines on files with lines removed only
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java index e7bda351dd3..be44d13eb41 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/scm/ScmProvider.java @@ -68,8 +68,9 @@ public abstract class ScmProvider { /** * Return a map between paths given as argument and the corresponding line numbers which are new compared to the provided target branch. - * If null is returned or if a path is not included in the map, an imprecise fallback mechanism will be used to detect which lines - * are new (based on SCM dates). + * If nothing is returned for a file, the scanner will consider that the provider was unable to determine changes for that file and it will + * assume that nothing was changed in it. + * If null is returned, an imprecise fallback mechanism will be used to detect which lines are new (based on SCM dates). * * @param files Absolute path of files of interest * @return null if the SCM provider was not able to compute the new lines |