linter

package
v1.1.1039 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingEndEvent       = errors2.New("missing end event")       // ErrMissingEndEvent indicates that a procewss terminates without an end event.
	ErrMissingOpeningGateway = errors2.New("missing opening gateway") // ErrMissingOpeningGateway indicates that a gateway is being closed and no corresponding open exists.
)

Functions

This section is empty.

Types

type Message

type Message struct {
	Type MessageType
	Text string
}

Message - a linter finding

func Lint

func Lint(wf *model.Workflow, warningsAsErrors bool) ([]Message, error)

Lint - executes the linter versus a workflow

type MessageType

type MessageType uint8

MessageType describes a class of linter message.

const (
	MessageTypeError   MessageType = iota // MessageTypeError - an error linter message.
	MessageTypeWarning                    // MessageTypeWarning - a warning linter message.
	MessageTypeInfo                       // MessageTypeInfo -
)

Jump to

Keyboard shortcuts

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