luplo.core.checks.rules.dangling_edge

Flag links whose target item has been soft-deleted.

Soft-deleted items stay on disk for history, but an active link pointing at one is almost always stale: either the caller kept a reference to a dead concept, or the delete should be reversed. This rule surfaces every such edge so the human can decide.

Attributes

Functions

check(→ list[luplo.core.checks.types.Finding])

Module Contents

luplo.core.checks.rules.dangling_edge.NAME = 'dangling_edge'
luplo.core.checks.rules.dangling_edge.DEFAULT_SEVERITY = 'warn'
luplo.core.checks.rules.dangling_edge.DESCRIPTION = 'Links pointing at soft-deleted items are almost always stale.'
async luplo.core.checks.rules.dangling_edge.check(conn: psycopg.AsyncConnection[Any], project_id: str) list[luplo.core.checks.types.Finding]
luplo.core.checks.rules.dangling_edge.RULE