Created
June 4, 2018 23:40
-
-
Save atsmith813/5982c58a4ff4f24c0706b857d991782f to your computer and use it in GitHub Desktop.
Run Rubocop only on Ruby files with 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
alias rubo_changes="git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment