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
2 changed files with 7 additions and 3 deletions
Showing only changes of commit 2390c04450 - Show all commits

View File

@@ -25,7 +25,8 @@ fmt-check, and commit.
schema via `golangci-lint migrate` under v2.12.2 (settings under schema via `golangci-lint migrate` under v2.12.2 (settings under
`linters.settings`, explicit `exclusions` and `formatters` blocks, `linters.settings`, explicit `exclusions` and `formatters` blocks,
`gomodguard` disabled in favor of `gomodguard_v2`; `gci` intentionally not `gomodguard` disabled in favor of `gomodguard_v2`; `gci` intentionally not
enabled). enabled). Recorded the canonical golangci-lint version (v2.12.2,
commit-pinned) in REPO_POLICIES.md.
- 2026-03-20: Strengthened constructor naming and Params struct rules in the Go - 2026-03-20: Strengthened constructor naming and Params struct rules in the Go
styleguide. styleguide.
- 2026-03-18: Documented fail-fast Dockerfile lint stage and conditional -v test - 2026-03-18: Documented fail-fast Dockerfile lint stage and conditional -v test

View File

@@ -1,6 +1,6 @@
--- ---
title: Repository Policies title: Repository Policies
last_modified: 2026-07-06 last_modified: 2026-08-07
--- ---
This document covers repository structure, tooling, and workflow standards. Code This document covers repository structure, tooling, and workflow standards. Code
@@ -260,7 +260,10 @@ style conventions are in separate documents:
- `.golangci.yml` is standardized and must _NEVER_ be modified by an agent, only - `.golangci.yml` is standardized and must _NEVER_ be modified by an agent, only
manually by the user. Fetch from manually by the user. Fetch from
`https://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml`. `https://git.eeqj.de/sneak/prompts/raw/branch/main/.golangci.yml`. The
canonical golangci-lint version is v2.12.2 (released 2026-05-06), installed
commit-pinned via
`go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@c0d3ddc9cf3faa61a4e378e879ece580256d76e5`.
- When pinning images or packages by hash, add a comment above the reference - When pinning images or packages by hash, add a comment above the reference
with the version and date (YYYY-MM-DD). with the version and date (YYYY-MM-DD).