Set canonical .golangci.yml to the org-standard v2 config (golangci-lint v2.12.2) #24

Merged
sneak merged 4 commits from golangci-v2.12.2 into main 2026-08-07 23:24:06 +02:00
Collaborator

Requested by sneak.

Sets the canonical .golangci.yml to the org-standard v2-schema config already deployed byte-identical across the org's Go repos (vaultik, sfdupes, attrsum, upaas, simplelog, mfer, secret, rgoue, bsfirehose). sha256: 021cc83f4e6fc7c31b95b34b846723dfcf20b66b7baeea1dc40406e643346bcb.

Why: settings live under linters.settings, so the lll/funlen/cyclop/dupl thresholds actually apply under golangci-lint v2. The old canonical file kept them under top-level linters-settings, which v2 ignores.

Version note: golangci-lint v2.12.2 tag = commit c0d3ddc9cf3faa61a4e378e879ece580256d76e5, recorded for consuming repos. This repo itself has no version pins; the v2.x.x / @sha256:... strings in prompts/REPO_POLICIES.md are intentional placeholders and are unchanged.

Known informational note: this config does not disable the deprecated gomodguard linter, so golangci-lint 2.12.x prints a deprecation warning. Harmless, accepted.

Matches dnswatcher PR #96: sneak/dnswatcher#96

Verification: make check green (prettier fmt-check on all markdown) after make fmt; .golangci.yml sha256 verified as 021cc83f... matching the org-standard file.

Requested by sneak. Sets the canonical `.golangci.yml` to the org-standard v2-schema config already deployed byte-identical across the org's Go repos (vaultik, sfdupes, attrsum, upaas, simplelog, mfer, secret, rgoue, bsfirehose). sha256: `021cc83f4e6fc7c31b95b34b846723dfcf20b66b7baeea1dc40406e643346bcb`. Why: settings live under `linters.settings`, so the lll/funlen/cyclop/dupl thresholds actually apply under golangci-lint v2. The old canonical file kept them under top-level `linters-settings`, which v2 ignores. Version note: golangci-lint v2.12.2 tag = commit `c0d3ddc9cf3faa61a4e378e879ece580256d76e5`, recorded for consuming repos. This repo itself has no version pins; the `v2.x.x` / `@sha256:...` strings in `prompts/REPO_POLICIES.md` are intentional placeholders and are unchanged. Known informational note: this config does not disable the deprecated `gomodguard` linter, so golangci-lint 2.12.x prints a deprecation warning. Harmless, accepted. Matches dnswatcher PR #96: https://git.eeqj.de/sneak/dnswatcher/pulls/96 Verification: `make check` green (prettier fmt-check on all markdown) after `make fmt`; `.golangci.yml` sha256 verified as `021cc83f...` matching the org-standard file.
clawbot added 1 commit 2026-08-07 18:45:01 +02:00
Migrate canonical .golangci.yml to golangci-lint v2 config layout
All checks were successful
check / check (push) Successful in 6s
3f9640b09e
Move linter settings from the broken v1-style top-level linters-settings
key to linters.settings so golangci-lint >= v2 actually applies the
thresholds, and drop issues.exclude-use-default, which no longer exists
in the v2 schema. Add a comment documenting the v2 layout requirement.

Record the change in TODO.md Completed Steps.
clawbot added 1 commit 2026-08-07 22:42:32 +02:00
golangci: sync canonical config with golangci-lint migrate output for v2.12.2
All checks were successful
check / check (push) Successful in 9s
c28b817bd4
Replace the hand-migrated v2 config with the exact output of
golangci-lint migrate under v2.12.2, applied and verified on
dnswatcher (sha256 8804ff50ebba0e8b4129a03600137040421e43aef9b4054a626abfd13767b28b):

- disable deprecated gomodguard (gomodguard_v2 stays enabled via
  default: all; identical behavior, resolves the deprecation warning)
- add linters.exclusions and formatters.exclusions (generated: lax,
  default path excludes) replicating v1 defaults
- add explicit formatters block (gofmt, gofumpt, goimports); gci is
  intentionally not enabled because its two-group import ordering
  conflicts with the org's stdlib/third-party/local script/fmt style
- drop the explanatory header comment so the file is byte-identical
  with the verified copy consuming repos fetch

Update the TODO.md Completed Steps entry to match.
clawbot changed title from Migrate canonical .golangci.yml to golangci-lint v2 config layout to Migrate canonical .golangci.yml to v2 schema, bump golangci-lint to v2.12.2 2026-08-07 22:42:56 +02:00
sneak was assigned by clawbot 2026-08-07 22:42:57 +02:00
clawbot added 1 commit 2026-08-07 22:44:23 +02:00
policy: record canonical golangci-lint version v2.12.2 in REPO_POLICIES.md
All checks were successful
check / check (push) Successful in 7s
2390c04450
The canonical config now targets golangci-lint v2.12.2 (released
2026-05-06), installed commit-pinned via go install at
c0d3ddc9cf3faa61a4e378e879ece580256d76e5. Record that version next to
the .golangci.yml fetch instructions so consuming repos pin the same
linter the canonical config is written for, and bump last_modified.
Author
Collaborator

Pushed 2390c04 onto this branch: records the canonical golangci-lint version in prompts/REPO_POLICIES.md next to the existing .golangci.yml fetch instructions — v2.12.2 (released 2026-05-06), installed commit-pinned via go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@c0d3ddc9cf3faa61a4e378e879ece580256d76e5 — and bumps last_modified to 2026-08-07. Also extended the TODO.md Completed Steps entry accordingly. Requested by sneak on 2026-08-07 ("update the prompts repo as well: version bump and bump the config file to the new canonical") alongside sneak/dnswatcher#96, whose .golangci.yml is byte-identical to this branch's (blob 08a1e63a). make check is green (prettier fmt-check passes).

Pushed `2390c04` onto this branch: records the canonical golangci-lint version in `prompts/REPO_POLICIES.md` next to the existing `.golangci.yml` fetch instructions — v2.12.2 (released 2026-05-06), installed commit-pinned via `go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@c0d3ddc9cf3faa61a4e378e879ece580256d76e5` — and bumps `last_modified` to 2026-08-07. Also extended the `TODO.md` Completed Steps entry accordingly. Requested by sneak on 2026-08-07 ("update the prompts repo as well: version bump and bump the config file to the new canonical") alongside sneak/dnswatcher#96, whose `.golangci.yml` is byte-identical to this branch's (blob `08a1e63a`). `make check` is green (prettier fmt-check passes).
clawbot added 1 commit 2026-08-07 22:56:55 +02:00
golangci: set canonical config to the org-standard v2 file, note v2.12.2
All checks were successful
check / check (push) Successful in 7s
81c1a368d0
clawbot changed title from Migrate canonical .golangci.yml to v2 schema, bump golangci-lint to v2.12.2 to Set canonical .golangci.yml to the org-standard v2 config (golangci-lint v2.12.2) 2026-08-07 22:57:05 +02:00
clawbot added the merge-ready label 2026-08-07 23:01:55 +02:00
sneak merged commit 0f8efafe68 into main 2026-08-07 23:24:06 +02:00
sneak deleted branch golangci-v2.12.2 2026-08-07 23:24:06 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/prompts#24