We made a change a line of code in java source file on 27-Feb-2022, then reverted back on the same day. But sonarqube is showing as new code changes for this file.
When you go to the file in SonarQube and click on the margin of the changed/reverted line(s), what date is shown in the ‘blame’ data SonarQube pulled from your SCM?
In the blame data it is showing committed on 27-Feb-2022. we committed the line on same day and deleted on same day. But still sonarqube showing as new line change. We set leak period for new code period as last 70 days.
we deleted the new line on the same day…in the bit bucket repository the new line is not avilable…but the sonarqube is still showing in the dashboard as new line
In another project we created a new line on 27-Feb-2022 and we deleted the same new line on 8-Mar-2022. Still the sonarqube dashbaord showing the deleted new line, but the new line is not available in the bitbucket repository.
Yes it is correct. But we are facing a strange issue for some applications. We deleted the line and committed it, but the deleted line still showing in sonarqube . In the SCM Repository the deleted line is not available.
Due to security reasons we are not able to take screenshots.
We verified in sonarqube, the deleted line showing the commit hash ID, commit date and author name. The commit date showing in the blame data is actual commit date. Still we are able to see the blame data post delete the line>