auto: 2026-11-18 07:18 (ESD_LAPTOP)

This commit is contained in:
2026-11-18 07:18:00 +09:00
parent 5eb42dfbd0
commit cce57c2984
9 changed files with 410 additions and 320 deletions
+7 -2
View File
@@ -330,10 +330,11 @@ def _labor_files() -> list[tuple[str, Path]]:
]
def labor_errors(whole, keys=None) -> list[str]:
def labor_errors(whole, keys=None, have=None) -> list[str]:
"""일위대가 · 사전조합 문서가 담은 로직 마스터에 없음(39-1d · 50-3) —
로직 지우기를 막음 · 어디서 쓰는지 알림 · 참조 줄(로직 없음)은 건너뜀. 전부터 깨진 것은
`save` 가 고치기 전 검사와 견주어 뺌. `keys` = 그 로직 키만 봄(빈 묶음이면 파일을 안 엶)."""
`save` 가 고치기 전 검사와 견주어 뺌. `keys` = 그 로직 키만 봄(빈 묶음이면 파일을 안 엶) ·
`have` = 있는 기초 키(저장 뒤 문서 · 855 L3 ⓐ — 주면 `whole` 대신)."""
out = []
if keys is not None and not keys:
return out
@@ -350,6 +351,10 @@ def labor_errors(whole, keys=None) -> list[str]:
key = str(one.get("로직") or "") if isinstance(one, dict) else ""
if not key or (keys is not None and key not in keys):
continue
if have is not None:
if key not in have:
out.append(f"{where} 「{name}」 이 로직 「{key}」 을 씀 — 거기서 먼저 뺌")
continue
try:
whole.logic(key)
except cm.mf.FormulaError: