Missing/wrong content in regulatory report

Hi team,

we are doing first tests with SonarQube v2025.1, standard experience.
I did a new scan for a project and afterwards downloaded the regulatory report for the newly updated branch. For some reason the csv files that should contain the open findings on new and open findings on overall code are incomplete or completely empty although there are issues in the respective branch.

In the attached screenshots you can see that there are lots of issues in the branch but only one is listed in the csv. For other projects the csv was even completely empty.

Kind regards, Wiebke

Hey @Wiebke

Code Smells are not included in the regulatory report. I think this is poorly documented and I’ll ping our Docs team about that.

Could that be what’s missing?

Hi Colin,

thanks for the fast answer. Yes, this could be the cause. At least it would match from the numbers.
But I think this does not make much sense. Indeed it makes the report useless for us.
Every auditor wants to see all open issues and not an already filtered list which is incomplete. This only causes questions and confusion.
We have a lot of Code Smell rules in our Quaility Profile which have severity Critical or even Blocker and I see no reason for don’t listing the related issues there.
More reasons against removal of Code Smells:
The csv file is called ā€˜open_findings_on_overall_code.csv’ which gives no hint that it is not a complete list of all issues.
The quality_profile.csv file contains all rules, also the ones related to code smells.
The report.pdf shows the complete number of open issues. Who should understand why some of them are missing in the list of issues?

Why are code smells not included in the issues lists?

Regards, Wiebke

Hey @Wiebke

Thanks for the feedback. I’ll pass it along to the right PM (and make sure the documentation accurately reflect how it works today).

For what it’s worth, the justification when the feature was developed was;

Currently, only operational risks are logged in the list of findings: bugs, vulnerabilities, and hotspots. Code smells are excluded from the list to not generate confusion about the risks introduced by the release.

Hello @Wiebke, thank you for your post!

We are currently reviewing our feedback on Regulatory Reports to bring some improvements in the next quarter. I will take this into our insights to review further and see if we need to adjust the report or the communication about what it reports on.

I would love to hear more from you regarding this topic, or any additional feedback you might have, if any (whether by text post or scheduling a chat). Would you be interested? If yes, I am sharing a calendar booking link here.

Best,
Simone

Hi @simone.diakova,

Good to hear that you are interested in our feedback to improve the regulatory reports.
I will think about it, prepare something and give you some feedback at the end of the week.

Regards, Wiebke

Hi Simone,

I did some tests and now I am ready to share some feedback regarding the content of the zip file. Most important thing for us would be to include all issues in the csv files which contain the issues lists. I added some more things that I’d like to see improved/changed.

open_findings_on_new_code.csv and open_findings_on_overall_code.csv

The names are currently misleading. The files should really contain all issues. Why exclude some?
The pdf in the Project Ratings section also shows the complete number which is confusing.
We have a lot of Code Smell rules in our Quality Profile which have severity Critical or even Blocker and I see no reason for don’t listing the related issues there.
Every auditor would also expect to see a full list of issues and not have some filter already applied.
Same applies to the resolved findings lists.

analysis_parameters.txt
sonar.sources seems to contain a list of all sources but only the very first source files are shown. The rest seems to be cut off. I don’t see much additional value in this information.

quality_gate.csv
The csv could additionally contain the name of the used Quality Gate

quality_profiles.csv
In addition to the information for every rule it could also contain the name of the used Quality Profiles.
The Impact columns are probably not from ā€œClassic Modeā€ and are a bit confusing as we can not see them in the GUI.

report.pdf
In the Files section the name of the pdf report itself is wrong or the file regulatory_report_summary.pdf is missing in the zip file.
In the Failed Conditions section the size of the text is normal if no condion is failed but very small if the failed condition is printed.
The report itself currently does not contain the information that the included issues lists are not complete - but anyhow in our opinion the lists should be adapted to contain all issues.

Please let me know if something is unclear or additional feedback needed.

Thank you @Wiebke , this is super helpful.

I have recorded your feedback into our notes and we will assess it as we work on the solution design for the reports.

Once we have a timeline or more information, I’ll be sure to send an update in this thread.

Thank you again for taking the time!

Best, Simone

hi @simone.divakova ,

we are currently facing the EXACT same issue at our company with the regulatory reports.
can you please provide information regarding the roadmap or changes that will be made (or already exist) in a future version of sonarqube? we use 2025.1 enterprise version.

thanks.

Hi @amidar and @Wiebke,

First of all, thank you again for your engagement on the community and for sharing the feedback!

I do have some news. While bringing regulatory reports to SonarQube Cloud, we also looked into quick improvements we could make for our SonarQube Server customers.

We have landed on the following, which is planned for SQS 2025.4 (July release):

What’s planned:

  • We will add Regulatory Reports to the Download button in the ā€˜Project Overview’ / ā€˜Project Information’ (a new, additional touchpoint for our users to improve discoverability). It will still exist in Project Information.
  • Adding a ā€˜Distribution of issues’ summary into the PDF report, based on issues breakdown by severity on new and overall code.
  • Adding ā€˜Maintainability’/code smell issues into the CSVs > in other words, all issues will be included in the report (without any filters)
  • We will add the quality gate name to the quality_gate.csv
    – we did not include the quality profile name in the quality_profile.csv as it would explode the csv file (multiple quality profiles could be hitting the same rule, creating major duplications). We want to be a bit more intentional around such a change and will investigate this a bit further first.

We’ll be making a proper community announcement for the release, but I’m already giving you a taste of what to expect. Please note that these changes will only be reflected in the newest upcoming release (2025.4), so you will need to upgrade to see these changes!

Please continue to voice your feedback, we appreciate it!

Best,
Simone
Product Manager for reporting & more

Thank you @simone.divakova,

I will have a look at the changes as soon as we have the new version available on our test server. Happy to provide feedback afterwards.

Regards, Wiebke