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
@@ -5,7 +5,6 @@ on:
|
||||
paths-ignore: [bin.json]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
# next version = highest vX.Y.Z tag with the patch bumped; push a tag by hand for minor/major
|
||||
version:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
@@ -31,19 +30,14 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target: [x86_64-unknown-linux-musl, aarch64-apple-darwin]
|
||||
# rust, zig, cargo-zigbuild, both targets and a macOS SDK (SDKROOT) prebuilt;
|
||||
# the runner keeps the pulled image, so no per-run toolchain/SDK setup
|
||||
container:
|
||||
image: ghcr.io/rust-cross/cargo-zigbuild:0.24.1
|
||||
steps:
|
||||
# the image has no node, which act_runner needs for the JS actions below
|
||||
- run: |
|
||||
case "$(uname -m)" in x86_64) a=x64 ;; aarch64) a=arm64 ;; esac
|
||||
curl -fsSL "https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-$a.tar.xz" \
|
||||
| tar -xJ -C /usr/local --strip-components=1
|
||||
- uses: actions/checkout@v4
|
||||
# caches ~/.cargo registry/git and target/, keyed on Cargo.lock + toolchain;
|
||||
# a no-op until the runner's cache server is enabled
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: ${{ matrix.target }}
|
||||
@@ -58,14 +52,12 @@ jobs:
|
||||
needs: [build, version]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# main, not the build sha: bin.json is committed on top of it
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: dist
|
||||
# artifacts lose the executable bit, restore it before packaging
|
||||
- working-directory: dist
|
||||
run: |
|
||||
for t in hx-*; do
|
||||
@@ -78,7 +70,6 @@ jobs:
|
||||
API: ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}
|
||||
TAG: v${{ needs.version.outputs.version }}
|
||||
SHA: ${{ gitea.sha }}
|
||||
# Gitea creates the tag at target_commitish when it doesn't exist
|
||||
run: |
|
||||
id=$(curl -fsS -X POST -H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
|
||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"target_commitish\":\"$SHA\"}" "$API/releases" | jq -r .id)
|
||||
@@ -86,7 +77,6 @@ jobs:
|
||||
curl -fsS -X POST -H "Authorization: token $TOKEN" \
|
||||
-F "attachment=@$f" "$API/releases/$id/assets?name=$(basename "$f")"
|
||||
done
|
||||
# flake.nix reads bin.json to fetch these tarballs instead of building from source
|
||||
- env:
|
||||
VERSION: ${{ needs.version.outputs.version }}
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user