Skip to content

ALL-REAC0001 · unreferenced_public_declaration

Count public declarations no reference in the repository reaches.

This is a deterministic rule for all languages. Read its implementation.

Read every declaration one module states and report a public one that no call, construction, inheritance, or import reaches anywhere in the repository, including its own file. A public name is a promise to the rest of the codebase, and a promise nobody took up is either dead code or an interface that was never wired. Either way it costs a reader who has to decide whether it matters.

A name-based dead-code search cannot answer this, because it cannot tell a shadowed local from the declaration it hides. A resolved graph can, which is why this rule needs one.

Continue with evidence and references, or open the examples.