MCPcopy Create free account
hub / github.com/Qinbf/groundmap / fmt_validate

Function fmt_validate

scripts/k.py:2423–2435  ·  view source on GitHub ↗
(result, file_path)

Source from the content-addressed store, hash-verified

2421
2422
2423def fmt_validate(result, file_path):
2424 warnings = result.get("warnings") or []
2425 if result["valid"] and not warnings:
2426 print(f"✅ {file_path} frontmatter 合规")
2427 return
2428 if result["valid"]:
2429 print(f"⚠️ {file_path} frontmatter 合规但有警告:")
2430 else:
2431 print(f"❌ {file_path} frontmatter 不合规:")
2432 for err in result["errors"]:
2433 print(f" - {err}")
2434 for w in warnings:
2435 print(f" ⚠ {w}")
2436
2437
2438def fmt_source_issues(items: list[dict]):

Callers 1

_main_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected