Documentation
¶
Overview ¶
Package finding is skillet's shared diagnostic type: one Diagnostic that any linter or gate emits, carrying a Severity, an optional Category, an optional location Path, and a human Message. It replaces the per-tool finding types (exegesis lint's {Severity, Message}, modelith lint's four-field form) with one shape. A finding is a static diagnostic — not an adjudication hypothesis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sort ¶
func Sort(ds []Diagnostic)
Sort orders diagnostics deterministically by severity, then category, then path, then message — so identical inputs always render in the same order. SeverityError sorts before SeverityWarning ("error" < "warning").
Types ¶
type Diagnostic ¶
type Diagnostic struct {
Severity Severity `json:"severity"`
Category string `json:"category,omitempty"`
Path string `json:"path,omitempty"`
Message string `json:"message"`
}
Diagnostic is one finding about an artifact.
type Result ¶
type Result struct {
Diagnostics []Diagnostic `json:"diagnostics"`
}
Result accumulates diagnostics from one or more checks.
func (*Result) HasBlocking ¶
HasBlocking reports whether any diagnostic is blocking (Severity error).