Files
oam/snippets/lefthook.yml
2025-02-10 22:23:29 +01:00

8 lines
215 B
YAML

---
pre-commit:
commands:
check-unwanted-data:
run: >-
! ( grep -Hin -e 'example.org' -e '012345678901' {staged_files} )
|| ( printf %b '\n' 'found possibly unwanted data' >&2 && false )