Solved

Java code statistics

Posted on 2003-10-30
3
200 Views
Last Modified: 2013-12-14
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!
0
Comment
Question by:rzvika2
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
dualsoul earned 125 total points
ID: 9649471
this tool gets this metric from your sources JavaNCSS:
http://www.kclee.com/clemens/java/javancss/

also you can use RefactorIT programm, which can collect this metric, and many others too.
http://www.refactorit.com/
0
 
LVL 7

Expert Comment

by:grim_toaster
ID: 9649791
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
0
 
LVL 15

Expert Comment

by:dualsoul
ID: 9649818
it's all inside RefactorIT :) but the author is not about commercial tool

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now