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

Technical Debt Ratio should be computed using LOC

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: None
    • Labels:
      None

      Description

      Because it is just impossible to compute the technical debt ratio on new code (SONAR-5876) using complexity as the size metric, we should be consistent and remove the possibility to compute the technical debt ratio based on this metric.

      This means:

      • Dropping the "sonar.technicalDebt.sizeMetric" property and all its references
      • Dropping the "sizeMetric" property of the "languageSpecificParameters" property set and all its references
      • Updating the description of the "sonar.technicalDebt.developmentCost" to:

        Cost to develop one line of code (LOC). Example: if the cost to develop 1 LOC has been estimated at 30 minutes, then the value of this property would be 30.

      • Update the computation of the technical debt ratio metric to rely only on LOC

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              fabrice.bellingard Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: