manager

package
v0.1.84 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 34 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 {
	Run(m *module.Module)
	Name() string
}

type Manager

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

func NewManager

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

func (*Manager) ApplyFixes added in v0.1.84

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) Run

func (m *Manager) Run()

Jump to

Keyboard shortcuts

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