Section 15 of 25
Size limits
Contents
| Unit | Warning threshold | What to do |
|---|---|---|
| file | 1,500 lines of code (without tests) | split into a folder with the same role, section 6.1 |
| slice | 15,000 lines | split into sub-slices |
core |
60,000 lines | move a group into core-<group>, section 5.3 |
| Tauri command | 10 lines | move the logic into service.rs |
AppState field |
one noun | see section 11 |
Files over the threshold on the day you adopt SLAT go on a baseline list. The list may only shrink.