Finding

data class Finding(val rule: String, val direction: CompatibilityDirection, val severity: Severity, val contract: String, val detail: String, val message: String, val fixHint: String?, val change: Change)

A classified compatibility judgment about a single Change in a single direction: the rule it triggered, its severity, and human-facing text.

direction is always CompatibilityDirection.BACKWARD or CompatibilityDirection.FORWARD — never FULL — because a FULL check is evaluated as its two constituent directions, each of which can differ.

Constructors

Link copied to clipboard
constructor(rule: String, direction: CompatibilityDirection, severity: Severity, contract: String, detail: String, message: String, fixHint: String?, change: Change)

Properties

Link copied to clipboard

The underlying structural change this finding was derived from.

Link copied to clipboard

Serial name of the affected contract (or the config key for config changes).

Link copied to clipboard

What changed, e.g. field 'amount'.

Link copied to clipboard
Link copied to clipboard

A concrete suggestion for keeping compatibility, if any.

Link copied to clipboard

Human explanation of the change and why it matters in this direction.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

The first entry in accepted that sanctions this finding, or null if none does.

Link copied to clipboard

Whether this finding is sanctioned by any entry in accepted.