Documentation
¶
Index ¶
Constants ¶
View Source
const ( BilingualRuleName = "bilingual" RuSuffix = ".ru.md" RuFallbackSuffix = "_ru.md" )
View Source
const (
CyrillicInEnglishRuleName = "cyrillic-in-english"
)
View Source
const (
MarkdownlintRuleName = "markdownlint"
)
View Source
const (
NoLangKeyRuleName = "no-lang-key"
)
View Source
const (
ReadmeRuleName = "readme"
)
View Source
const (
SizeRuleName = "size"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BilingualRule ¶
func NewBilingualRule ¶
func NewBilingualRule() *BilingualRule
func (*BilingualRule) CheckBilingual ¶
func (r *BilingualRule) CheckBilingual(m pkg.Module, errorList *errors.LintRuleErrorsList)
type CyrillicInEnglishRule ¶
func NewCyrillicInEnglishRule ¶
func NewCyrillicInEnglishRule() *CyrillicInEnglishRule
func (*CyrillicInEnglishRule) CheckFiles ¶
func (r *CyrillicInEnglishRule) CheckFiles(m pkg.Module, errorList *errors.LintRuleErrorsList)
type MarkdownRule ¶ added in v0.1.95
func NewMarkdownRule ¶ added in v0.1.95
func NewMarkdownRule() *MarkdownRule
func (*MarkdownRule) CheckFiles ¶ added in v0.1.95
func (r *MarkdownRule) CheckFiles(m pkg.Module, errorList *errors.LintRuleErrorsList)
type NoLangKeyRule ¶ added in v0.1.73
func NewNoLangKeyRule ¶ added in v0.1.73
func NewNoLangKeyRule() *NoLangKeyRule
func (*NoLangKeyRule) CheckFiles ¶ added in v0.1.73
func (r *NoLangKeyRule) CheckFiles(m pkg.Module, errorList *errors.LintRuleErrorsList)
type ReadmeRule ¶
func NewReadmeRule ¶
func NewReadmeRule() *ReadmeRule
func (*ReadmeRule) CheckReadme ¶
func (r *ReadmeRule) CheckReadme(m pkg.Module, errorList *errors.LintRuleErrorsList)
type SizeRule ¶ added in v0.1.100
func NewSizeRule ¶ added in v0.1.100
func NewSizeRule() *SizeRule
func (*SizeRule) CheckSize ¶ added in v0.1.100
func (r *SizeRule) CheckSize(m pkg.Module, errorList *errors.LintRuleErrorsList)
CheckSize sums the size of the documentation files under the docs/ directory and reports an error when the total exceeds maxDocsSizeBytes. The docs/internal subtree is skipped on purpose: it holds content that is not rendered as documentation, so it must not count towards the limit. Every other subfolder is scanned recursively. Oversized docs bloat the module artifact and usually signal binary assets that don't belong there.
Click to show internal directories.
Click to hide internal directories.