Expand description
Origin taxonomy: id → label / color / base confidence.
Structs§
Constants§
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
BTreeMapso 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 byrules list --view recommendedand any other “high-value first” surface.