mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 08:40:11 -06:00
pre-commit: Add a hook to check JSON files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user