- which version - v24.12.0.100206
- how deployed: Docker
- what are you trying to achieve - get correct new lines for sonarqube project that have “specific analysis“ as baseline
- what have you tried so far to achieve this - upgraded sonarqube, set baseline, run analysis
Hi.
I am getting problems with new lines - we run sonar analysis, set up first analysis as baseline, then there was few analysis with minimal amount of new code and everything looked fine.
But then into branch (from which analysis was done) was merged another branch that introduced big amount of new code - aaaand it was not fine any more because it is clear that that many lines of new code does not show as new lines.
As I understand “specific analysis“ as baseline for new code should be exactly that - baseline and all code from new sonar analyses that is not in that baseline analysis should be new code. But currently it does not work that way.
Why?
Not sure what provide here for investigation…
So far I tried to investigate and although I did not looked through all code (at least yet) but noticed so far that code commits that did not show as new code is older than commit from which first analysis-baseline was done.