util/.githooks
Stefan Goppelt d01242ae7c docs(dod): enforce markdownlint rule for markdown files 2026-03-29 15:14:33 +02:00
..
README.md docs(dod): enforce markdownlint rule for markdown files 2026-03-29 15:14:33 +02:00
pre-commit docs(dod): enforce markdownlint rule for markdown files 2026-03-29 15:14:33 +02:00

README.md

Git Hooks

This repository standard uses a project-local hooks directory:

  • .githooks/pre-commit

Activate it once per repository:

git config core.hooksPath .githooks

The pre-commit hook validates for staged .sh files:

  • executable bit in Git index (100755)
  • LF line endings (no CRLF)

The pre-commit hook also validates staged .md files with markdownlint:

  • no markdownlint errors or problems
  • requires markdownlint CLI in PATH (for example via npm install --global markdownlint-cli)