Skip to main content

mati_core/
lib.rs

1#![warn(clippy::all)]
2// `.unwrap()` discards context — production paths should propagate via `?`
3// or document the invariant with `.expect("reason")`. `expect_used` is
4// deliberately NOT enabled: `.expect("...")` is the sanctioned escape
5// valve for programmer-error invariants (rust-analyzer / ripgrep
6// convention). Gated on `not(test)` because inline `mod tests` modules
7// legitimately use `.unwrap()` everywhere. CI runs `-D warnings`, so any
8// new `.unwrap()` in production code is a hard failure on merge.
9#![cfg_attr(not(test), warn(clippy::unwrap_used))]
10
11pub mod analysis;
12pub mod eval;
13pub mod graph;
14pub mod health;
15pub mod hooks;
16/// Repo-wide invariants, checked by source scan. Test-only — nothing here is
17/// linked into the binary.
18#[cfg(test)]
19mod invariants;
20pub mod mcp;
21pub mod policy;
22pub mod scaffold;
23pub mod search;
24pub mod store;