Static analysis?

Hello,

We've got a number of people using Ruby for a variety of tasks.  A few of us have RubyMine, and like it a lot!

One of the highly useful things that RubyMine does is show (via the gray underline) that a variable is unused.  So if I make a typo in a variable name, I can see immediately that I'm going to have problems.

We have a legacy code base of a lot of Ruby; it would be FANTASTIC to be able to run (in effect) a stand-alone tool to do this kind of static analysis.

Is there any way to do this using RubyMine?  I'm not asking to get around the license, it'd just be nice to be able to do the standard unix 'find' type command, and run an executable that would do the static analysis and report anything it finds.

Thanks!

3 comments
Comment actions Permalink

Hello Ya Chris,

You can invoke code inspection tool on the whole project using Code | Inspect Code menu item. You can configure your own inspection profiles including only inspections that you really need.
Learn more about it here: http://www.jetbrains.com/ruby/webhelp/inspections.html

Regards,
Oleg

0
Comment actions Permalink

Sorry for broken link, here is the correct one:
http://www.jetbrains.com/ruby/webhelp/inspections-2.html

Regards,
Oleg

0

Please sign in to leave a comment.