简体   繁体   English

SonarQube项目在没有数据时通过了质量门检查?

[英]SonarQube projects pass Quality Gate when there is no data?

I'm using SonarQube 5.4 and I noticed that when a metric, which is used to calculate the Quality Gate status, is missing then that is handled in the same way as if the criteria was met. 我使用的是SonarQube 5.4,我注意到当缺少用于计算质量门状态的度量标准时,将以与满足条件相同的方式来处理该度量标准。

Isn't it more intuitive that the Quality Gate fails if there is missing information to determine the status? 如果缺少确定状态的信息,质量门功能是否更直观? Or at least that it is configurable to fail by default if there is missing data? 还是至少可以将其配置为在缺少数据的情况下默认情况下失败?

Instead of having the quality gate able to deal with a missing code coverage measure our goal is to find a standard way to force coverage to 0 when there is no coverage information available for one source file. 我们的目标不是找到质量门来处理丢失的代码覆盖率的措施,而是要找到一种标准方法,即在没有可用于一个源文件的覆盖率信息时,将覆盖率强制为0。 This is not an easy subject but this is something that we'll try to fix part of https://jira.sonarsource.com/browse/MMF-345 . 这不是一个容易的话题,但这是我们将尝试修复https://jira.sonarsource.com/browse/MMF-345的一部分的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM