manager

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linter

type Linter interface {
	GetName() string
	Lint(ctx context.Context)
}

Linter is the common interface implemented by all lint passes. Everything a linter needs — its config, the module it inspects and the error list it reports into — is supplied to its constructor, so Lint takes only a context.

type Manager

type Manager struct {
	Modules []*modules.Module
	// contains filtered or unexported fields
}

func NewManager

func NewManager(dir string, rootConfig *config.RootConfig) *Manager

func (*Manager) ApplyFixes added in v0.1.82

func (m *Manager) ApplyFixes()

ApplyFixes is the single entry point for the --fix flag. It runs every fix attached to a collected finding. Findings whose fix succeeds are marked Fixed and subsequently dropped by GetErrors; findings whose fix fails are kept, and PrintResult reports the failure via the finding's FixError.

func (*Manager) GetErrors added in v0.1.77

func (m *Manager) GetErrors() []pkg.LinterError

GetErrors returns all findings collected during the run. It is primarily intended for tests (e.g. the e2e framework) that need to assert on the structured findings produced by the linters.

func (*Manager) HasCriticalErrors added in v0.1.0

func (m *Manager) HasCriticalErrors() bool

func (*Manager) PrintResult added in v0.1.0

func (m *Manager) PrintResult()

func (*Manager) PrintStatistics added in v0.1.103

func (m *Manager) PrintStatistics()

PrintStatistics prints the end-of-lint statistics as a framed summary block styled identically to the deckhouse-cli mirror summaries. It is meant to be called after PrintResult, once all findings have been listed.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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