Thanks to all that have responded. I appreciate the feedback.
An old friend sent me the following which included JavaNCSS.
JavaNCSSFree provides basic metrics including McCabe metrics
RSM $195 provides extended metrics including McCabe metrics, plus code
analysis,commandl
Check out JavaNCSS (NCSS = "non-commenting source statements"). In addition
to simple lines of code in your application, it counts lines per method,
methods per class, and classes per package, to name just a few metrics. The
output is in a nice tabular format, easy to read and easy to analyze.
ht
http://www.dwheeler.com/sloccount/
This is the home page of ``SLOCCount'', a set of tools for counting physical
Source Lines of Code (SLOC)
-Sandra
[EMAIL PROTECTED]
Off-topic, but I just learned some awk...
>awk '/;[:blank:]*/ { count++ } /(if|for|while|switch).*\(/ { count++ }
END { print count; }' `find . -name \*.java`
This should get reasonably close. awk exists for Windows but I don't
know what the equivalent of find is. Probably faster to install
try
grep -c ";" *.java
-Original Message-
From: Lou Farho [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 8:11 AM
To: Struts user
Subject: Line of Code Counter?
Can anyone point me to a good utility for performing line of code counter
for Java and C++?
The counter needs to
5 matches
Mail list logo