"leak period" 在 sonarQube 中是什么意思?

What does the "leak period" mean in sonarQube?

我是 SonarQube 的新手,我开始阅读文档,但很多时候都找到了 "The leak period",但我没有找到任何相关信息,有人可以向我解释一下吗什么意思。

简而言之,泄漏期是时间范围(通常是自上次发布以来),其中指定的标准是根据新添加的代码来衡量的。这允许关注新代码的质量并停止技术债务的积累。

"leak" 概念在此处 https://docs.sonarqube.org/display/SONAR/Fixing+the+Water+Leak

的文档中进行了解释

更新 SonarSource 充实并更新了术语/理念:https://sonarqube.org/features/clean-as-you-code.

同时 SonarQube's documentation does an adequate job explaining the theory, code.scan (sonarqube for salesforce code) does a great job explaining the scenarios.

How the Leak Period is set determines what issues are displayed as ‘new’ issues. There are several options for this.

Date

By entering a date in the format yyyy-MM-dd, SonarQube will show the issues that have arisen since that date.

Number of days

By entering a single number, SonarQube will show the issues that have arisen since that number of days ago. Keep in mind that the issues found in the last 5 days will not be the same a week from now.

Previous version

By using the previous_version setting, the Leak Period will be tracked from the previous version set with the sonar.projectVersion parameter.

For example, a scan is run on a project with the sonar.projectVersion set to 1.0 . After time, the project's sonar.projectVersion is set to 1.1. The Leak Period set to previous_version would display all issues that have arisen since sonar.projectVersion 1.0 .

Specific version

By entering your projects required sonar.projectVersion, the Leak Period will display all issues that have arisen since that specific version.

For example, a scan is run on a project with the sonar.projectVersion set to BASELINE. The project’s sonar.projectVersion is then set to DEVELOPMENT and all necessary scans are run over time. The Leak Period set to BASELINE would display all issues that have arisen since the original scan.

It is important to note that all violations, when they were introduced and the version they are introduced in are tracked. The Leak Period only filters this information on the project’s Overview dashboard and the Issues screen.