Documentation ¶
Overview ¶
Package coverage will generate a coverage report for CODEOWNERS in the repository.
Index ¶
Constants ¶
View Source
const (
// ReportFormatJSON is a constant representing the JSON format for a Report object
ReportFormatJSON reportFormat = "json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct { RemoteURL string `json:"remote_url"` SHA string `json:"sha"` CoveredFilesCount int `json:"covered_files_count"` TotalFilesCount int `json:"total_files_count"` CoverageRatio float64 `json:"coverage_ratio"` }
Report contains information on the codeowner coverage of files in a repository
func NewCoverageReport ¶
NewCoverageReport produces a coverage report from the given repository Modifies state of the given repository by performing a git-clean.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
codeowners-coverage
Package main is the command line interface to package coverage
|
Package main is the command line interface to package coverage |
internal
|
|
codeowners
Package codeowners contains logic for loading and parsing patterns in CODEOWNERS files
|
Package codeowners contains logic for loading and parsing patterns in CODEOWNERS files |
git
Package git wraps functionality in the go-git package to manipulate Git repositories
|
Package git wraps functionality in the go-git package to manipulate Git repositories |
Click to show internal directories.
Click to hide internal directories.