2 Commits
Author SHA1 Message Date
clawbot 6377483b63 Reformat the Markdown with make fmt
check / check (push) Successful in 3m33s
Output of make fmt alone, so make fmt-check starts green. It changes
line wrapping, table padding, list markers and emphasis markers, and no
words. REPO_POLICIES.md was already formatted and is unchanged.

Model: opus-5-5
2026-10-03 04:08:53 +00:00
clawbot 1a8fe557ff Format the Markdown with prettier in make fmt and make fmt-check (closes #215)
make fmt and make fmt-check covered only Go, so Markdown formatting was
checked by eye. prettier, pinned in package.json and yarn.lock beside
ESLint and installed by the same js-deps stage, now formats every
Markdown file with the settings in .prettierrc (4-space tabs, prose
wrapped). It runs only in Docker: make fmt writes the formatted files
back from the markdown-output stage, and make fmt-check and the image
build run the markdown-check stage. The Dockerfile's lint stage now
runs the gofmt check itself, since make fmt-check needs a docker daemon.

Model: opus-5-5
2026-10-03 04:08:38 +00:00
3 changed files with 7 additions and 9 deletions
-2
View File
@@ -4,8 +4,6 @@
# compile on Alpine musl (off64_t is a glibc type). # compile on Alpine musl (off64_t is a glibc type).
FROM golangci/golangci-lint:v2.12.2@sha256:5cceeef04e53efe1470638d4b4b4f5ceefd574955ab3941b2d9a68a8c9ad5240 AS lint FROM golangci/golangci-lint:v2.12.2@sha256:5cceeef04e53efe1470638d4b4b4f5ceefd574955ab3941b2d9a68a8c9ad5240 AS lint
RUN apt-get update && apt-get install -y --no-install-recommends make && rm -rf /var/lib/apt/lists/*
WORKDIR /src WORKDIR /src
# Copy go mod files first for better layer caching # Copy go mod files first for better layer caching
+3 -3
View File
@@ -3360,9 +3360,9 @@ The Dockerfile uses a multi-stage build. Each stage is pinned by digest, and the
lint and builder stages are separate images so the linter's version is fixed lint and builder stages are separate images so the linter's version is fixed
independently of the compiler's: independently of the compiler's:
1. **Lint stage** (`golangci/golangci-lint:v2.12.2`, Debian-based) — installs 1. **Lint stage** (`golangci/golangci-lint:v2.12.2`, Debian-based) — downloads
`make`, downloads dependencies, copies the source, and runs the `gofmt` dependencies, copies the source, and runs the `gofmt` check, then
check, then `script/assets` to extract Alpine.js from `3p/`, then `script/assets` to extract Alpine.js from `3p/`, then
`golangci-lint config verify` and `golangci-lint run`, both with `golangci-lint config verify` and `golangci-lint run`, both with
`--network=none`. `--network=none`.
2. **Stylesheet stages** (`debian:bookworm-slim`, with the Tailwind standalone 2. **Stylesheet stages** (`debian:bookworm-slim`, with the Tailwind standalone
+4 -4
View File
@@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# script/cibuild: run the CI build. The Dockerfile runs the checks # script/cibuild: run the CI build. The Dockerfile runs the checks (the
# (make fmt-check, lint, test), so a successful build implies a green # gofmt check, golangci-lint, the stylesheet check, ESLint, the Markdown
# repo. Generic: needs no adaptation. The Gitea workflow runs this on # check, make test), so a successful build implies a green repo. Generic:
# push. # needs no adaptation. The Gitea workflow runs this on push.
set -eu set -eu
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"