Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultRequiredReachableMaxFileSizeBytes int64 = 32 * 1024
Variables ¶
View Source
var DefaultNames = []string{
".context-lint.yaml",
".context-lint.yml",
".context-lint.json",
".context-lint.jsonc",
}
Functions ¶
Types ¶
type Config ¶
type Config struct {
Linter LinterConfig `json:"linter" yaml:"linter"`
}
type DocumentConfig ¶
type DocumentConfig struct {
Entry string `json:"entry" yaml:"entry"`
RequiredReachable []string `json:"requiredReachable" yaml:"requiredReachable"`
RequiredReachableMaxFileSize FileSize `json:"requiredReachableMaxFileSize" yaml:"requiredReachableMaxFileSize"`
Excludes []string `json:"excludes" yaml:"excludes"`
FrontMatter FrontMatterConfig `json:"frontMatter" yaml:"frontMatter"`
}
type FileSize ¶ added in v1.0.4
func (*FileSize) EffectiveBytes ¶ added in v1.0.4
func (*FileSize) UnmarshalJSON ¶ added in v1.0.4
type FrontMatterConfig ¶ added in v1.0.3
type FrontMatterConfig struct {
ExcludeFileNames []string `json:"excludeFileNames" yaml:"excludeFileNames"`
}
type LinterConfig ¶
type LinterConfig struct {
Document DocumentConfig `json:"document" yaml:"document"`
}
Click to show internal directories.
Click to hide internal directories.