Documentation
¶
Overview ¶
Package lint implements Vale's syntax-aware linting functionality.
The package is split into core linting logic (this file), source code (code.go), and markup (markup.go).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedHTMLWriter ¶
type ExtendedHTMLWriter struct {
*org.HTMLWriter
}
func (*ExtendedHTMLWriter) WriteComment ¶
func (w *ExtendedHTMLWriter) WriteComment(n org.Comment)
type Linter ¶
type Linter struct {
Manager *check.Manager
// BlockHook, when set, receives every block before its rules run.
BlockHook func(nlp.Block)
// RuleHook, when set, receives each rule's name and what its Run cost.
// A hooked run takes the serial path, which is the one that can time a rule.
RuleHook func(name string, took time.Duration)
// contains filtered or unexported fields
}
A Linter lints a File.
func (*Linter) LintString ¶
LintString src according to its format.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.