From 70d97023cf70d3d4109bfd7c99f26cf0e47081fa Mon Sep 17 00:00:00 2001 From: Rodin Date: Thu, 30 Apr 2026 16:03:58 -0700 Subject: [PATCH] docs: update README with smell files --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 258ddfc..99eb950 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ library implementation) at commit | [module-organization.md](patterns/module-organization.md) | 10 | 514 | File structure, pub use, prelude, workspaces | | [macros.md](patterns/macros.md) | 10 | 519 | macro_rules!, derive, attribute macros, hygiene | -**Total: 100 patterns across 10 files, 6,441 lines.** +**Total: 100 patterns across 10 files + 20 smells across 2 files = 7,439 lines.** ## Discovery Data (from library/) @@ -54,6 +54,13 @@ library implementation) at commit | Macros | macro_rules! | 607 | | Macros | #[derive(...)] | 1,116 | +## Smell Files + +| File | Entries | Lines | Key Topics | +|------|---------|-------|------------| +| [smells/anti-patterns.md](smells/anti-patterns.md) | 10 | 490 | unwrap in libs, String errors, unsafe without SAFETY, clone escape | +| [smells/common-mistakes.md](smells/common-mistakes.md) | 10 | 508 | Arc everywhere, collect then iterate, index loops, OOP thinking | + ## Each Pattern Includes - **Source hyperlink** — permalink to the exact source location