lint

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 25 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextBuilder added in v1.57.0

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

func NewContextBuilder added in v1.57.0

func NewContextBuilder(cfg *config.Config, pkgLoader *PackageLoader,
	fileCache *fsutils.FileCache, pkgCache *cache.Cache, loadGuard *load.Guard,
) *ContextBuilder

func (*ContextBuilder) Build added in v1.57.0

func (cl *ContextBuilder) Build(ctx context.Context, log logutils.Log, linters []*linter.Config) (*linter.Context, error)

type PackageLoader added in v1.57.0

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

PackageLoader loads packages based on golang.org/x/tools/go/packages.Load.

func NewPackageLoader added in v1.57.0

func NewPackageLoader(log logutils.Log, cfg *config.Config, args []string, goenv *goutil.Env, loadGuard *load.Guard) *PackageLoader

NewPackageLoader creates a new PackageLoader.

func (*PackageLoader) Load added in v1.57.0

func (l *PackageLoader) Load(ctx context.Context, linters []*linter.Config) (pkgs, deduplicatedPkgs []*packages.Package, err error)

Load loads packages.

type Runner added in v1.7.1

type Runner struct {
	Log logutils.Log

	Processors []processors.Processor
	// contains filtered or unexported fields
}

func NewRunner added in v1.7.1

func NewRunner(log logutils.Log, cfg *config.Config, args []string, goenv *goutil.Env,
	lineCache *fsutils.LineCache, fileCache *fsutils.FileCache,
	dbManager *lintersdb.Manager, lintCtx *linter.Context,
) (*Runner, error)

func (*Runner) Run added in v1.7.1

func (r *Runner) Run(ctx context.Context, linters []*linter.Config) ([]result.Issue, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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