ldapsaisie/.pre-commit-config.yaml
2023-02-10 11:59:18 +01:00

20 lines
529 B
YAML

# Pre-commit hooks to run tests and ensure code is cleaned.
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/digitalpulp/pre-commit-php.git
rev: 1.4.0
hooks:
- 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