semantic update

This commit is contained in:
2026-02-24 21:08:12 +03:00
parent 7a12ed0931
commit 95ae9c6af1
32 changed files with 60376 additions and 59911 deletions

20
test_analyze.py Normal file
View File

@@ -0,0 +1,20 @@
import json
with open("semantics/semantic_map.json") as f:
data = json.load(f)
for m in data.get("modules", []):
if m.get("name") == "backend.src.core.task_manager.persistence":
def print_issues(node, depth=0):
issues = node.get("compliance", {}).get("issues", [])
if issues:
print(" "*depth, f"{node.get('type')} {node.get('name')} (line {node.get('start_line')}):")
for i in issues:
print(" "*(depth+1), "-", i.get("message"))
for c in node.get("children", []):
print_issues(c, depth+1)
for k in ["functions", "classes", "components"]:
for c in node.get(k, []):
print_issues(c, depth+1)
print_issues(m)