RuboBot runs RuboCop Auto-correct for the cop with the lowest offense count, making it easier to incrementally improve your codebase.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install rubobot
msg=`bundle exec rubobot` && git commit -am "$msg"
Bug reports and pull requests are welcome on GitHub at https://github.com/garethrees/rubobot.