How to export code smells?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • Enterprise Edition Version 10.2.1 (build 78527)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
    How to export code smells?Are there plugins that can do this?
  • what have you tried so far to achieve this
    The csv file exported in the Regulatory Report does not contain code smells data.
    Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Is there a web api that supports this?

Hey there.

You’re correct – the regulatory report doesn’t include Code Smells. This will be more clearly documented in SonarQube 10.3 and we’re exploring a better message in the UI.

As a user of Enterprise Edition, you have access to the GET api/projects/export_findings Web API, documented in the Web API documentation. This will help you dump all issues of a project, including code smells.

Of course, the classic GET api/issues/search Web API can help you as well.

Thank you. That’s really helpful.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.