renderbug-cpp/verify-configs.py
Torrie Fischer ce78825f66
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
woodpecker: add static analysis
2023-02-18 18:10:52 +01:00

15 lines
370 B
Python

Import("env")
import fnmatch
import os
import json
def verify_json(source, target, env):
for root, dirnames, files in os.walk("data"):
for file in files:
if file.endswith(".json"):
print("Validating " + root + '/' + file + '...')
json.load(open(root + '/' + file, 'r'))
env.AddPreAction("buildfs", verify_json)