pre-commit: Add a hook to check JSON files

This commit is contained in:
Alex Turbov 2025-01-05 01:54:13 +04:00
parent 4b34c07205
commit 1861948755
No known key found for this signature in database
GPG Key ID: 8BEDB7D11F95D5E3

View File

@ -32,6 +32,13 @@ repos:
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-json
# NOTE Some tests have intentionally broken JSONs.
exclude: >-
(?x)Tests/(
CMakeLib/testCTestResourceSpec_data/spec13
| RunCMake/CTestResourceAllocation/invalid
)\.json
- id: check-yaml
- id: mixed-line-ending
- id: trailing-whitespace