Vijay
Vijay

Reputation: 1026

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?

Upvotes: 18

Views: 80019

Answers (7)

Prashanth
Prashanth

Reputation: 1

It is possible to export the report in PDF with cnes reports plugin

Upvotes: 0

Aravind S
Aravind S

Reputation: 1

You can use this plugin, https://github.com/cnescatlab/sonar-cnes-report Based on your Sonarqube Edition, you can check the compatibility matrix and use the appropriate plugin version - https://github.com/cnescatlab/sonar-cnes-report#compatibility-matrix. (This works only in Sonarqube-Community Edition)

Though this plugin does not provide the option to generate it as PDF, you can still generate it in Docx, xlsx, CSV, markdown, and text file formats

Upvotes: 0

Luke Ambros
Luke Ambros

Reputation: 1

It is possible to export the report in PDF (or customizable ODT) with the bitegarden report plugin for SonarQube https://www.bitegarden.com/sonarqube-report

Upvotes: 0

Sudheer Singh
Sudheer Singh

Reputation: 664

To export results, you need to use paid version of SonarQube. This feature is not available for the free version of SonarQube.

Upvotes: 3

Simon Brandhof
Simon Brandhof

Reputation: 5136

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.

Upvotes: 4

Georg Moser
Georg Moser

Reputation: 706

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

Upvotes: 5

Mounika
Mounika

Reputation: 19

To get html reports add these properties to your sonar.properties file

sonar.analysis.mode=preview 
sonar.issuesReport.html.enable=true

Upvotes: -1

Related Questions