Documentation
¶
Overview ¶
Package runner provides the check execution engine for the pre-commit system
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
Name string
Success bool
Error string
Output string
Duration time.Duration
Files []string
Suggestion string
CanSkip bool
Command string
}
CheckResult contains the result of a single check
type Options ¶
type Options struct {
Files []string
OnlyChecks []string
SkipChecks []string
Parallel int
FailFast bool
ProgressCallback ProgressCallback
GracefulDegradation bool
}
Options configures a check run
type ProgressCallback ¶
type ProgressCallback func(checkName, status string)
ProgressCallback is called during check execution for progress updates
type Results ¶
type Results struct {
CheckResults []CheckResult
Passed int
Failed int
Skipped int
TotalDuration time.Duration
TotalFiles int
}
Results contains the results of a check run
Click to show internal directories.
Click to hide internal directories.