rules

package
v0.1.64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BilingualRuleName = "bilingual"
	RuSuffix          = ".ru.md"
	RuFallbackSuffix  = "_ru.md"
)
View Source
const (
	CyrillicInEnglishRuleName = "cyrillic-in-english"
)
View Source
const (
	ReadmeRuleName = "readme"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BilingualRule

type BilingualRule struct {
	pkg.RuleMeta
	pkg.PathRule
	// contains filtered or unexported fields
}

func NewBilingualRule

func NewBilingualRule() *BilingualRule

func (*BilingualRule) CheckBilingual

func (r *BilingualRule) CheckBilingual(m pkg.Module, errorList *errors.LintRuleErrorsList)

type CyrillicInEnglishRule

type CyrillicInEnglishRule struct {
	pkg.RuleMeta
	pkg.PathRule
}

func NewCyrillicInEnglishRule

func NewCyrillicInEnglishRule() *CyrillicInEnglishRule

func (*CyrillicInEnglishRule) CheckFiles

func (r *CyrillicInEnglishRule) CheckFiles(m pkg.Module, errorList *errors.LintRuleErrorsList)

type ReadmeRule

type ReadmeRule struct {
	pkg.RuleMeta
	pkg.PathRule
}

func NewReadmeRule

func NewReadmeRule() *ReadmeRule

func (*ReadmeRule) CheckReadme

func (r *ReadmeRule) CheckReadme(m pkg.Module, errorList *errors.LintRuleErrorsList)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL