pre-commit: Add a hook to check JSON files
This commit is contained in:
parent
4b34c07205
commit
1861948755
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user