Documentation ¶
Index ¶
- func FindLintErrors(schemaFileContents map[string][]byte, rulesToApply []linter.LintRuleFunc) int
- func FindTheRulesToApply(rulesString []string) ([]linter.LintRuleFunc, error)
- func Lint(fileName string, schemaFileContents string, rules []linter.LintRuleFunc) []linter.LintErrorWithMetadata
- func NewLintCmd() *cobra.Command
- type InlineLintConfig
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
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
Click to show internal directories.
Click to hide internal directories.