Metric of Maintainability Technical Debt Ratio should not be 0.0%

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Enterprise edition 8.9.7
  • what are you trying to achieve
    debt=13 das=13860 minutes =6240 minutes
    LOC=10419
    Metric of Maintainability Technical Debt Ratio should be 6240/(30*10419)=2% but shown 0.0%

企业微信截图_16467920031406

In the incorrectly displayed project,Effort to Reach Maintainability Rating A is 13 days ,is that why the project technical debt ratio is showing wrong?

Hi,

As I remember, remediation time is stored in minutes. Anything you see in any other unit likely involves rounding. That’s almost a guarantee when you see it in days.

But regarding the math, I get:
6240 min remediation/(30 min * 10419 LOC) = 0.02

So this is likely a truncation error & I’m going to flag it internally for further attention.

 
Ann

1 Like

Hi @honghua

In order to better pinpoint your issue, could you please share with me the value that you receive from the API for this metric?

Hi,
thank you for your reply !

Just to be sure, could you also check the value of the sonar.technicalDebt.developmentCost settings on your SonarQube platform?