Hello,
I’m trying to check why the date for my new code measures is not updated. I started to scan the code since March and that date has not changed from that moment.
The version of SonarQube that I’m using is 8.7.1.42226.
And actually, the steps to reproduce is just going into the overview section of the project and compare the new code and overall code tabs. The following images depicted the scenario:
So, I really appreciate if you could give me a reason why if those scans are registered, the date in the first picture is not updated with the latest scan that I performed?
That date that is shown (March 24, 2021) is the start of the New Code period (the date that after which, all code/issues introduced are considered New).
So while the date isn’t changing (it’s just a start date), the underlying measures are changing every time you perform an analysis. If you add 5 vulnerabilities tomorrow, you’ll have 5 New Vulnerabilities (as compared to how many you had on March 24, 2021.
There are a few ways to Define New Code if for some reason you need to update this date (so the New Code Period starts later). However – for now it appears that your first analysis was a baseline scan, and everything after is New Code (many users like leaving it this way!)