checks

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package checks assembles every check stickler can run: the tools declared as data, plus the native checks stickler implements itself.

It is the one place the native checks are named. Both domain verbs — the lint pass and the instructions document — must run over exactly the same set, or a repository could be checked against rules the instructions never mention. The natives are INJECTED into the runner registry here rather than registered inside internal/runner, which is what keeps that package from depending on the check packages that depend on it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(
	command runner.Command,
	resolved config.Resolved,
	repoRoot config.RepoRoot,
) ([]suite.Runner, []runner.Skipped, error)

Build assembles the runners this repository's configuration selects, and names the ones it skipped for want of what they require -- golangci-lint in a tree with no go.mod, and any tool a repository defines with a requirement of its own.

func Native

func Native() map[string]suite.Runner

Native is every check stickler implements itself — the ones whose question is a whole-repo fact no single-package analyzer pass can see.

func Resolve

func Resolve(read config.FileReader, repoRoot config.RepoRoot) (config.Resolved, error)

Resolve loads and folds the repository's configuration layer. The reader is a parameter so a caller can exercise a pass without real config files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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