Sometimes you only want to lint files that reside in git staging area. This is as simple as:

rubocop `git diff --cached --name-only`

This protip has been written in 203 seconds