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>
This commit is contained in:
1 parent
0545702fe0
commit
a94632ea3d
131 files changed
+1051
-1746
No files matched your search
+1
-2
@@ -1,12 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Full local check: fmt, clippy, unit tests, all e2e scripts.
|
||||
cd "$(dirname "$0")/.."
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
set -e
|
||||
bash scripts/lint-comments.sh
|
||||
cargo fmt --all --check
|
||||
cargo clippy -q --workspace --all-targets -- -D warnings
|
||||
log=$(mktemp)
|
||||
# rust-analyzer test runs alone: under parallel cargo load its flycheck can publish stale results (see issue)
|
||||
cargo test -q --workspace -- --skip rust_analyzer_turn_end >"$log" 2>&1 || { grep -E 'FAILED|panicked' -A4 "$log"; exit 1; }
|
||||
cargo test -q -p hx-lens rust_analyzer_turn_end >>"$log" 2>&1 || { grep -E 'FAILED|panicked' -A4 "$log"; exit 1; }
|
||||
grep -oE 'ok. [0-9]+ passed' "$log" | awk '{s+=$2} END {print s" unit tests ok"}'
|
||||
|
||||
Reference in new issue
Block a user