Ruby Critic
Ruby Critic is a tool that detects and reports smells in Ruby code.
Installation
Add this line to your application's Gemfile:
gem "rubycritic"
And then execute:
$ bundle
Or just install it yourself:
$ gem install rubycritic
Usage
Running rubycritic
with no arguments will check all Ruby source files in the
current directory:
$ rubycritic
Alternatively you can pass rubycritic
a list of files and directories to check:
$ rubycritic app lib/foo.rb