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
1 changed files with 10 additions and 0 deletions

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