Skip to content

Instantly share code, notes, and snippets.

@padi
Created February 14, 2017 23:27
Show Gist options
  • Save padi/12ae2d68ee410f0b67efeaca63dc22b6 to your computer and use it in GitHub Desktop.
Save padi/12ae2d68ee410f0b67efeaca63dc22b6 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' | grep -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