How to configure SonarQube (preview mode) to comment less verbose

sonarqube

(Tobias Preuss) #1

Environment

I am using SonarQube Community Edition version 7.6 (build 21501) to report the analysis results for my Android/Gradle projects to the corresponding GitLab repository by using the Sonar GitLab Plugin.

The setup

I configured the Gradle sonarqube task with preview mode enabled in order to get reports only on the files I changed in a particular merge request.
The outcome of the analysis is a comment which is posted by SonarQube into GitLab. It looks like this:

Aiming at

  1. Is there a way to configure the comment output? It is too verbose for me.
    I would like to keep the upper part but hide the “Top 10 extra issues” lower part.
  2. Further, I am missing links for the upper part which take me to the actual issues.
  3. The lower part has those links as you can guess from the screenshot.

(Gilbert Rebhan) #2

Hi,
the preview mode is deprecated since SQ 6.6 and will be dropped with SQ 7.7
see https://jira.sonarsource.com/browse/SONAR-11670
For scanning the git changeset only, you will need the Branching Feature, which is part of
Developer Edition or higher.
With the Community Edition you might try the branch plugin for SonarQube Community Edition,
i never used it.
Regards,
Gilbert


(Tobias Preuss) #3

The msanez/sonar-branch-community plugin is not installed at the moment. The branch feature is available in SonarQube 7.6 by default if I understand you correctly.

How does one or the other help me to customize the output of the preview mode comment?


(G Ann Campbell) #4

Hi,

The output of preview mode is not customizable.

FYI, preview mode is long-since deprecated, and dropped in 7.7.

 
Ann