issues

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const TypeInvalidRegex string = "invalid_regex"

TypeInvalidRegex is our type for an invalid regex

View Source
const TypeLegacyExtra string = "legacy_extra"

TypeLegacyExtra is our type for a use of @legacy_extra

View Source
const TypeMissingDependency string = "missing_dependency"

TypeMissingDependency is our type for a missing dependency issue

Variables

View Source
var RegisteredTypes = map[string]reportFunc{}

Functions

func Check

Check returns all issues in the given flow

func InvalidRegexCheck added in v0.76.1

func InvalidRegexCheck(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, refs []flows.ExtractedReference, report func(flows.Issue))

InvalidRegexCheck checks for invalid regexes

func LegacyExtraCheck added in v0.76.1

func LegacyExtraCheck(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, refs []flows.ExtractedReference, report func(flows.Issue))

LegacyExtraCheck checks for legacy extra usage

func MissingDependencyCheck

func MissingDependencyCheck(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, refs []flows.ExtractedReference, report func(flows.Issue))

MissingDependencyCheck checks for missing dependencies

Types

type InvalidRegex added in v0.76.1

type InvalidRegex struct {
	Regex string `json:"regex"`
	// contains filtered or unexported fields
}

InvalidRegex is an invalid regex issue

func (*InvalidRegex) ActionUUID added in v0.76.1

func (p *InvalidRegex) ActionUUID() flows.ActionUUID

ActionUUID returns the UUID of the action where issue is found

func (*InvalidRegex) Description added in v0.76.1

func (p *InvalidRegex) Description() string

Description returns the description of the issue

func (*InvalidRegex) Language added in v0.76.1

func (p *InvalidRegex) Language() envs.Language

Language returns the translation language if the issue was found in a translation

func (*InvalidRegex) NodeUUID added in v0.76.1

func (p *InvalidRegex) NodeUUID() flows.NodeUUID

NodeUUID returns the UUID of the node where issue is found

func (*InvalidRegex) Type added in v0.76.1

func (p *InvalidRegex) Type() string

Type returns the type of this issue

type LegacyExtra added in v0.76.1

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

LegacyExtra is a legacy extra issue

func (*LegacyExtra) ActionUUID added in v0.76.1

func (p *LegacyExtra) ActionUUID() flows.ActionUUID

ActionUUID returns the UUID of the action where issue is found

func (*LegacyExtra) Description added in v0.76.1

func (p *LegacyExtra) Description() string

Description returns the description of the issue

func (*LegacyExtra) Language added in v0.76.1

func (p *LegacyExtra) Language() envs.Language

Language returns the translation language if the issue was found in a translation

func (*LegacyExtra) NodeUUID added in v0.76.1

func (p *LegacyExtra) NodeUUID() flows.NodeUUID

NodeUUID returns the UUID of the node where issue is found

func (*LegacyExtra) Type added in v0.76.1

func (p *LegacyExtra) Type() string

Type returns the type of this issue

type MissingDependency

type MissingDependency struct {
	Dependency assets.TypedReference `json:"dependency"`
	// contains filtered or unexported fields
}

MissingDependency is a missing asset dependency

func (*MissingDependency) ActionUUID

func (p *MissingDependency) ActionUUID() flows.ActionUUID

ActionUUID returns the UUID of the action where issue is found

func (*MissingDependency) Description

func (p *MissingDependency) Description() string

Description returns the description of the issue

func (*MissingDependency) Language added in v0.73.0

func (p *MissingDependency) Language() envs.Language

Language returns the translation language if the issue was found in a translation

func (*MissingDependency) NodeUUID

func (p *MissingDependency) NodeUUID() flows.NodeUUID

NodeUUID returns the UUID of the node where issue is found

func (*MissingDependency) Type

func (p *MissingDependency) Type() string

Type returns the type of this issue

Jump to

Keyboard shortcuts

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