Install lefthook with `bundle install` Install git hooks with `lefthook install` See https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md for detailspull/10151/head
parent
eeb2b7eefa
commit
5951cf3e5f
@ -0,0 +1,14 @@ |
||||
# Lefthook configuration |
||||
# |
||||
# Add commit hooks with `lefthook install` |
||||
# |
||||
# Refer for explanation to following link: |
||||
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md |
||||
|
||||
pre-commit: |
||||
parallel: true |
||||
commands: |
||||
rubocop: |
||||
files: git diff --name-only --staged |
||||
glob: "*.rb" |
||||
run: bundle exec rubocop --force-exclusion {files} |
Loading…
Reference in new issue