Expand description
Per-language overrides of the global report view/stat lists.
The report’s column order, card-featured metrics, and JSON stats keys come
from the global metric catalog (code-ranker-graph/metrics/builtin.toml). A
language may patch those inherited lists from its <lang>.toml [report]
section — add a language-specific metric (e.g. Rust unsafe), drop some, swap
one in place, or replace the list wholesale — without restating the whole
catalog. ListPatch is the patch primitive; the parsing of the TOML
[report] section into these types lives in code-ranker-plugins.
Structs§
- List
Patch - A patch over an inherited ordered string list. Either a wholesale
replace_all(a plain TOML array) or a set of in-place edits applied to the inherited base, in this order:clear→remove→replace→after/before→prepend→add. The result is de-duplicated, keeping the first occurrence (order-stable). - Report
Override - A language’s overrides of the global report lists. Each field patches the inherited list from the metric catalog; an empty (no-op) patch leaves the global default untouched.