Skip to content

Instantly share code, notes, and snippets.

@padi
Created February 14, 2017 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save padi/270548ca5927d5cc9c9c4f2ee7f87092 to your computer and use it in GitHub Desktop.
Save padi/270548ca5927d5cc9c9c4f2ee7f87092 to your computer and use it in GitHub Desktop.
Check rubocop against file changes in your feature-branch (compared to origin/master)
git diff origin/master --name-only --diff-filter=ACMR | grep '.rb' | ag -v 'schema' | xargs rubocop -c .rubocop.yml --force-exclusion --display-cop-names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment