Files
openproject/lefthook.yml
T
2022-02-08 15:59:39 +01:00

15 lines
375 B
YAML

# Lefthook configuration
#
# Add commit hooks with `bundle exec 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}