问题描述
我正在使用 SonarQube 在上传到 Gerrit 之前分析我的代码,并作为 Gerrit 审查过程中的一个步骤.相同的代码被分析了两次,我有两个项目,例如SonarQube 中的开发项目"和gerrit 项目".然后,我有时会在我的开发项目"中将某些内容标记为不会修复"或误报"等.我想将其移至gerrit-project".这可能吗?
I am using SonarQube to analyze my code before uploading to Gerrit and as a step in the review process in Gerrit. The same code is analyzed twice and I have two projects, e.g. "development-project" and "gerrit-project" in SonarQube. I then sometimes marks something as "Won't fix" or " False positive" etc in my "developpment-project". I would like to move that to the "gerrit-project". Is that possible?
推荐答案
我也遇到过类似的情况,我创建了一个简单的命令行工具来复制 Won't Fix 和 False-Positive 从一个 SonarQube 项目到另一个的分辨率类型.有点笨拙的解决方案,您需要在每次合并后运行它,但比手动解决两个或多个 SonarQube 项目中的相同问题要好.
I was in similar situation and I created simple command line tool for copying Won't Fix and False-Positive resolution types from one SonarQube project to another. A bit clumsy solution, you need to run it after each merge, but better than manually resolve the same issues in two or more SonarQube projects.
您可以在 GitHub 上找到该工具 - https://github.com/HonzaTau/SqCopyResolution
You can find the tool on GitHub - https://github.com/HonzaTau/SqCopyResolution
这篇关于移动“不会修复"在 Sonarqube 的项目之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!