Versions in this module Expand all Collapse all v0 v0.2.0 Nov 5, 2026 Changes in this version + const ConfigFile + const DefaultMinConfidence + const DefaultMinSupport + const MinExpectedCallers + const MinPairingLift + func Enforces(sr store.ScopeRule, opts Options) bool + func Format(violations []Violation, repoRoot string) string + func Locate(path string) (string, error) + func ResolveInRepo(repoRoot, path string) (string, error) + type Config struct + Disable []string + Enable []string + IgnorePaths []string + MinConfidence float64 + MinSupport int + func LoadConfig(repoRoot string) (Config, error) + func (cfg Config) Apply(opts Options) Options + type Options struct + Absences bool + Disabled map[string]bool + Duplicates bool + IOBoundary bool + IgnorePaths []string + MinConfidence float64 + MinSupport int + func (o Options) Ignored(rel string) bool + type RuleInfo struct + Evidence string + Text string + Type string + func Rules(ctx context.Context, s *store.Store, repoRoot, scope string, opts Options) ([]RuleInfo, int, error) + type Violation struct + Evidence string + Example string + File string + Function string + Headline string + Line int + Rule string + Type string + func File(ctx context.Context, s *store.Store, repoRoot, filePath string, source []byte, ...) ([]Violation, error) + func Repository(ctx context.Context, s *store.Store, repoRoot string, opts Options) ([]Violation, int, error)