Documentation
¶
Overview ¶
Package policy implements a Debian Policy focused linter for binary packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckInfo ¶
type CheckInfo struct {
Code string `json:"code"`
Name string `json:"name"`
Severity Severity `json:"severity"`
Description string `json:"description"`
Reference string `json:"reference,omitempty"`
}
CheckInfo is the public description of a check.
func CheckInfos ¶
func CheckInfos() []CheckInfo
CheckInfos returns the metadata of every registered check.
type Finding ¶
type Finding struct {
Code string `json:"code"`
Severity Severity `json:"severity"`
Message string `json:"message"`
Path string `json:"path,omitempty"`
Advice string `json:"advice,omitempty"`
}
Finding is one policy violation.
type Report ¶
type Report struct {
Artifact string `json:"artifact"`
Package string `json:"package"`
Version string `json:"version"`
Architecture string `json:"architecture"`
Checks int `json:"checks"`
Errors int `json:"errors"`
Warnings int `json:"warnings"`
Infos int `json:"infos"`
Findings []Finding `json:"findings"`
}
Report is the complete lint result for one artifact.
func (*Report) FormatText ¶
FormatText renders a human readable report.
Click to show internal directories.
Click to hide internal directories.