lint

package
v0.0.0-...-e7d2f50 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelError
	LevelWarning
)

Levels:

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem

type Problem struct {
	Level int
	Tag   string
	Args  []interface{}
}

Problem is a linting problem.

func Lint

func Lint(rcp *recipe.Recipe) ([]*Problem, bool)

Lint inspects recipe and tries to detect problems or guidelines violations.

type RuleInfo

type RuleInfo struct {
	Tag         string
	Level       int
	Description string
}

RuleInfo is linting rule information.

func Info

func Info(tag string) *RuleInfo

Info returns information about a linting rule.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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