Add example pre-commit hook

This commit is contained in:
Sven Weidauer 2022-05-25 20:38:40 +02:00
parent b5c1f4b55f
commit 721ded5e42

2
examples/pre-commit.rubocop Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
bundle exec git-format-staged -f "bundle exec rubocop -x -s {} --stderr" "*.rb" --verbose