Pronto runner for Rubocop, ruby code analyzer. What is Pronto?
It's not mandatory to include gem into Gemfile
gem install pronto-rubocop-autocorrect
pronto run -c origin/master
You also can ensure running before push inside .git/hooks/pre-push
pronto run -c $1/master --exit-code
Configuring Rubocop via .rubocop.yml will work just fine with pronto-rubocop.
You can also specify a custom .rubocop.yml
location with the environment variable RUBOCOP_CONFIG
This gem patches only the modified lines in your source files. This means that the story does not deteriorate and not will happen unpleasant incidents as with rubocop -a