frontend_nyla/scripts/list_t_errors.py
2026-04-09 00:11:35 +02:00

17 lines
431 B
Python

import re
from pathlib import Path
text = Path(__file__).resolve().parent.parent / "tsc-out.txt"
content = text.read_text(encoding="utf-8")
files = sorted(
{
m.group(1)
for line in content.splitlines()
if "Cannot find name 't'" in line
for m in [re.match(r"^(src/[^\(:]+\.tsx)", line)]
if m
}
)
for f in files:
print(f)
print("TOTAL", len(files), file=__import__("sys").stderr)