Created
February 6, 2017 10:15
-
-
Save raulmarcosl/d6810b5ea9557317195d9bc924d91158 to your computer and use it in GitHub Desktop.
Rspec and Rubocop with only modified files (cached or not)
This file contains 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 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