Documentation
¶
Index ¶
- type NoInvalidTemplateRule
- func (r *NoInvalidTemplateRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure
- func (r *NoInvalidTemplateRule) ApplyToNode(file *lint.File, node ast.Node, _ lint.Arguments) []lint.Failure
- func (*NoInvalidTemplateRule) CacheTier() rulecache.CacheTier
- func (*NoInvalidTemplateRule) Group() string
- func (*NoInvalidTemplateRule) Name() string
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) 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 ¶
func (*NoInvalidTemplateRule) CacheTier() rulecache.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.
Click to show internal directories.
Click to hide internal directories.