New Code not shown in overview

We have a Sonar version of 9.9.8 we have upgraded out LOC from 100k to 250k and we have imported a project that previously existed in a secondary sonarqube instance.
We are selfhosting with docker image.
After initial import the original code went into overall code. Then we did a merge from a PR. The pr had 31k new lines of code. In the merge request page it was abvious about the new lines the code coverage etc. After merging the overview page for branch that the merge was done does not show coverage and shows that there is no new code while in the graph below the analysis it is shown that there is new code. Also in the same branch in the activity page the new code is shown.



we have tried using also selection of new code rule for 750 days and it did not work ,also with specific previous analysis. These images are with the project default new code identification

It seems that there was a clonfile with the SCM for the git.blame . Setting the new code configuration for the branch even to 3000 days did not do anything.
The solution was to sate the sonar.scm.disabled=True and rerun the same analysis so that all new code irrelevant of the commit date will be set as new code in the analysis. This config needs to be set back to default value and continue normal processes.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.