Add pre-commit xmlint hook on doc change

This commit is contained in:
Benjamin Renard 2023-02-10 11:59:18 +01:00
parent 796e3287e9
commit f8c38dd3b6
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -7,3 +7,13 @@ repos:
- id: php-stan
files: ^src\/.*\.(php)$
args: ['--configuration=.phpstan/config.neon']
- repo: local
hooks:
- id: xmlint
files: ^doc\/.*\.(docbook)$
name: xmlint
entry: xmllint --valid --noout doc/LdapSaisie.docbook
pass_filenames: false
language: system
types: [text]
pass_filenames: false