[severity]
Control the severity level of each violation type.
| Key | Default | Description |
|---|
dependency_violation | "error" | Layer dependency rule violated |
external_violation | "error" | External library rule violated |
call_pattern_violation | "error" | DI entrypoint method call rule violated |
unknown_import | "warning" | Import that could not be classified |
naming_violation | "error" | Naming convention rule violated (name_deny) |
dependency_violation = "warning" # downgrade for gradual adoption
external_violation = "error"
call_pattern_violation = "error"
unknown_import = "warning"
naming_violation = "error"
Combining with --fail-on
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
| Code | Meaning |
|---|
0 | No violations (or only warnings without --fail-on warning) |
1 | One or more violations at the configured threshold |
3 | Configuration file error |