docs: scaffold polisher-control foundation

This commit is contained in:
Nick Hermes
2026-05-26 16:23:04 +00:00
commit fa9c43fae8
52 changed files with 2224 additions and 0 deletions

27
scripts/validate_json.py Normal file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env python3
from __future__ import annotations
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
def main() -> int:
errors = 0
for path in sorted(ROOT.rglob("*.json")):
if ".git" in path.parts:
continue
try:
json.loads(path.read_text(encoding="utf-8"))
except Exception as exc:
print(f"JSON ERROR {path.relative_to(ROOT)}: {exc}")
errors += 1
if errors:
return 1
print("OK: all JSON files parse")
return 0
if __name__ == "__main__":
raise SystemExit(main())