Skip to main content

Module deadcode

Module deadcode 

Source
Expand description

What a dead-code run reports.

These types live beside the clone models rather than in the analyzer that produces them, so the reporters can render a dead-code run without depending on the engine that performed it — the same split the clone side already has between models and cpd-reporter.

Structs§

CategoryCount
Finding
A single piece of dead code.
Report
Everything a run produced.
Stats
Run-level counters, for reporters and for the exit-code gate.

Enums§

Category
A class of finding. Every category can be switched off independently because they carry very different false-positive rates: unused imports are nearly always safe to act on, unused class members in a dynamic codebase are not.
ConfidenceLevel
Coarse confidence bucket.
Reason
Something about the code that makes a finding less certain. Each reason subtracts a fixed number of points; the reasons travel with the finding so a reader can judge the score rather than trust it.
SymbolKind
What a declaration is. The kind drives both the report wording and the confidence penalties: an exported type alias that nothing imports is a safer deletion than a class method that nothing appears to call.