Locating and eliminating dependencies

Sonar provides a widget to report on package and class dependencies. The following screenshot shows what Sonar reports on the commons-lang project. This is the entry point when you want to review highly coupled classes and locate dependencies that deteriorate the modularization of your packages.

Click on any number to navigate to Sonar's design matrix view. Alternatively, you can click on the Design link from the left menu.

Locating and eliminating dependencies

Sonar reports 5 dependencies between packages and 10 between files. The design matrix lists all project packages on the left,. The right-hand side section is separated into two triangular ...

Get Sonar Code Quality Testing Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.