How to get LCOM(Lack of Cohesion of Methods) metric in SonarQube 4.2?
Asked Answered
P

2

6

Is LCOM metric available with SonarQube 4.2 version ?

I need this metric to be added in my report, but i don't see its available.

Please let me know is there any specific jar to be added to get this metric. This metric was available in Sonar 3.7

Any help is appreciated.

Thanks, Sreekanth

Plunge answered 8/9, 2014 at 8:24 Comment(0)
C
6

There's no plugin for this, so if you want it, you'll have to develop it.

In any case, we've deprecated and removed this metric because we found it was difficult to compute it correctly and therefore to use it correctly. Maybe this could give you a hint on whether you should keep on considering it or not...

Codeine answered 8/9, 2014 at 14:32 Comment(0)
P
3

Since Sonar 4.1 LCOM4 metric has been removed because of too many false positives. See Remove support of LCOM4.

Preston answered 10/9, 2014 at 12:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.