Created
September 12, 2018 16:37
-
-
Save daninfpj/d04151052adb64de54fff5048f4b4a63 to your computer and use it in GitHub Desktop.
Run rubocop on git changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git status --porcelain | grep -E '^( |\?)(M|\?).*.rb' | cut -c4- | xargs rubocop -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment