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). The general flow is as follows:
Lint (files and directories) LintString (stdin)
\ /
lintFiles /
\ /
+ +
+-------------------+ lintFile ------+|lintMarkdown|lintADoc|lintRST
| / | \ | | /
| / | \ | / /
| / | \ | +--------
| / | \ | /
| + + + + +
| lintCode lintLines lintHTML
| | | |
| | | +
| \ | lintProse
| \ | /
| + + +
| lintText
| <= add Alerts{} |
+-------------------------+
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Context string // parent content - e.g., sentence -> paragraph
Text string // text content
Raw string // text content without any processing
Scope core.Selector // section selector
}
A Block represents a section of text.
Click to show internal directories.
Click to hide internal directories.