sonarqubesonarqube-web

Is it possible to get a new code analysis for every feature in sonarqube?


On the dashboard there is a cool block with new code analysis. I'd like to see something like this for every feature. I hoped to solve this using sonar-branch-community plugin, but it doesn't measure coverage of new code in short-lived branches. As for long-lived branches - I tried to make all the feature branches long-lived. There is an analysis of new code in this case, but it starts from first scan of this branch and there is no way to compare it to another long-lived branch (or is it?)

Is there a way to execute the new code analysis by features? May be it's possible to pass 2 scanning results to this widget to see the difference?


Solution

  • Newer versions of SonarQube support reporting of code coverage on branches and the introduction of new issues compared to the target long-lived branch.

    The SonarQube Community Branch Plugin supports the new branch scanning features introduced in SonarQube 7.2, although I don't believe SonarQube provides the charted/visual history of the branches, just the numeric values.