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 17 additions and 12 deletions
Showing only changes of commit 3f9640b09e - Show all commits

View File

@@ -1,5 +1,9 @@
version: "2"
# Config schema uses the golangci-lint v2 layout (settings live under
# linters.settings, not top-level linters-settings) so that the
# thresholds below are actually applied by golangci-lint >= v2.
run:
timeout: 5m
modules-download-mode: readonly
@@ -14,8 +18,7 @@ linters:
- wsl # Deprecated, replaced by wsl_v5
- wrapcheck # Too verbose for internal packages
- varnamelen # Short names like db, id are idiomatic Go
linters-settings:
settings:
lll:
line-length: 88
funlen:
@@ -27,6 +30,5 @@ linters-settings:
threshold: 100
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0

View File

@@ -21,6 +21,9 @@ fmt-check, and commit.
# Completed Steps
- 2026-08-07: Migrated the canonical `.golangci.yml` to the golangci-lint v2
config layout (settings under `linters.settings`, dropped
`exclude-use-default`).
- 2026-03-20: Strengthened constructor naming and Params struct rules in the Go
styleguide.
- 2026-03-18: Documented fail-fast Dockerfile lint stage and conditional -v test