custom

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLinter

Returns an api.Linter or an api.ConfigurableLinter if also implementing api.Configurable

Types

type CustomLinter

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

Your linter object. Give this a nice name.

func (*CustomLinter) Configure

func (l *CustomLinter) Configure(conf *config.Config) error

func (*CustomLinter) LintProject

func (l *CustomLinter) LintProject(project api.Project) (api.Report, error)

func (*CustomLinter) Name

func (l *CustomLinter) Name() string

func (*CustomLinter) Rules

func (l *CustomLinter) Rules() []*api.Rule

func (*CustomLinter) SetRunner

func (l *CustomLinter) SetRunner(runner mllint.Runner)

Jump to

Keyboard shortcuts

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