linters

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitLinter

type CommitLinter interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context, string, []string) ([]string, error)
}

func CommitLinterNew

func CommitLinterNew(_ context.Context, cfg *CommitLinterConfig) CommitLinter

type CommitLinterConfig

type CommitLinterConfig struct {
	Config config.Config
	Logger hclog.Logger
}

func DefaultCommitLinterConfig

func DefaultCommitLinterConfig() *CommitLinterConfig

type GptLinter added in v1.4.0

type GptLinter interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context, string, []string) ([]string, error)
}

func GptLinterNew added in v1.4.0

func GptLinterNew(_ context.Context, cfg *GptLinterConfig) GptLinter

type GptLinterConfig added in v1.4.0

type GptLinterConfig struct {
	Config config.Config
	Logger hclog.Logger
}

func DefaultGptLinterConfig added in v1.4.0

func DefaultGptLinterConfig() *GptLinterConfig

type KernelLinter

type KernelLinter interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context, string, []string) ([]string, error)
}

func KernelLinterNew

func KernelLinterNew(_ context.Context, cfg *KernelLinterConfig) KernelLinter

type KernelLinterConfig

type KernelLinterConfig struct {
	Config  config.Config
	Logger  hclog.Logger
	Options []string
}

func DefaultKernelLinterConfig

func DefaultKernelLinterConfig() *KernelLinterConfig

type MegaLinter added in v1.4.0

type MegaLinter interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Run(context.Context, string, []string) ([]string, error)
}

func MegaLinterNew added in v1.4.0

func MegaLinterNew(_ context.Context, cfg *MegaLinterConfig) MegaLinter

type MegaLinterConfig added in v1.4.0

type MegaLinterConfig struct {
	Config config.Config
	Logger hclog.Logger
}

func DefaultMegaLinterConfig added in v1.4.0

func DefaultMegaLinterConfig() *MegaLinterConfig

Jump to

Keyboard shortcuts

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