Classify every comment as tautology, stale, excuse or decision record. Tautology/stale/excuse comments are deleted (excuses filed as issues #196-#236), decisions moved to docs/adr/0001-0034. - scripts/lint-comments.sh + .comment-baseline: per-file comment count may only go down; wired into tests/all.sh - .claude/skills/delete-comment: repeatable audit workflow - cargo fmt applied to touched crates Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
48 lines
1.8 KiB
Markdown
48 lines
1.8 KiB
Markdown
# Comment audit: hx-tui
|
|
|
|
| file | tautology | stale | excuse | decision | kept |
|
|
|---|---|---|---|---|---|
|
|
| agents.rs | 8 | 0 | 0 | 0 | 0 |
|
|
| btw_view.rs | 2 | 0 | 0 | 0 | 0 |
|
|
| choose.rs | 13 | 0 | 0 | 0 | 0 |
|
|
| doc_view.rs | 4 | 0 | 0 | 0 | 0 |
|
|
| editor.rs | 12 | 0 | 1 | 1 | 0 |
|
|
| lib.rs | 99 | 2 | 0 | 8 | 0 |
|
|
| markdown.rs | 9 | 0 | 0 | 1 | 0 |
|
|
| permit_view.rs | 4 | 0 | 0 | 0 | 0 |
|
|
| picker.rs | 15 | 0 | 0 | 0 | 0 |
|
|
| popup.rs | 9 | 0 | 0 | 1 | 0 |
|
|
| review.rs | 13 | 0 | 0 | 1 | 0 |
|
|
| scroll.rs | 7 | 0 | 0 | 1 | 0 |
|
|
| select.rs | 9 | 0 | 1 | 2 | 0 |
|
|
| sessions.rs | 13 | 0 | 0 | 0 | 0 |
|
|
| stats_view.rs | 1 | 0 | 0 | 0 | 0 |
|
|
| status.rs | 26 | 0 | 0 | 0 | 0 |
|
|
| theme.rs | 15 | 0 | 0 | 1 | 0 |
|
|
| transcript.rs | 24 | 0 | 0 | 0 | 0 |
|
|
| total | 283 | 2 | 2 | 16 | 0 |
|
|
|
|
Stale: lib.rs:700 (doc "Sessions live next to the current one." on spread_line), lib.rs:1115 ("Returns a line to submit" on fn returning nothing).
|
|
|
|
## Excuses (original lines)
|
|
- editor.rs:160 chars not cell width in wrapping
|
|
- select.rs:81 assumed space at soft wrap
|
|
|
|
## Decisions (original lines)
|
|
- lib.rs:285 keyboard support query before alternate screen
|
|
- lib.rs:425 kitty / tmux shift-enter handling
|
|
- lib.rs:439 panic hook restores terminal modes
|
|
- lib.rs:453 bracketed paste
|
|
- lib.rs:460 16 ms redraw throttle
|
|
- lib.rs:662 200 ms timeout on lens poll (manager lock)
|
|
- lib.rs:1342 @file completion waits for Tab
|
|
- lib.rs:1463 unchanged prompt not rewritten (prompt cache)
|
|
- editor.rs:23 strip control chars from paste
|
|
- select.rs:1 content-coordinate selection
|
|
- select.rs:10 OSC 52 size cap
|
|
- review.rs:560 revert refuses to overwrite manual edits
|
|
- popup.rs:34 Enter passes through on complete token
|
|
- scroll.rs:1 follow vs pinned scroll
|
|
- markdown.rs:1 half-streamed input tolerance
|
|
- theme.rs:1 no background painting / colour policy
|