It has these checks built into it so far:

ClassNameCheck - Check that class names match convention.
CyclomaticComplexityBlockCheck - Check that the cyclomatic complexity
of all blocks is below the threshold.
CyclomaticComplexityMethodCheck - Check that the cyclomatic complexity
of all methods is below the threshold.
EmptyRescueBodyCheck - Check that there are no empty rescue blocks.
ForLoopCheck - Check that for loops aren't used (Use Enumerable.each instead)
MethodNameCheck - Check that method names match convention.
MethodLineCountCheck - Check that the number of lines in a method is
below the threshold.

It's pretty easy to write new ones.  Have a look at
http://checkstyle.sf.net/ for inspiration.  Now that it's stable, I'll
start chipping away at adding more.

-- Marty

On Wed, Sep 10, 2008 at 11:52 PM, Mike Bailey <[EMAIL PROTECTED]> wrote:
> Nicely presented and it worked first time. Well done!
>
> Does it mainly look for the number of paths through a method?
>
> - Mike
>
> On Wed, Sep 10, 2008 at 9:13 PM, Marty Andrews <[EMAIL PROTECTED]>
> wrote:
>>
>> Hi all,
>>
>> I've just released a new gem called Roodi (Ruby Object Oriented Design
>> Inferometer) that I thought some of you might find interesting.  It
>> parses your Ruby code and warns you about design issues you might
>> have.  People with a background in Java development might recognise
>> the similarity in it's design to Checkstyle.  It's really easy to run
>> and gives you instantly gratifying feedback on some ares of your code
>> that you might want to clean up.
>>
>> There's a summary of Roodi along with examples on my blog at:
>>
>>  http://www.martyandrews.net/blog/2008/09/first_official_release_of_rood.html
>>
>> Roodi is officially published at:
>>        http://roodi.rubyforge.org/
>>
>> ...and the code is at:
>>        http://github.com/martinjandrews/roodi/tree/master
>>
>> I hope you find it useful enough to run on all your Ruby development
>> projects :)
>>
>> Cheers,
>>
>> Marty Andrews
>>
>> p: +61 407 004 570
>> e: [EMAIL PROTECTED]
>> w: http://marty.cogentconsulting.com.au
>>
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to