Files
old-holivud2/bin/rubocopfix.sh
2020-05-31 22:38:19 +02:00

5 lines
192 B
Bash
Executable File

#!/bin/bash
# routes file is there because if no files were modified rubocop would fix all
git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop --fix ./config/routes.rb