Documentation
¶
Overview ¶
Package config loads repository-owned Lagotto configuration.
Index ¶
Constants ¶
View Source
const Filename = ".lagotto.yaml"
Filename is the repository-root configuration filename Lagotto discovers.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Version int `yaml:"version"`
Suppress []string `yaml:"suppress"`
Mixed MixedConfig `yaml:"mixed"`
LayerPolicy []LayerPolicyRuleConfig `yaml:"layer_policy"`
}
Config is the versioned repository policy loaded from .lagotto.yaml.
type LayerPolicyRuleConfig ¶
type LayerPolicyRuleConfig struct {
Name string `yaml:"name"`
Paths []string `yaml:"paths"`
Dependencies []string `yaml:"dependencies"`
GeneratedTypes []string `yaml:"generated_types"`
MaxCoordinatedDependencies *int `yaml:"max_coordinated_dependencies"`
Severity string `yaml:"severity"`
}
LayerPolicyRuleConfig describes one repository-owned G14 boundary policy. Package patterns may be full import paths or module-relative globs.
type MixedConfig ¶
type MixedConfig struct {
MinLines *int `yaml:"min_lines"`
MinComponentMembers *int `yaml:"min_component_members"`
MinComponentLines *int `yaml:"min_component_lines"`
MinSingleComponentComplexity *int `yaml:"min_single_component_complexity"`
Severity string `yaml:"severity"`
CohesiveMinLines *int `yaml:"cohesive_min_lines"`
}
MixedConfig contains optional G5 threshold and severity overrides.
Click to show internal directories.
Click to hide internal directories.