Skip to content

Instantly share code, notes, and snippets.

@kim-nguyenkhn
Last active February 12, 2022 18:31
Show Gist options
  • Select an option

  • Save kim-nguyenkhn/252a6134c53ef4dd97c8b7bf62e5f56e to your computer and use it in GitHub Desktop.

Select an option

Save kim-nguyenkhn/252a6134c53ef4dd97c8b7bf62e5f56e to your computer and use it in GitHub Desktop.
Rubocop git diff'ed files
# Rubocop git diff'ed files
alias rubostaged="bin/rubocop -a `git diff --name-only --staged | grep '\.rb'`"
alias rubodiff="bin/rubocop -a `git diff --name-only | grep '\.rb'`""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment