Documentation
¶
Overview ¶
Package analyzer implements conga-lint, a static analysis pass that enforces CONGA CLI struct contracts at lint time. It mirrors the runtime schema validations performed by internal/spec (leaf command Runner enforcement, struct tag linting, and ancestor flag shadowing) and flags throwaway inferred conga.New(root) instances directly on type information, so contract violations surface before any binary runs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "congalint", Doc: "checks CONGA CLI struct definitions for contract compliance (leaf command Runner enforcement, struct tag validation, ancestor flag shadowing, throwaway root detection, completion command opt-in enforcement) plus opt-in fluent builder call order checking", Run: run, Requires: []*analysis.Analyzer{ inspect.Analyzer, }, Flags: analyzerFlags, }
Analyzer is the conga-lint analysis pass. Run it via `go tool conga-lint ./...` or `task lint:schema`.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.