Documentation ¶
Index ¶
- Constants
- Variables
- func Check(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, ...) []flows.Issue
- func InvalidRegexCheck(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, ...)
- func LegacyVarsCheck(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, ...)
- func MissingDependencyCheck(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, ...)
- type InvalidRegex
- type LegacyVars
- type MissingDependency
Constants ¶
const TypeInvalidRegex string = "invalid_regex"
TypeInvalidRegex is our type for an invalid regex
const TypeLegacyVars string = "legacy_vars"
TypeLegacyVars is our type for this issue
const TypeMissingDependency string = "missing_dependency"
TypeMissingDependency is our type for a missing dependency issue
Variables ¶
var RegisteredTypes = map[string]reportFunc{}
Functions ¶
func Check ¶
func Check(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, refs []flows.ExtractedReference) []flows.Issue
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 LegacyVarsCheck ¶ added in v0.175.0
func LegacyVarsCheck(sa flows.SessionAssets, flow flows.Flow, tpls []flows.ExtractedTemplate, refs []flows.ExtractedReference, report func(flows.Issue))
LegacyVarsCheck checks for this issue
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
Language returns the translation language if the issue was found in a translation
type LegacyVars ¶ added in v0.175.0
type LegacyVars struct { Vars []string `json:"vars"` // contains filtered or unexported fields }
LegacyVars is a use of legacy vars issue
func (*LegacyVars) ActionUUID ¶ added in v0.175.0
func (p *LegacyVars) ActionUUID() flows.ActionUUID
ActionUUID returns the UUID of the action where issue is found
func (*LegacyVars) Description ¶ added in v0.175.0
func (p *LegacyVars) Description() string
Description returns the description of the issue
func (*LegacyVars) Language ¶ added in v0.175.0
Language returns the translation language if the issue was found in a translation
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
Language returns the translation language if the issue was found in a translation