runner

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// MaxUint defines the max unsigned int value.
	MaxUint = ^uint(0)
	// MaxInt defines the max signed int value.
	MaxInt = int(MaxUint >> 1)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRunner

type CheckRunner struct {
	// contains filtered or unexported fields
}

CheckRunner runs all registered checks in parallel. Needs to be initialized via NewCheckRunner func.

func NewCheckRunner

func NewCheckRunner(log logrus.FieldLogger, co []codeowners.Entry, repoPath string, treatedAsFailure check.SeverityType, checks ...check.Checker) *CheckRunner

NewCheckRunner is a constructor for CheckRunner

func (*CheckRunner) Run

func (r *CheckRunner) Run(ctx context.Context)

Run executes given test in a loop with given throttle

func (*CheckRunner) ShouldExitWithCheckFailure

func (r *CheckRunner) ShouldExitWithCheckFailure() bool

type Printer

type Printer interface {
	PrintCheckResult(checkName string, duration time.Duration, checkOut check.Output, err error)
	PrintSummary(allCheck int, failedChecks int)
}

Printer prints the checks results

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL