Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/review/domain/Ranking

Pure (DOMAIN-001): the order of the list, and the sentence that explains it (the ordering rule is visible, not a hidden score).

Cockpit client (features), next. Source: ui/client/features/review/domain/Ranking.ts.

Functions#

orderExplanation()#

orderExplanation(order): string

Defined in: ui/client/features/review/domain/Ranking.ts:8

Parameters#

order

ListOrder

Returns#

string


rankBranches()#

rankBranches(rows, order): BranchRow[]

Defined in: ui/client/features/review/domain/Ranking.ts:17

Ranked copy of the rows. Ties fall back to the newest commit, then the name, so the order is stable.

Parameters#

rows

BranchRow[]

order

ListOrder

Returns#

BranchRow[]


riskScore()#

riskScore(a): number

Defined in: ui/client/features/review/domain/Ranking.ts:6

How many indicators need attention, then how many findings: the number the list is ranked by.

Parameters#

a

AnalysisDone

Returns#

number