我在新代码上遇到与Tech Debt比率有关的问题。当我引入新的代码气味时,我可以看到债务增加了新代码,但债务比率总是显示为0。我试过改变开发代码(10,15,20),但我仍然看到同样的问题。
我错过了任何配置吗?
经过几天的奋斗,我们找到了答案,
如果未配置SCM,则不会计算“新代码的技术债务比率”(开发故事中的详细信息https://jira.sonarsource.com/browse/SONAR-5876)
对于基于Maven的项目,
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