HealthComponent

data class HealthComponent(val label: String, val penalty: Int, val maxPenalty: Int, val detail: String)(source)

One penalty applied to the whole-project health score, with the reason it fired.

The report lists these under the score so it can be read as "38 lost to cycles and blocking violations" rather than as an opaque verdict.

Parameters

label

Short name of the signal, e.g. "Cycles".

penalty

Points deducted, already capped at maxPenalty.

maxPenalty

The most this signal can ever deduct.

detail

One-line explanation of what produced the penalty.

Constructors

Link copied to clipboard
constructor(label: String, penalty: Int, maxPenalty: Int, detail: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard