Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Finding ¶
type Finding struct {
File string `json:"file"`
Line int `json:"line,omitempty"`
Function string `json:"function,omitempty"`
Message string `json:"message"`
Value float64 `json:"value"`
Limit float64 `json:"limit,omitempty"`
Severity Severity `json:"severity"`
}
Finding represents a single metric violation or observation.
func TopFindings ¶
TopFindings returns the top N findings sorted by value descending.
type Report ¶
type Report struct {
Sections []Section `json:"sections"`
}
Report is the top-level output.
func (Report) WorstSeverity ¶
WorstSeverity returns the worst severity across all sections.
Click to show internal directories.
Click to hide internal directories.