Set canonical .golangci.yml to the org-standard v2 config (golangci-lint v2.12.2) #24
Reference in New Issue
Block a user
Delete Branch "golangci-v2.12.2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)