Files
johannesandClaude Sonnet 5.5 a94632ea3d chore: delete code comments, add ratchet lint and ADRs
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>
2026-11-21 13:37:32 +01:00

2.6 KiB

Comment audit: lens files

File Tautology Stale Excuse Decision Kept
crates/hx-lens/src/deps.rs 13 0 1 0 0
crates/hx-lens/src/lib.rs 30 0 0 3 0
crates/hx-lens/src/lsp.rs 13 0 0 5 0
crates/hx-lens/src/manager.rs 20 0 1 5 0
crates/hx-lens/src/runners.rs 18 0 0 0 0
crates/hx-lens/src/seq.rs 4 0 0 0 0
crates/hx-lens/src/testrun.rs 26 0 2 0 0
crates/hx-lens/src/triage.rs 7 0 0 0 0
crates/hx-lens/src/watch.rs 5 0 1 0 0
.gitea/workflows/build.yml 2 0 0 6 0
devenv.nix 0 0 0 1 0
flake.nix 2 0 1 2 0
tests/*.sh (11 scripts) 33 0 0 1 11 (shebangs)
tests/.py, examples/.py 13 0 0 2 4 (shebangs)
Total 186 0 6 27 15

No SAFETY comments exist in these files. Counts are comment blocks (consecutive comment lines count once; trailing comments count each); totals are approximate. Comment lines removed: 258.

Excuses (original line)

  • crates/hx-lens/src/deps.rs:3-5: line-based import scanning instead of tree-sitter
  • crates/hx-lens/src/watch.rs:4-5: mtime polling of tracked files, no notify
  • crates/hx-lens/src/testrun.rs:421-428: v1 heuristic test selection, known FPs/misses
  • crates/hx-lens/src/testrun.rs:516: graph rebuilt per report, no cache
  • crates/hx-lens/src/manager.rs:54: clangd has no installer
  • flake.nix:31: doCheck disabled

Decisions (original line)

  • crates/hx-lens/src/lsp.rs:364,378,386-391: wait for on-save flycheck / stale checks (ADR flycheck-settling)
  • tests/all.sh:9; crates/hx-lens/src/lib.rs:764: rust-analyzer test serialized; mtime ordering (flycheck-settling)
  • crates/hx-lens/src/lsp.rs:169: workspace/configuration reply shape (lsp-protocol-quirks)
  • crates/hx-lens/src/manager.rs:288: rustup proxy exits immediately (lsp-protocol-quirks)
  • crates/hx-lens/src/manager.rs:369: retry on -32801/-32802 (lsp-protocol-quirks)
  • crates/hx-lens/src/manager.rs:153,445: outermost root marker wins (lsp-protocol-quirks)
  • crates/hx-lens/src/manager.rs:465: first empty publish must not be taken (lsp-protocol-quirks)
  • crates/hx-lens/src/lib.rs:253,373-374,406: attribute run-time disk changes to hx, re-baseline (external-change-baseline)
  • .gitea/workflows/build.yml:8,34-35,39,61,68,81: version bump, image, node, main ref, exec bit, tag creation (ci-release)
  • devenv.nix:10: stdenv.cc for rquickjs-sys (build-env)
  • flake.nix:33,36: aws-lc-sys cmake; bubblewrap runtime (build-env)
  • tests/tui_smoke.py:7,112-113: realpath cwd; OSC title assertion (build-env)