engine

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func New

func New(src Source) *Engine

func (*Engine) Register

func (e *Engine) Register(r types.Rule)

func (*Engine) RegisterMany

func (e *Engine) RegisterMany(r []types.Rule)

func (*Engine) Run

func (e *Engine) Run(root string) ([]types.Issue, error)

type FileSystem

type FileSystem struct {
	SkipDirs []string
}

func (FileSystem) List

func (f FileSystem) List(root string) ([]string, error)

func (FileSystem) ReadFile

func (FileSystem) ReadFile(path string) ([]byte, error)

type Source

type Source interface {
	List(root string) ([]string, error)
	ReadFile(path string) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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