Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonar 5.1 Issues list - How to group by Issue Type

How can we identify the most common types of issues in a project in our current code base.

We have recently upgraded from Sonar 4.5 to 5.1

In 4.5 we used to view the issues list in a specific project, and the issues were grouped by issue type. For instance in one project the rule "Use a logger to log this exception" might be the most common critical rule with 45 violations. We could then use that information to drive improvement efforts.

In 5.1 we are now presented with a long list of issues with no apparent way of group them.

The ability to see what type of violation was most common was also useful in allowing us to see where best to direct our efforts in terms of remedial action.

like image 403
Paul Henry Avatar asked Mar 16 '23 00:03

Paul Henry


1 Answers

You can do that easily on issue page of your project : just click on the rule facet and you should have the list of most violated rules.

See http://nemo.sonarqube.org/issues/search#resolved=false|projectUuids=b38e4f29-df5f-491e-9118-a0a4f5cda406 for instance and click on "Rule" facet.

like image 52
benzonico Avatar answered Apr 08 '23 21:04

benzonico