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.
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.
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.
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.22026-08-07 22:42:56 +02:00
sneak
was assigned by clawbot2026-08-07 22:42:57 +02:00
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.
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
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Requested by sneak.
Sets the canonical
.golangci.ymlto 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-levellinters-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; thev2.x.x/@sha256:...strings inprompts/REPO_POLICIES.mdare intentional placeholders and are unchanged.Known informational note: this config does not disable the deprecated
gomodguardlinter, so golangci-lint 2.12.x prints a deprecation warning. Harmless, accepted.Matches dnswatcher PR #96: sneak/dnswatcher#96
Verification:
make checkgreen (prettier fmt-check on all markdown) aftermake fmt;.golangci.ymlsha256 verified as021cc83f...matching the org-standard file.Migrate canonical .golangci.yml to golangci-lint v2 config layoutto Migrate canonical .golangci.yml to v2 schema, bump golangci-lint to v2.12.2Pushed
2390c04onto this branch: records the canonical golangci-lint version inprompts/REPO_POLICIES.mdnext to the existing.golangci.ymlfetch instructions — v2.12.2 (released 2026-05-06), installed commit-pinned viago install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@c0d3ddc9cf3faa61a4e378e879ece580256d76e5— and bumpslast_modifiedto 2026-08-07. Also extended theTODO.mdCompleted 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.ymlis byte-identical to this branch's (blob08a1e63a).make checkis green (prettier fmt-check passes).Migrate canonical .golangci.yml to v2 schema, bump golangci-lint to v2.12.2to Set canonical .golangci.yml to the org-standard v2 config (golangci-lint v2.12.2)