infrastructure/tools/check-json-syntax

17 lines
223 B
Plaintext
Raw Permalink Normal View History

2025-09-26 01:00:15 +02:00
#!/usr/bin/env bash
## consts
dir_base="."
## exec
flaws=0
for path in $(find ${dir_base} -name "*.json" | sort)
do
echo "-- ${path}"
python3 -m json.tool ${path} > /dev/null || ((flaws+=1))
done
test ${flaws} -eq 0