Versions in this module Expand all Collapse all v0 v0.2.0 Aug 17, 2026 Changes in this version type Config + AstExt map[string]string + AstWASM map[string]string v0.1.0 Aug 14, 2026 Changes in this version + const DefaultMaxFileBytes + func Report(w io.Writer, format string, res *Result, version string) error + func WriteFinding(w io.Writer, f domain.Finding, lastFile string) string + type Config struct + Aggressive bool + Backup string + DisabledRules []string + Exclude []string + FailOn domain.Confidence + ForceKind string + ForceText bool + Gofmt bool + Include []string + LLM LLMConfig + LayerB bool + LayerBStrength string + Logger *slog.Logger + MaxFileBytes int64 + NFKC bool + Paths []string + Progress ports.Progress + Write bool + type Engine struct + func New(cfg Config) (*Engine, error) + func (e *Engine) Clean(ctx context.Context) (*Result, error) + func (e *Engine) Close() error + func (e *Engine) Scan(ctx context.Context) (*Result, error) + type LLMConfig struct + APIKey string + Endpoint string + Mode string + Model string + Timeout time.Duration + type Result struct + After *domain.Score + DetectorHits map[string]int + DocFiles int + DryRun bool + FilesScanned int + FilesSkipped int + Findings []domain.Finding + ImageFiles int + LayerA int + LayerB int + LayerBFiles []string + LayerBOpt int + LayerFiles int + Leftover []domain.Finding + Patches []domain.Patch + Score domain.Score + Streamed bool + TextFiles int + func (r Result) ShouldFail(failOn domain.Confidence) bool + type RuleInfo struct + Clean string + Confidence string + Description string + Family string + ID string + Severity string + func Explain(id string) (RuleInfo, error) + func Rules() ([]RuleInfo, error)