Documentation
¶
Overview ¶
Package reporter provides output formatting for lint results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONOutput ¶
type JSONOutput struct {
Results []JSONResult `json:"results"`
Summary Summary `json:"summary"`
}
JSONOutput is the top-level JSON structure.
type JSONResult ¶
type JSONResult struct {
Rule string `json:"rule"`
Message string `json:"message"`
Filename string `json:"filename"`
Line int `json:"line"`
Column int `json:"column"`
Severity string `json:"severity"`
}
JSONResult is the JSON representation of a lint result.
type Summary ¶
type Summary struct {
Total int `json:"total"`
Errors int `json:"errors"`
Warnings int `json:"warnings"`
Info int `json:"info"`
}
Summary contains aggregate counts.
Click to show internal directories.
Click to hide internal directories.