JavaNCSS – A source metric suite for Java
I have been looking after LOC counters to capture some metrics of the source code and found that JavaNCSS is a good match.
What is JavaNCSS ?
JavaNCSS is a command line utility which measures some standard source code metrics for the Java programming language. The metrics are collected globally, for each class and/or for each function.
What are the advantages ?
The following are some of the advantages that i have seen
- Support for Ant Tasks, so easy to integrate with build process
- Reports can be in Text, XML, HTML etc
- Support for Stylsheets and easy to get nice HTML reports
- Metrics at each level Package / Class / Method
- Cyclomatic Complexity Number
- List the number of packages / classes / functions / LOC counter at each level
Further Reading:
- JavaNCSS Home
- LOC Counters for C++ / Java on Joel Software Discussion group
- SLOC on Wikipedia
March 15, 2007 at 9:58 pm
The Ant tasks for JavaNCSS are ancient and produce warnings when metrics pass a threshold, but not reports. I’ve built my own version which I’m planning on releasing on sourceforge soon in the “PriNCSS” project.
I also plan on releasing a task to maintain a running graph with your build.
Alex Miller
March 15, 2007 at 11:16 pm
Good to hear that Alex. There are some issues with JavaNCSS and it does help to get going with intial metrics.
Thanks for your comments and eager to see PriNCSS.
Venkat.
February 28, 2013 at 12:30 am
If you are going for best contents like myself, simply visit this site all the time as it offers feature contents, thanks
June 2, 2013 at 10:01 pm
I hardly comment, but after browsing through a ton of responses on JavaNCSS – A
source metric suite for Java | Software Testing Blog. I actually do
have a few questions for you if you do not mind. Could it be simply me or do some
of these remarks come across like they are coming from
brain dead individuals? 😛 And, if you are posting on other sites,
I would like to keep up with everything fresh you have to post.
Would you make a list of the complete urls of all your shared sites like your twitter feed,
Facebook page or linkedin profile?