Two different things can currently lead to increase the New Debt during the leak period:
- Either a new issue with a remediation cost
- Or an old issue whose remediation cost has recently increased. Example: a function with a too high cognitive complexity and complexity increases, a source file with a too low coverage, ...
- Rule parameter value is updated, for instance the threshold for acceptable Cognitive Complexity is dropped
In the second and third cases, it is almost impossible for end-users to really understand what happened because when clicking on "New Debt", the issues page is opened and only the debt created by new issues introduced during the leak period is displayed. Whereas it is really a corner case to have the New Debt impacted by the update of an existing issue.
Because this is a corner case, the easiest way to fix this discrepancy is to compute the "New Debt" only based on "New Issues".