Getting code statistics from big projects

Mite Mitreski picture Mite Mitreski · Nov 21, 2009 · Viewed 8.1k times · Source

I'm interested in code statistics tools. Specifically I need to get statistics on Java EE code, but any code analyzer would do. Should I start creating one of my own or is there some project that you have used?

ex. LOC, number of classes , libs ...

What is your experience ?

Answer

Romain Linsolas picture Romain Linsolas · Nov 21, 2009

As explained by jitter, Sonar is definitively the tool that you are looking for. Note that this tool used JavaNCSS, but since the version 1.9, they have their own internal tool (called SonarSquid) that is really totally compatible with Java 1.5 or 1.6 projects.

alt text http://sonar.codehaus.org/wp-content/uploads/2009/05/sonar-squid.jpg

In addition, you can monitor a complete set of projects.

You can access the Nemo demo instance to have a complete overview of the tool!