linter

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FmtDiag

func FmtDiag(diag protocol.Diagnostic) string

func HasErrors added in v0.1.7

func HasErrors(diags []protocol.Diagnostic) bool

Types

type DiagCode

type DiagCode string
const (
	ImportNotFound      DiagCode = "ImportNotFound"
	UnusedVar           DiagCode = "UnusedVar"
	TypeMismatch        DiagCode = "TypeMismatch"
	RedundantCondition  DiagCode = "RedundantCondition"
	UnknownField        DiagCode = "UnknownField"
	UnknownArgument     DiagCode = "UnknownArgument"
	ArgumentCardinality DiagCode = "ArgumentCardinality"
)

type Diagnostic

type Diagnostic = protocol.Diagnostic

func LintAST

func LintAST(root ast.Node, resolver analysis.Resolver) []Diagnostic

Jump to

Keyboard shortcuts

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