Documentation
¶
Overview ¶
Package finding defines the result type every rule evaluation produces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Finding ¶
type Finding struct {
RuleID string
Severity Severity
Path string
Line int
Message string
// Suppressed marks a finding exempted by an inline formwork:allow marker
// or an allowlist entry (spec §5). Suppressed findings never affect the
// exit code; lint consumes them for staleness detection.
Suppressed bool
SuppressedBy string // "marker" or "allowlist:<file>:<line>"
}
Finding is one rule violation. Path is repo-relative and slash-separated; it is empty for scope-level findings. Line is 1-based and zero when the finding is not anchored to a line.
func Unsuppressed ¶
Unsuppressed returns the findings not marked Suppressed, preserving order.