Install
Available via cargo, npm, pip, go install, or binary download. Installation Guide
mille is a static analysis CLI that enforces dependency rules for layered architectures — Clean Architecture, Onion Architecture, Hexagonal Architecture, and more.
Languages: Rust, Go, TypeScript, JavaScript, Python, Java, Kotlin, PHP, C, YAML
| Check | Description |
|---|---|
dependency_mode | Layer dependency rules — control which layers can import from which |
external_mode | External library rules — restrict third-party package usage per layer |
allow_call_patterns | DI method call rules — limit which methods may be called on injected types |
name_deny | Naming convention rules — forbid infrastructure keywords in domain/usecase |
Install
Available via cargo, npm, pip, go install, or binary download. Installation Guide
Quick Start
mille init auto-detects your architecture. CI-ready in 5 minutes.
Quick Start Guide
Configuration
Complete reference for all mille.toml options.
Configuration Reference
CI Integration
GitHub Actions annotations show violations directly in PRs. CI Guide