RuboCop: A Ruby static code analyzer, based on the community Ruby style guide.
GitHub: https://github.com/bbatsov/rubocop
install
gem install rubocop
usage
Running rubocop with no arguments will check all ruby source files in the current directory:
$ rubocop
Alternatively you can rubocop a list of files and directories to check:
$rubocop directories files