A Ruby static code analyzer, based on the community Ruby style guide.View on GitHub
RuboCop is a Ruby code style checker based on the community-driven Ruby Style Guide.
RuboCop supports MRI 1.9+, JRuby and Rubinius in 1.9+ modes.
RuboCop's installation is pretty standard:
$ gem install rubocop
rubocop with no arguments will check all Ruby source files in the current directory:
Alternatively you can
rubocop a list of files and directories to check:
$ rubocop app spec lib/something.rb
-h for available command-line options.