0

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?

  • the question is, what are you trying to achieve with this values -> e.g. if you want to ensure code quality and using bitbucket, you might want to checkout sonar4stash, which will show you this information within your pull request (but does not necessarily use the new branch plugin) – Simon Schrottner May 23 '18 at 11:36
  • @SimonSchrottner the main reason is to get test coverage of new code. Does sonar4stash show this info? – Max Karpov May 24 '18 at 04:19

1 Answers1

0

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.

mc1arke
  • 1,030
  • 10
  • 22