plugin

package
v0.25.3-crie Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCustomRules

func RegisterCustomRules(
	rules ...rule.Rule,
)

RegisterCustomRules registers custom rules.

Types

type RuleGen

type RuleGen func(
	verbose bool,
	fixMode bool,
) rule.Rule

RuleGen is a generator for a rule. It's adapted to rule.Rule interface.

func (RuleGen) Apply

func (RuleGen) Apply(proto *parser.Proto) ([]report.Failure, error)

Apply implements rule.Rule.

func (RuleGen) ID

func (RuleGen) ID() string

ID implements rule.Rule.

func (RuleGen) IsOfficial

func (RuleGen) IsOfficial() bool

IsOfficial implements rule.Rule.

func (RuleGen) Purpose

func (RuleGen) Purpose() string

Purpose implements rule.Rule.

Jump to

Keyboard shortcuts

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