rules

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleError

type RuleError struct {
	Line             int
	TagName          string
	Message          string
	FormattedMessage string
}

func ErrorAttribute

func ErrorAttribute(element *parser.MJMLNode, options *RuleOptions) []*RuleError

func NewRuleError

func NewRuleError(message string, element *parser.MJMLNode) *RuleError

func ValidateAttribute

func ValidateAttribute(element *parser.MJMLNode, options *RuleOptions) []*RuleError

func ValidateChildren

func ValidateChildren(element *parser.MJMLNode, options *RuleOptions) []*RuleError

func ValidateTag

func ValidateTag(element *parser.MJMLNode, options *RuleOptions) []*RuleError

func ValidateType

func ValidateType(element *parser.MJMLNode, options *RuleOptions) []*RuleError

func (*RuleError) Error

func (r *RuleError) Error() string

type RuleOptions

type RuleOptions struct {
	Components   map[string]*core.ComponentSpec
	Dependencies map[string]map[string]struct{}
	SkipElements map[string]struct{}
}

Jump to

Keyboard shortcuts

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