lint

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package lint contains functions for verifying jackal yaml files are valid

Package lint contains functions for verifying jackal yaml files are valid

Index

Constants

This section is empty.

Variables

View Source
var JackalSchema embed.FS

JackalSchema is exported so main.go can embed the schema file

Functions

This section is empty.

Types

type Validator

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

Validator holds the warnings/errors and messaging that we get from validation

func Validate

func Validate(createOpts types.JackalCreateOptions) (*Validator, error)

Validate validates a jackal file against the jackal schema, returns *validator with warnings or errors if they exist along with an error if the validation itself failed

func (Validator) DisplayFormattedMessage

func (v Validator) DisplayFormattedMessage()

DisplayFormattedMessage message sent to user based on validator results

func (Validator) IsSuccess

func (v Validator) IsSuccess() bool

IsSuccess returns true if there are not any errors

Jump to

Keyboard shortcuts

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