Search code examples
javatestingsonarqubecode-metrics

Afferent coupling in SONAR


I want to find in a given Java project, the classes with the highest afferent coupling.

I know that the metric is available in SONAR when you

  • drill down to a class from the dashboard, or
  • when you drill down package by package in the components view.

What's the quickest way to find this information within SONAR?


Solution

  • I'd suggest to define a filter in Sonar which only includes files. If you define a dashboard which contains this filter you can simply order the files by afferent couplings if you've added this column. enter image description here