This script runs Rubocop auto-correction on all files that were changed in the current branch.
Copy the script below to somewhere on your path (e.g. /usr/local/bin
), then make the file executable and run it.
# In a directory in your path
wget -qO- https://gist.githubusercontent.com/hschne/a292fc0e4d8c9a14bfbf2f131f4738d6/raw/d0f3801a963365851d581cea904968f36898cff4/rcf.sh > rcf
chmod +x rcf
# In your repository
rcf
``