cli

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	// RootDirectory is the target directory to analyze
	RootDirectory string
	// Checkers is a list of checkers that are applied to the files in `RootDirectory`
	Checkers []analysis.Checker
	Config   *config.Config
	CmpHash  string
}

func (*Cli) CheckFile added in v0.4.0

func (c *Cli) CheckFile(
	checkersMap map[analysis.Language][]analysis.Checker,
	patternCheckers map[analysis.Language][]analysis.YamlChecker,
	path string,
) ([]*analysis.Issue, error)

func (*Cli) GetChangedFiles added in v0.6.0

func (c *Cli) GetChangedFiles(compareHash string) ([]string, error)

GetChangedFiles returns all changes between compareHash and the current state of the working directory

func (*Cli) Run

func (c *Cli) Run() error

func (*Cli) RunCheckers added in v0.4.0

func (c *Cli) RunCheckers(runBuiltinCheckers, runCustomCheckers bool) error

RunCheckers goes over all the files in the project and runs the checks for every file encountered

Jump to

Keyboard shortcuts

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