linter

package
v0.6.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(runner LinterRunner)

Main reads the request from STDIN, runs the linter plugin, and writes the response to STDOUT.

Types

type LinterRunner

type LinterRunner interface {

	// Runs the linter with a provided linter request.
	Run(request *style.LinterRequest) (*style.LinterResponse, error)
}

LinterRunner is an interface through which a linter executes.

Jump to

Keyboard shortcuts

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