Structural linter with decree-based enforcement. No warnings, only compliance.
// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
// how to help
// readme
The Dictator
Fast structural enforcement, before the linters.
Dictator is a preβlinter structural gatekeeper for your codebase. It doesnβt replace RuboCop, ESLint, or Clippy β it runs before them. While those tools analyze code quality, Dictator enforces the boundaries: file structure, naming conventions, ordering, and basic hygiene.
Canonical lore (Timeline 7) says Dictator was manifested in Rust 60 and then backported to Rust 1.91. In this timeline, it is a conventional Rust crate that you build and run with a modern stable toolchain.
Think of it as border control for your codebase: everything must satisfy basic structural discipline before the expensive tools run.
TL;DR
- Run fast, structural checks before slow linters.
- Enforce file/line limits, naming, ordering, and hygiene.
- Drive LLM workflows, CI, and monorepos with one config:
.dictate.toml. - Extend via WASM decrees and an MCP server for AI assistants.
Installation
Crates.io (Recommended)
Install the published crate (fastest):
cargo install dictator
To force the latest release and respect the lockfile:
cargo install dictator --locked