Add example pre-commit hook
This commit is contained in:
parent
b5c1f4b55f
commit
721ded5e42
1 changed files with 2 additions and 0 deletions
2
examples/pre-commit.rubocop
Executable file
2
examples/pre-commit.rubocop
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
bundle exec git-format-staged -f "bundle exec rubocop -x -s {} --stderr" "*.rb" --verbose
|
Loading…
Add table
Reference in a new issue