API Reference¶
Programmatic access to analyzers, detectors, pipeline, and MCP server tools. All API documentation is generated from Google-style docstrings via mkdocstrings.
-
Analyzers
BaseAnalyzerand language-specific implementations using the Template Method pattern. -
Detectors
163
ViolationDetectorimplementations across 14 languages — each a Strategy class. -
Models
Pydantic models for
AnalysisResult,Violation,AnalysisContext, and report contracts. -
Pipeline
DetectionPipelineorchestration, rule projection, and config merging. -
Rules
151
ZenPrinciplemodels and rule-to-detector mappings across all languages. -
Server Tools
MCP tool entry points:
analyze_zen_violations,generate_report,generate_prompts.
Quick usage¶
Docstring quality
API pages are sourced from module docstrings and signatures. Keep Args, Returns, See Also, and Examples sections up to date for best output.
See Also¶
- User Guide — CLI-first workflows and interpretation guidance.
- Getting Started — Installation and first analysis path.
- Contributing — Architecture and detector extension workflows.