作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个与新代码的技术债务比率相关的问题。当我引入新代码味道时,我可以看到新代码的债务增加了,但债务比率始终显示为 0。我已经尝试更改开发代码 (10 ,15,20),但我仍然看到同样的问题。
我是不是错过了什么配置
最佳答案
经过几天的努力,我们找到了答案,
如果未配置 SCM,则不会计算“新代码的技术债务比率”(开发故事中的详细信息 https://jira.sonarsource.com/browse/SONAR-5876)
对于基于 Maven 的项目,
在 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
运行 Sonar 扫描您的项目
关于sonarqube - 新代码上的技术债务率总是出现0%,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47925590/
我是一名优秀的程序员,十分优秀!