Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to measure Class Coupling metric with SonarQube

I have the 7.0.0.36138 SonarQube version.

I’m trying to find a way to measure the Class Coupling metric of a project with SonarQube. In other versions of SonarQube it was possible to do it.

In this version, I tried to look over all the possible measures of my project, but I couldn’t find the Class Coupling.

Thank you.

like image 523
Jali Avatar asked Oct 14 '25 03:10

Jali


1 Answers

Upgrade your SonarQube to the latest version. We recently reimplemented S1200 and it is available again. Please, not that SonarQube does not have class coupling metric built-in, just this rule will raise warnings if the coupling is above the specified threshold.

This rule was dropped a few years ago because its implementation generated too many false positives.

like image 118
Val Avatar answered Oct 19 '25 15:10

Val