New Code based on SCM data


If I analyze a new project that has already been a few years old (in git SCM), since there is no data in the sonarqube, the new code would contain nearly 0 faults even with several consecutive runs.

It seems like if the new code’s “number of days” is larger than the oldest analysis, sonarqube would only set number of days to the oldest analysis date. I might be wrong for the exact way how it works since it is my estimation.

Thus, I want to suggest that new code based on “number of days” should also support SCM data number of days so I can obtain correct data even with newly analyzed projects.