linter

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 11 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 struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

func NewLinter

func NewLinter(root string, config *config.Config, statistic *debug.Statistic, errors []*rule.Error) *Linter

func (*Linter) AddError

func (linter *Linter) AddError(error *rule.Error)

func (*Linter) GetErrors

func (linter *Linter) GetErrors() []*rule.Error

func (*Linter) GetStatistics

func (linter *Linter) GetStatistics() *debug.Statistic

func (*Linter) Run

func (linter *Linter) Run(filesystem fs.FS, debug bool) (err error)

Jump to

Keyboard shortcuts

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