Skip to content

mille check

Overview

Terminal window
mille check
mille check ./path/to/project # specify target directory

Checks layer dependencies, external library usage, and method call patterns against the rules defined in mille.toml.

You can pass a project directory as a positional argument. Defaults to the current directory (.) if omitted.

Output Formats

Terminal window
mille check # terminal output (default)
mille check --format github-actions # GitHub Actions annotations
mille check --format json # machine-readable JSON

Terminal Output Example

VIOLATION [error] dependency_violation
src/usecase/user.rs:12
usecase → infrastructure (denied)
import: crate::infrastructure::db::UserRepository
1 violation(s) found

GitHub Actions Annotations

::error file=src/usecase/user.rs,line=12::dependency_violation: usecase → infrastructure (denied)

Fail Threshold

Terminal window
mille check # exit 1 on error only (default)
mille check --fail-on warning # exit 1 on warning or error
mille check --fail-on error # same as default

Exit Codes

CodeMeaning
0No violations
1Violations found
3Configuration error

Auto-excluded Paths

mille check automatically skips: .venv, venv, node_modules, target, dist, build, and similar directories.