Help us shape the future of Go! Take the 2026 Go Developer Survey

linter

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLintErrors

func FindLintErrors(schemaFileContents map[string][]byte, rulesToApply []linter.LintRuleFunc) int

FindLintErrors find lint errors in schema files applying the supplied rules

func FindTheRulesToApply

func FindTheRulesToApply(rulesString []string) ([]linter.LintRuleFunc, error)

FindTheRulesToApply convert matching string rules to LintRuleFunc

func Lint

func Lint(fileName string, schemaFileContents string, rules []linter.LintRuleFunc) []linter.LintErrorWithMetadata

Lint lints federated GraphQL schema

func NewLintCmd

func NewLintCmd() *cobra.Command

NewLintCmd creates new lint command

Types

type InlineLintConfig

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

InlineLintConfig represent config value defined in the schema for enabling/disabling certain rules for single/some Line/lines

Directories

Path Synopsis
nolint: revive,goconst,gocritic
nolint: revive,goconst,gocritic

Jump to

Keyboard shortcuts

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