no_invalid_template

package
v0.0.0-...-8888feb Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoInvalidTemplateRule

type NoInvalidTemplateRule struct{}

NoInvalidTemplateRule validates that template strings passed to template.Must, template.New().Parse(), and related functions are valid Go templates. Invalid templates will cause runtime errors.

func (*NoInvalidTemplateRule) Apply

func (r *NoInvalidTemplateRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure

Apply applies the rule to given file.

func (*NoInvalidTemplateRule) ApplyToNode

func (r *NoInvalidTemplateRule) ApplyToNode(file *lint.File, node ast.Node, _ lint.Arguments) []lint.Failure

ApplyToNode applies the rule while walking the AST together with other rules.

func (*NoInvalidTemplateRule) CacheTier

CacheTier returns the cache tier for this rule.

func (*NoInvalidTemplateRule) Group

func (*NoInvalidTemplateRule) Group() string

Group returns the rule group.

func (*NoInvalidTemplateRule) Name

func (*NoInvalidTemplateRule) Name() string

Name returns the rule name.

Jump to

Keyboard shortcuts

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