Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9534

Computation of "New Debt" should be based only on "New Issues"

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: None
    • Labels:
      None

      Description

      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".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              freddy.mallet Freddy Mallet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: