Make the golangci-lint settings take effect: v2 config layout, linter pinned at v2.12.2 (closes #10) #4

Merged
clawbot merged 1 commits from golangci-v2.12.2 into next 2026-10-06 03:26:52 +02:00
Collaborator

Tracked by #10.

golangci-lint v2 ignores a top-level linters-settings block without a warning, so the settings in .golangci.yml, the 88-column lll limit among them, were never applied.

  • .golangci.yml is the current canonical copy from sneak/prompts, byte for byte. Its settings live under linters.settings. It also enables gomodguard_v2 and configures depguard, which the August version of this PR did not have.
  • golangci-lint is pinned at v2.12.2 in Dockerfile and script/bootstrap by commit c0d3ddc9cf3faa61a4e378e879ece580256d76e5 (the commit the v2.12.2 tag points to), with a dated comment.
  • Long lines in attrsum.go are rewrapped, and one nolint:gosec directive moves to the line above the call it covers. Behaviour is unchanged.
  • TODO.md gets a Completed Steps entry.

The branch is rebased onto next, and the version stamping there is left as it is.

Deviation: REPO_POLICIES.md pins golangci-lint as the digest of the golangci/golangci-lint image and installs no linter on the host. This PR keeps the go install pins, as the issue asks; #5 moves linting into that image.

Judgement call: the pin date in script/bootstrap is one comment shared by both pins, so it now reads 2026-10-05 for the unchanged goimports pin as well.

Model: opus-5-5

Tracked by https://git.eeqj.de/sneak/attrsum/issues/10. golangci-lint v2 ignores a top-level `linters-settings` block without a warning, so the settings in `.golangci.yml`, the 88-column `lll` limit among them, were never applied. - `.golangci.yml` is the current canonical copy from `sneak/prompts`, byte for byte. Its settings live under `linters.settings`. It also enables `gomodguard_v2` and configures `depguard`, which the August version of this PR did not have. - golangci-lint is pinned at v2.12.2 in `Dockerfile` and `script/bootstrap` by commit `c0d3ddc9cf3faa61a4e378e879ece580256d76e5` (the commit the `v2.12.2` tag points to), with a dated comment. - Long lines in `attrsum.go` are rewrapped, and one `nolint:gosec` directive moves to the line above the call it covers. Behaviour is unchanged. - `TODO.md` gets a Completed Steps entry. The branch is rebased onto `next`, and the version stamping there is left as it is. Deviation: `REPO_POLICIES.md` pins golangci-lint as the digest of the `golangci/golangci-lint` image and installs no linter on the host. This PR keeps the `go install` pins, as the issue asks; https://git.eeqj.de/sneak/attrsum/issues/5 moves linting into that image. Judgement call: the pin date in `script/bootstrap` is one comment shared by both pins, so it now reads 2026-10-05 for the unchanged `goimports` pin as well. Model: opus-5-5
clawbot self-assigned this 2026-08-10 15:46:33 +02:00
clawbot changed target branch from main to next 2026-10-03 14:22:56 +02:00
clawbot added the needs-rebase label 2026-10-03 14:23:01 +02:00
Author
Collaborator

Retargeted from main to next. State: needs-rebase (conflicts with next in TODO.md). Tracked by #10, whose plan comment is the brief for the rebase worker; not dispatched yet.

Model: opus-5-5

Retargeted from `main` to `next`. State: `needs-rebase` (conflicts with `next` in `TODO.md`). Tracked by https://git.eeqj.de/sneak/attrsum/issues/10, whose plan comment is the brief for the rebase worker; not dispatched yet. Model: opus-5-5
clawbot force-pushed golangci-v2.12.2 from a5d4cd6c13 to 0d9a47623b 2026-10-06 01:44:53 +02:00 Compare
clawbot changed title from Update golangci-lint to v2.12.2 with canonical config to Make the golangci-lint settings take effect: v2 config layout, linter pinned at v2.12.2 (closes #10) 2026-10-06 01:44:59 +02:00
clawbot added needs-review and removed needs-rebase labels 2026-10-06 01:45:03 +02:00
clawbot added needs-rebase and removed needs-review labels 2026-10-06 02:00:24 +02:00
clawbot added 1 commit 2026-10-06 02:25:57 +02:00
golangci-lint v2 ignores a top-level linters-settings block without a
warning, so limits such as the 88-column line length were never
applied. .golangci.yml is now the canonical copy from sneak/prompts,
verbatim, which keeps its settings under linters.settings and also
configures depguard and gomodguard_v2. golangci-lint is pinned at
v2.12.2 by commit in the Dockerfile and script/bootstrap. The long
lines in attrsum.go are rewrapped and one nolint directive moves to
its own line; behaviour is unchanged.

Model: opus-5-5
clawbot force-pushed golangci-v2.12.2 from 0d9a47623b to 15f0c263c8 2026-10-06 02:25:57 +02:00 Compare
clawbot added needs-review and removed needs-rebase labels 2026-10-06 02:26:03 +02:00
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit 30b36dabe4 into next 2026-10-06 03:26:52 +02:00
clawbot deleted branch golangci-v2.12.2 2026-10-06 03:26:53 +02:00
Sign in to join this conversation.