M0.2: workspace lints and lints self-test

Denies unwrap/expect/panic/unreachable/todo/unimplemented, indexing and
string slicing, missing docs and unsafe code outside tests. clippy.toml
allows them in tests. cargo xtask lints-selftest proves both directions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-10-13 20:28:04 +02:00
parent b10a2a72f9
commit ec1c72d9ac
7 changed files with 397 additions and 3 deletions

View file

@ -25,3 +25,18 @@ lutra-mcp = { path = "crates/mcp" }
lutra-testkit = { path = "crates/testkit" }
[workspace.lints.rust]
missing_docs = "deny"
unsafe_code = "deny"
[workspace.lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
unreachable = "deny"
todo = "deny"
unimplemented = "deny"
indexing_slicing = "deny"
string_slice = "deny"
[profile.release]
panic = "unwind"