Skip to content

Macros

How to add a macro

Edit a Confluence page and open Insert elements, or type / in the editor. Search for SonarQube to see the available macros.

SonarQube Connector Macro

Select a configured SonarQube connection and choose the resources to display. The dashboard macro offers these settings:

SonarQube Connector Macro settings

Setting multiple resource keys

In Resource Key, enter a comma-separated list of SonarQube project keys. A long list can increase the page load time.

This is very useful if your team manages several software components and you want to have all of them in your Confluence page.

SonarQube Connector for Confluence will aggregate all the metrics into a single view.

This new view provides:

How do we compute the global ratings?

If you configure multiple projects then you will get a global rating for the main quality metrics: size, reliability, security and maintainability:

SonarQube Connector Badge

You have to complete these parameters:

SonarQube Connector Badge settings

SonarQube Connector Quality Profile

Use the SonarQube Connector Quality Profile macro to display the active rules for a SonarQube quality profile.

SonarQube Connector Quality Profile settings

You have to complete these parameters:

SonarQube Connector Issue Breakdown

Use the SonarQube Connector Issue Breakdown macro to display issues from the selected projects.

SonarQube Connector Issue Breakdown settings

You have to complete these parameters:

SonarQube Connector ASVS report

Use the SonarQube Connector ASVS macro to display SonarQube findings organised by the OWASP Application Security Verification Standard.

You have to complete these parameters:

SonarQube Connector ISO 5055 report

Use the SonarQube Connector ISO 5055 macro to display findings related to code quality and architecture under the ISO 5055 standard.

SonarQube Connector ISO 5055 report

You have to complete these parameters:

SonarQube Connector Top 25 CWE report

Use the SonarQube Connector Top 25 CWE macro to display findings mapped to the CWE Top 25 software weaknesses for the selected reporting year.

SonarQube Connector Top 25 CWE report

You have to complete these parameters:

SonarQube Connector OWASP Top 10 report

Use the SonarQube Connector OWASP Top 10 macro to display findings grouped by web application security risk for the selected reporting year.

SonarQube Connector OWASP Top 10 report

You have to complete these parameters: