新代码的技术负债率总是出现0%

问题描述 投票:2回答:1

我在新代码上遇到与Tech Debt比率有关的问题。当我引入新的代码气味时,我可以看到债务增加了新代码,但债务比率总是显示为0。我试过改变开发代码(10,15,20),但我仍然看到同样的问题。

我错过了任何配置吗?

SonarQube版本:5.6.6和6.7也。 enter image description here

sonarqube technical-debt
1个回答
1
投票

经过几天的奋斗,我们找到了答案,

如果未配置SCM,则不会计算“新代码的技术债务比率”(开发故事中的详细信息https://jira.sonarsource.com/browse/SONAR-5876

对于基于Maven的项目,

  • 在POM文件中添加SCM标记详细信息(https://maven.apache.org/scm/maven-scm-plugin/usage.html
  • 在SonarQube中启用和添加SCM详细信息 A ) Go to Administration --> General Settings --> SCM (Left side menu) 1.set as false to "Disabled the SCM Sensor" and SCM provider "svn" 2.Add User name and password in SVN
  • 运行声纳扫描您的项目
© www.soinside.com 2019 - 2024. All rights reserved.