analyzer

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 21 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL