O'Reilly logo

Sonar Code Quality Testing Essentials by Charalampos Arapidis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required