Skip to content

Instantly share code, notes, and snippets.

@everm1nd
Last active January 8, 2020 04:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save everm1nd/971c394cb91adbfa9ff80d3146ab5dd3 to your computer and use it in GitHub Desktop.
Save everm1nd/971c394cb91adbfa9ff80d3146ab5dd3 to your computer and use it in GitHub Desktop.
Run Rubocop locally for changed files only
git status --porcelain | grep -v "D " | cut -c4- | grep "\.rb\|rake" | xargs rubocop -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment