refactor(domain)!: remove obsolete comparison representations

Compare complete function dossiers directly, remove unreachable truncation and collection wrappers, and preserve deterministic Unicode ordering. Require real external reference targets instead of display placeholders.

BREAKING CHANGE: function comparison results no longer advertise the unreachable truncated state or counter.
This commit is contained in:
morluto
2026-10-09 20:18:52 +08:00
parent 475a0f84da
commit 5510b27d7f
11 changed files with 224 additions and 468 deletions
+2 -7
View File
@@ -80,7 +80,6 @@ const symlinkTargetSchema = z
.min(1)
.refine(
(target) =>
target === "<outside-root>" ||
isPortableAbsoluteSymlinkTarget(target) ||
(!target.startsWith("/") &&
!target.includes("\\") &&
@@ -317,12 +316,8 @@ const checkSymlinks = (
if (entry.kind !== "symlink") continue;
const absolute = isPortableAbsoluteSymlinkTarget(entry.target);
if (
(entry.target_state === "external" &&
entry.target !== "<outside-root>" &&
!absolute) ||
(entry.target_state === "internal" &&
(entry.target === "<outside-root>" || absolute)) ||
(entry.target_state === "missing" && entry.target === "<outside-root>")
(entry.target_state === "external" && !absolute) ||
(entry.target_state === "internal" && absolute)
)
context.addIssue({
code: "custom",