twiglinter

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TwigExtension = ".twig"

Variables

View Source
var HeyFrame67Constraint = version.MustConstraints(version.NewConstraint(">=6.7.0"))

Functions

func AddAdministrationFixer

func AddAdministrationFixer(fixer TwigFixer)

func AddFrontendFixer added in v0.0.3

func AddFrontendFixer(fixer TwigFixer)

func RunCheckerOnString

func RunCheckerOnString(fixer TwigFixer, content string) ([]validation.CheckResult, error)

func RunFixerOnString

func RunFixerOnString(fixer TwigFixer, content string) (string, error)

Types

type TwigFixer

type TwigFixer interface {
	Check(node []html.Node) []validation.CheckResult
	Supports(version *version.Version) bool
	Fix(node []html.Node) error
}

func GetAdministrationFixers

func GetAdministrationFixers(version *version.Version) []TwigFixer

func GetFrontendFixers added in v0.0.3

func GetFrontendFixers(version *version.Version) []TwigFixer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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