linter

package
v1.1.2139 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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 - an error linter message.
	MessageTypeError MessageType = iota
	// MessageTypeWarning - a warning linter message.
	MessageTypeWarning
	// MessageTypeInfo -
	MessageTypeInfo
)

Jump to

Keyboard shortcuts

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