lint

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LintVersion = "1.0.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Lint

type Lint struct {
	Version        string             `yaml:"lintVersion"`
	DefaultRuleset string             `yaml:"defaultRuleset"`
	Rulesets       map[string]Ruleset `yaml:"rulesets"`
}

func Load

func Load(searchDirs []string) (*Lint, string, error)

type Ruleset

type Ruleset struct {
	Rulesets []string               `yaml:"rulesets"`
	Rules    map[string]*model.Rule `yaml:"rules"`
}

Jump to

Keyboard shortcuts

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