> For the time being, I would place it in Excalibur's jar. In the future, I want
> to repurpose the Jakarta Avalon Testlet project to be the place for such things.
> The new version of the Testlet package would include classes like this one, metrics
> gathering classes (I have a C based SLOC counter that measures physical SLOC, logical
> SLOC, and number of instances a keyword is used). BTW, the acronym SLOC means
> Source Lines Of Code. I also want to put together a Complexity rating engine.
> Complexity is computed on a per method basis, and basically you start with 1, and
> for each loop (for/do/while), condition (if/else/switch/case), or exception
> handling (try/catch/finally) block you add one. That means that you add 1 for
> each time you encounter the those keywords really. High complexity ratings
> are used to identify which methods or functions are ripe for refactoring. Decent
> complexity levels are around 7 and below.
Under GPL you have JavaNCSS (do the same and more)
http://www.kclee.com/clemens/java/javancss/
And JDepend is licensed under the BSD License
(http://www.clarkware.com/software/JDepend.html).
JDepend is oriented Object Metrics and have a ant Task.
--
--------------------------------------------------------------
David "Dwayne" Bernard Freelance Developer (Java)
mailto:[EMAIL PROTECTED]
\|/ http://dwayne.java-fan.com
--o0O @.@ O0o-------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]