Documentation
¶
Index ¶
Constants ¶
View Source
const LinterID = "docs"
LinterID is the stable identifier used to reference this linter in configuration and diagnostics.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Path string
Settings LinterSettings
}
Config holds the path and settings required to construct a Linter.
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
Linter runs documentation rules against a package directory.
type LinterSettings ¶
type LinterSettings struct {
lint.LinterSettings
RulesSettings
}
LinterSettings combines the shared linter-level severity with the per-rule settings for this linter.
type RulesSettings ¶
type RulesSettings struct {
Readme lint.RuleSettings
Bilingual lint.RuleSettings
CyrillicInEnglish lint.RuleSettings
}
RulesSettings holds the severity configuration for each rule in the docs linter.
Click to show internal directories.
Click to hide internal directories.