Jey Geethan
Jey Geethan

Reputation: 2285

FxCop/StyleCop equivalent for ruby on rails?

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.

Upvotes: 1

Views: 366

Answers (2)

vezenkov
vezenkov

Reputation: 4155

The StyleCop equivalent is called RuboCop: https://github.com/rubocop/rubocop There is no exact equivalent for FxCop, but there are some tools like Scientist, rails_best_practices, Reek etc.

Upvotes: 0

nathanvda
nathanvda

Reputation: 50057

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 :)

Upvotes: 2

Related Questions