Hello!
I think there is a problem with the activity history in SonarCloud.
One of our customers states that their developers try to fix any issues that arise in the new code. That is: new features or code retouching.
The thing is that they are having “new” issues, but not in the new code, but in old code. Let me explain:
If there is a rule change, you may detect issues in code that belong to the old code or overall code. If one of these issues is detected, the date of the issue is the date of the commit to which it belongs.
In this particular case, it is 5 years old. The associated rule was activated in December 2023. This is not a new issue. It is not in the new code.
Rule activation date:
However, in the activity graphs, zero issues appear up to the time of detection. From that moment on, the issues do appear and Sonar marks the issues as having risen (in this case, there are 7 due to rule changes).
This can lead to confusion (which is, in fact, what is happening to them). They interpret this graph as 7 NEW incidents. And they are not, they are issues that were already there and have been detected later.
The developers are getting worried because they are getting new issues and the managers are worried because it seems that the developers are not fixing the issues.
The most logical thing is that if the issue existed 1, 2 or 3 years ago, it appears in the history as if this issue existed.
I think that it is against the principles of Clean as you Code to mark as “newly created” issues introduced a long time ago.
Would it be possible to modify the history to reflect the issues I am talking about?