MCPcopy Create free account
hub / github.com/vale-cli/vale / lintHTML

Method lintHTML

internal/lint/html.go:20–25  ·  view source on GitHub ↗
(f *core.File)

Source from the content-addressed store, hash-verified

18var heading = regexp.MustCompile(`^h\d$`)
19
20func (l *Linter) lintHTML(f *core.File) error {
21 if l.Manager.Config.Flags.Built != "" {
22 return l.lintTxtToHTML(f)
23 }
24 return l.lintHTMLTokens(f, []byte(f.Content), 0)
25}
26
27type extensionConfig struct {
28 Normed, Real string

Callers 2

lintFileMethod · 0.95
lintScopedValuesMethod · 0.95

Calls 2

lintTxtToHTMLMethod · 0.95
lintHTMLTokensMethod · 0.95

Tested by

no test coverage detected