docs: update README with smell files

This commit is contained in:
Rodin
2026-04-30 16:03:58 -07:00
parent f270fc68c1
commit 70d97023cf
+8 -1
View File
@@ -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<Mutex> everywhere, collect then iterate, index loops, OOP thinking |
## Each Pattern Includes
- **Source hyperlink** — permalink to the exact source location