Download PDF Reports - SonarCloud

Hi,

We are using SonarCloud to evaluate our code. We wanted to check if it is possible to obtain a PDF report of all the findings per-project. This report should include all the issues as available on the SonarCloud portal. The current report we are able to fetch only contains a high level summary of the identified issues.

Please help. Looking forward to any pointers.

Thanks!

Rohit

This is not possible to export issues in a PDF report - simply because we think it does not make sense at all. Issues are meant to target developers, and developers want this information to be actionnable. Instead, developers should install SonarLint in their IDE and connect it to SonarCloud.

Hi @Fabrice_Bellingard,

for auditing purposes we’d like to create an export of the static code analysis for every release we make. Is there any way how to export the results of a scan? Any format (txt, pdf, html, etc.) would be fine.

Cheers,
Patrick

1 Like

Hi Patrick, the WS API gives access to everything you want - so you can export all the data you want and generate out of it whatever report which makes sense for you.

@Fabrice_Bellingard how far back can we store the sonar cloud reports?

@shruti_rao By default, when you don’t flag specific analyses with versions or events, SonarCloud keeps history up to 2 years. For analyses that have at least a version or an event attached to it, they will be kept during 10 years.

Hi @Fabrice_Bellingard

I see there is an option to download it as a report:

How does one get to this view?

Thank you in advance!

Hi @Carike,

the Reporting feature is only available in Enterprise and Data Center Editions of SonarQube ($$)

And just to add, the report will not be the extract of the issues that are raised into the tool, but a macro overview of the projects and portfolios you have in your SonarQube instance, mainly dedicated to the management teams that don’t want to go into SonarQube server to see the metrics of their teams/B.U./projects.

HTH,
Carine

1 Like

Fabrice, I can appreciate you think that SonarCloud should be only a dev tool, but the truth is a lot of people have to be able to see the same thing (for coordination across teams) and may not be able to have an on-prem solution for several reasons. The fact you can’t have a hosted solution (like SonarCloud) and have reporting for your compliance and QA people seems like a missed opportunity. Even if people had to pay for it, so be it.
The very least, could you please elaborate on how to us the WS API to create some sample exports? The documentation is not super clear nor are there examples. Thanks, this would really help us out.

5 Likes

Hi Chris!

This may be of your interest. The bitegarden team has released a new product to generate PDF reports from SonarCloud (same reports that the plugin for SonarQube).

It is a commercial product but maybe it fit your needs.

Best regards.

1 Like

Hi @Carine_Bayon i am using sonar cloud enterprise edition but unable to download/extract/generate any pdf of scanned report…
not even found any download button.

kindly assist me…

thank you…

hi @IbrarAsim1020
Actually, SonarCloud has no “edition”, it’s the same product for everyone, and it doesn’t offer Report options. It’s not the same as SonarQube Enterprise Edition which offers reporting features.
If you need to extract any information from SonarCloud, you should use the webAPI.

Carine