views:

26

answers:

1

Is there any static code analysis tools for ruby on rails? I am looking for something on the lines of "tests vs code analysis" as well as rules based analysis provided by FxCop.

As an additional feature, an integration with hudson would be cool too.

+2  A: 

rake stats will give you a simple comparison based on line count. Rcov will give you a good picture of your test-coverage. But you should absolutely check out metric-fu! Includes all kinds of packages, all analysis tools can be run from with a simple rake metrics:all, and generates nice reporting ... in short: awesome ;)

Hope this helps :)

nathanvda
ah metric_fu.. rightly named :)
Xinxua