Skip to content

Instantly share code, notes, and snippets.

@atsmith813
Created June 4, 2018 23:40
Show Gist options
  • Save atsmith813/5982c58a4ff4f24c0706b857d991782f to your computer and use it in GitHub Desktop.
Save atsmith813/5982c58a4ff4f24c0706b857d991782f to your computer and use it in GitHub Desktop.
Run Rubocop only on Ruby files with changes
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