Skip to main content

Module origins

Module origins 

Source
Expand description

Origin taxonomy: id → label / color / base confidence.

Structs§

OriginDef

Constants§

ORIGINS

Functions§

base_confidence_for
color_hex_for
distribution_sort_key
Distribution-histogram ordering for the rule mix UI in the TUI: frequency / value mixed, finer-grained than sort_order. Stable ordering across releases is the contract — callers rely on this for chart layout.
format_api_error
Generic HTTP / network / timeout error classifier shared by domain-specific formatters (cli::format_cloud_err, cli::format_github_import_err). Returns a user-facing message; keeps the raw error in the output on the unrecognised path so triage info isn’t lost.
group_by_origin
Group rules by their origin string. Returns a BTreeMap so callers get deterministic key iteration without a sort step.
label_for
origin
parse_hex_rgb
sort_order
Recommended display priority: evidence-bearing origins (pr_review, extracted) sort first, everything else after. Used by rules list --view recommended and any other “high-value first” surface.