I have run into a couple of plugins for Eclipse to compute several measure about the code you have in your project. The one I currently use is Eclipse Metrics Plugin.
This Eclipse plugin calculates various metrics for your code during build cycles and warns you, via the Problems view, of range violations for each metric. This allows you to stay continuously aware of the health of your code base. You may also export the metrics to HTML for public display or to CSV format for further analysis.
If you may also like to test Metrics, this one with some viz about the software. It is much more flexible and complete than the previous one.