Calculating LCOM3?

1.1k Views Asked by At

Are there any opensource/free libraries that I can use to calculate the LCOM3 or LCOM4 Class Cohesion metric? I want to write a tool that reads in java files and calculate this metric.

2

There are 2 best solutions below

0
On BEST ANSWER

This metric is is available in Sonar.

0
On

The upcoming metrics2 release has the Henderson-Sellers version of LCOM ("LCOM3"). You can get a pre-release version of the Eclipse plugin at http://code.google.com/p/ext-c/downloads/list. The StateOfFlow metrics plugin also has it.