8.2.  Examining Issues

The Issues view displays information about the found issues such as their severity, category, affected elements and the associated provider. The upper half of the view displays the affected elements in a tree, following the file structure of the code and the Sonargraph system files. The information about the number of affected elements, and numbers of issues of error, warning and info severity is aggregated for each element and its children, making it easier to identify hotspots, i.e. modules with a high number of detected issues. The list of issues is shown in the lower part for the selected elements and their children. If you want to see all issues of the system, either click on the white space below the tree or select the System and Installation root nodes.

The presentation mode (flat, hierarchical, mixed) of the elements tree can be switched via the view options menu in the top-right corner.

NOTE

The numbers of issues and affected elements on a parent node are not necessarily the sums of the values of its children. This is caused on the one hand by "composite" issues, e.g. "Duplicate Code Block" and "Cycle Group" that affect several elements, but are only counted once for common parents of the affected elements. And on the other hand, the parent element itself might also be involved in issues.

Issues View
Figure 8.2. Issues View

Context menu and double click interactions give you options to examine the issue in a more suitable view. They also allow to "ignore" or "fix" the issue by either ignoring it or creating a fix request for someone in the development team. These requests are called "Resolutions" in Sonargraph and are covered in depth in the following sections.

In case of having too many issues, you can apply filters using the “Filter...” view option on the upper-right corner where several criteria are offered to reduce the amount of visible issues:

Filter Issues
Figure 8.3. Filter Issues


A filtered view is indicated by a yellow background.

TIP

A text filter can also be applied to the table displaying the issues. See Section 7.1.4, “Tables” for details.

You can also focus on issues for certain code regions by defining an Issue Filter as described in Section 7.7.1, “ Definition of Filters, Modules and Root Directories ”.