check

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package check implements the "check" CLI command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*root.Config
	// BaselinePath is the baseline to compare with; empty means
	// anarch-baseline.json in --dir.
	BaselinePath string
	// NewFromRev, when set, limits the finding gate to lines changed since
	// that revision.
	NewFromRev string
	// BaselineRev, when set, measures the code at that revision and
	// compares with it instead of the baseline file.
	BaselineRev string
	// WaiversPath names the waivers file; empty means anarch-waivers.json in
	// --dir, if it exists.
	WaiversPath string
	// Today is the date waivers expire against, YYYY-MM-DD; empty means the
	// current date.
	Today   string
	Flags   *ff.FlagSet
	Command *ff.Command
}

Config holds the configuration for the check command.

func New

func New(parent *root.Config) *Config

New creates and registers the check command with the given parent config.

Jump to

Keyboard shortcuts

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