On Thursday, August 16, 2001, at 01:39  pm, Peter Donald wrote:

> On Thu, 16 Aug 2001 22:41, Berin Loritsch wrote:
>> 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.
>
> Theres a really kool tool that does that already ... from memory it is 
> called
> JRefactory and is at sourceforge. It is also fairly good at source 
> formatting
> and OK at refactoring. The only issue is that it is GPL however the author
> violates the GPL in a number of different ways so he may be convinced to 
> LGPL
> or similar.

-------------------------------------------------------------------------
Stuart Roebuck                                  [EMAIL PROTECTED]
Lead Developer                               Java, XML, MacOS X, XP, etc.
ADOLOS                                           <http://www.adolos.com/>I 
can confirm that the author was very open to requests when I approached 
him some time ago about incorporating the source formatting code into an 
Ant command.

Stuart.

-------------------------------------------------------------------------
Stuart Roebuck, BSc, MBA        Tel.: 0131 228 4853 / Fax.: 0870 054 8322
Managing Director
ADOLOS                                           <http://www.adolos.com/>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to