如何将结果导出为PDF报告?

问题描述 投票:0回答:7

我正在使用 SonarQube 5.6.3。如何创建 PDF 表单、Excel 报告或 html 格式的 SonarQube 分析详细报告?

似乎没有可用的插件。

我无法使用以下配置生成 html 文件:

sonar.issuesReport.html.enable = true
sonar.issuesReport.html.location = c:\
sonar.issuesReport.html.name = sample

如何从 SonarQube 导出这些详细信息?

sonarqube sonar-runner
7个回答
5
投票

对于 sonar-maven-plugin 来说,它的工作原理是一样的。只需将这两个属性添加到 pom 文件即可:

<project xmlns="...>
     ...
    <properties>
         <sonar.analysis.mode>preview</sonar.analysis.mode>
         <sonar.issuesReport.html.enable>true</sonar.issuesReport.html.enable>
    </properties>
    ...
</project>

结果将位于目标/声纳文件夹中


4
投票

治理插件允许生成 PDF 报告。请参阅 http://docs.sonarqube.org/display/PLUG/Governance+plugin 了解更多详细信息。请注意,我在 SonarSource 工作,该公司开发此商业插件。

编辑

治理插件已被 7.x 版本中的 SonarQube Enterprise Edition 取代。


3
投票

要导出结果,您需要使用付费版本的SonarQube。免费版 SonarQube 不提供此功能。


0
投票

可以使用SonarQube的bitgarden报告插件以PDF(或可定制的ODT)导出报告https://www.bitegarden.com/sonarqube-report


0
投票

您可以使用这个插件,https://github.com/cnescatlab/sonar-cnes-report 根据您的 Sonarqube 版本,您可以检查兼容性矩阵并使用适当的插件版本 - https://github.com/cnescatlab/sonar-cnes-report#compatibility-matrix。 (这仅适用于 Sonarqube 社区版)

虽然此插件不提供将其生成为 PDF 的选项,但您仍然可以生成 Docx、xlsx、CSV、markdown 和文本文件格式


0
投票

可以使用 cnes reports 插件以 PDF 格式导出报告


-1
投票

要获取 html 报告,请将这些属性添加到您的 sonar.properties 文件中

sonar.analysis.mode=preview 
sonar.issuesReport.html.enable=true
© www.soinside.com 2019 - 2024. All rights reserved.