Link to home
Start Free TrialLog in
Avatar of rzvika2
rzvika2

asked on

Java code statistics

Hi!
I need a program that counts the lines with/without comment.
I know that it is quite simple to do it, but is there a project that can do many kinds of statistics (such as count of words, chars, number of methods, and others...)
I'm not looking for commercial product.
Thanks in advanced!
ASKER CERTIFIED SOLUTION
Avatar of dualsoul
dualsoul

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of grim_toaster
grim_toaster

Currently the project I'm working on uses several open-source tools for obtaining metrics:

JCSC         (http://jcsc.sourceforge.net) - quality analysis tool
checkstyle (http://checkstyle.sourceforge.net) - for formatting checks of the code
JDepend    (http://www.clarkware.com/software/JDepend.html) - code dependencies
statCVS    (http://statcvs.sf.net)            - useful if you use CVS to get project statistics
PMD         (http://pmd.sourceforge.net) - VERY handy for spotting potential problems (unused variables, empty catch blocks, empty if statements, etc
JavaNCSS - (see above) - good for general metrics
it's all inside RefactorIT :) but the author is not about commercial tool