type
Risk
A stable machine-readable planning finding.
Properties
| Property | Type | Description |
|---|---|---|
Code | string | Code is a stable identifier suitable for CI policy. |
Level | RiskLevel | Level classifies whether the finding is informational, risky, or destructive. |
Message | string | Message explains the concrete impact and required review. |
How it works
Risk levels are notice, warning, and destructive. CI can use Code and Level; Message explains the concrete review requirement.
Full signature
type Risk struct {
// Code is a stable identifier suitable for CI policy.
Code string `json:"code"`
// Level classifies whether the finding is informational, risky, or destructive.
Level RiskLevel `json:"level"`
// Message explains the concrete impact and required review.
Message string `json:"message"`
}