Skip to content

Instantly share code, notes, and snippets.

@raulmarcosl
Created February 6, 2017 10:15
Show Gist options
  • Save raulmarcosl/d6810b5ea9557317195d9bc924d91158 to your computer and use it in GitHub Desktop.
Save raulmarcosl/d6810b5ea9557317195d9bc924d91158 to your computer and use it in GitHub Desktop.
Rspec and Rubocop with only modified files (cached or not)
alias rbcm="git diff --name-only | grep '.rb' | xargs rubocop"
alias rbcc="git diff --cached --name-only | grep '.rb' | xargs rubocop"
alias rspecm="git diff --name-only | grep '.rb' | xargs rspec"
alias rspecc="git diff --cached --name-only | grep '.rb' | xargs rspec"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment