Skip to content

Instantly share code, notes, and snippets.

@adilsoncarvalho
Created June 1, 2015 11:05
Show Gist options
  • Save adilsoncarvalho/a431adaa93aeff4aef6c to your computer and use it in GitHub Desktop.
Save adilsoncarvalho/a431adaa93aeff4aef6c to your computer and use it in GitHub Desktop.
Run rubocop just for the modified files
git diff --diff-filter=AM --name-only origin/master |grep '\.rb' |xargs --no-run-if-empty bundle exec rubocop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment