# Code analysing tools for Ruby

**URL:** <https://www.ruby-forum.com/t/code-analysing-tools-for-ruby/90425>\
**Category:** Ruby\
**Created:** [March 28, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/code-analysing-tools-for-ruby/90425 "2007-03-28T17:41:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjen\_van\_Schie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Arjen\_van\_Schie](https://www.ruby-forum.com/u/Arjen_van_Schie)\
**Post date:** [March 28, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/code-analysing-tools-for-ruby/90425/1 "2007-03-28T17:41:23Z")

</div>

I’m searching for code analysing tools for Ruby . I know some tools  
for Java and DotNet but i can’t seem to find much for Ruby.  
Things im interested in are metrics like coupling (fan-in, fan-out),  
complexity (McCabe), inheritance nesting levels etc.

The only tools I found so far are saikuro(only mccabe) and kwala  
(seems like a frontend for saikuro)

If you know of any other tools please let me know,

Arjen

---

<div class="post-metadata">

**Author:** ![Arjen\_van\_Schie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Arjen\_van\_Schie](https://www.ruby-forum.com/u/Arjen_van_Schie)\
**Post date:** [March 29, 2007, 5:07am UTC](https://www.ruby-forum.com/t/code-analysing-tools-for-ruby/90425/2 "2007-03-29T05:07:09Z")

</div>

Hello,

On Thu, 29 Mar 2007 00:40:05 +0900, Arjen van Schie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’m searching for code analysing tools for Ruby . I know some tools  
> for Java and DotNet but i can’t seem to find much for Ruby.  
> Things im interested in are metrics like coupling (fan-in, fan-out),  
> complexity (McCabe), inheritance nesting levels etc.
> 
> The only tools I found so far are saikuro(only mccabe) and kwala  
> (seems like a frontend for saikuro)

I believe Ryan D.’ ParseTree code has an ABC metric example.

Also, Kwala has a number of other options in addition to also being a  
front-end to Saikuro. For example, there is a hook for checking code  
duplication using PMD’s CPD. Plus there is code to analyse your  
require structure, which can act as a poor man’s coupling, but  
certainly writing specific coupling metrics would be interesting. To  
be honest I am hoping other people with help out in adding any missing  
and useful metrics to Kwala. Or at least, I hope you get some good  
responses so I can find some time to hook them into Kwala 😉

Cheers,  
Zev
