Get all files in a sonar project with issue count

Must-share information (formatted with Markdown):
Sonarqube Enterprise Edition v10.6

  • how is SonarQube deployed:
    Docker

  • what are you trying to achieve:
    we are trying to get data from the Sonar dashboard for each file in a project, including the file path and issue count (as shown in the screenshot below).
    sonar_file_issue_count
    Afterward, we aim to map this data to the actual monorepo application of ours to determine how many Sonar issues exist in each project across the application.

  • what have you tried so far to achieve this
    We have tried searching for the API which we can use to fetch this data but didn’t find any.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

Welcome to the community!

I suggest you take a look at the project Code tab, which lists the issue and Security Hotspot count at each level of the hierarchy.

 
HTH,
Ann