Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export results as a PDF report?

I am using SonarQube 5.6.3. How can I create a SonarQube analysis details report as a PDF form, an excel report, or an html formatted report?

No plugin seems to be available for this.

I was unable to generate an html file using below configuration:

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

How can I export these details from SonarQube?

like image 630
Vijay Avatar asked Jan 12 '17 10:01

Vijay


People also ask

How do I export a report to PDF?

In Desktop, select File > Export > Export to PDF. Report pages that are currently not visible, such as any tooltips or hidden pages, are not exported to the PDF file. While the export is being processed, a dialog appears that lets you know that the export process is underway.


2 Answers

For the sonar-maven-plugin it works the same. Just add these two properties to the pom file:

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

results will be in the target/sonar folder

like image 70
Georg Moser Avatar answered Dec 15 '22 00:12

Georg Moser


The Governance plugin allows to generate PDF reports. See http://docs.sonarqube.org/display/PLUG/Governance+plugin for more details. Please note that I work at SonarSource, the company developing this commercial plugin.

EDIT:

Governance plugin has been replaced by the SonarQube Enterprise Edition in versions 7.x.

like image 26
Simon Brandhof - SonarSource Avatar answered Dec 14 '22 22:12

Simon Brandhof - SonarSource