Package internal/config¶
Import path: go.devnw.com/canary/internal/config
package config // import "go.devnw.com/canary/internal/config"
API (raw go doc)¶
package config // import "go.devnw.com/canary/internal/config"
CANARY: REQ=CBIN-140; FEATURE="ProjectConfig"; ASPECT=Storage; STATUS=IMPL;
UPDATED=2025-10-16
TYPES
type ProjectConfig struct {
Project struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
} `yaml:"project"`
Requirements struct {
IDPattern string `yaml:"id_pattern"`
} `yaml:"requirements"`
Scanner struct {
ExcludePaths []string `yaml:"exclude_paths"`
} `yaml:"scanner"`
Verification struct {
RequireTestField bool `yaml:"require_test_field"`
RequireBenchField bool `yaml:"require_bench_field"`
StalenessDays int `yaml:"staleness_days"`
} `yaml:"verification"`
Agent struct {
DefaultModel string `yaml:"default_model"`
} `yaml:"agent"`
}
ProjectConfig represents the .canary/project.yaml configuration
func Load(rootDir string) (*ProjectConfig, error)
Load reads and parses the project.yaml configuration file