This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run rubocop only for the latest commit. For cases when you forgot to check rubocop before committing. | |
| alias rh='git diff-tree --no-commit-id --name-only -r HEAD | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop' | |
| Run rubocop only for changed files. | |
| alias rl='git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop' |