Documentation
¶
Overview ¶
Package lint validates BubbleFish Nexus configuration and warns about dangerous or suboptimal settings. It implements the `bubblefish lint` CLI command and the /api/lint admin endpoint.
Reference: Tech Spec Section 6.7.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Severity Severity `json:"severity"`
Check string `json:"check"`
Message string `json:"message"`
}
Finding is a single lint diagnostic.
type Result ¶
type Result struct {
Findings []Finding `json:"findings"`
}
Result holds all findings from a lint run.
func Run ¶
Run executes all lint checks against the loaded configuration. The configDir is used for file-existence checks (compiled sigs, etc.).
Reference: Tech Spec Section 6.7.
func (*Result) WarningCount ¶
WarningCount returns the total number of findings (both warn and error).
Click to show internal directories.
Click to hide internal directories.