Skip to content

chore: migrate .golangci.yml to golangci-lint v2 config format#269

Open
prdai wants to merge 3 commits intouber-go:masterfrom
prdai-archive:migrate/v2-golangci-config
Open

chore: migrate .golangci.yml to golangci-lint v2 config format#269
prdai wants to merge 3 commits intouber-go:masterfrom
prdai-archive:migrate/v2-golangci-config

Conversation

@prdai
Copy link
Copy Markdown

@prdai prdai commented May 3, 2026

Summary

Migrates .golangci.yml to the golangci-lint v2 configuration schema so contributors using current golangci-lint versions can run linting without first having to run golangci-lint migrate locally.

Closes #268.

Changes

  • Added version: "2".
  • Moved goimports from linters.enable to formatters.enable (formatters now live in their own section in v2).
  • Removed golint, which has been deprecated and removed in newer golangci-lint versions.
  • Removed issues.exclude-use-default: false, since not applying default exclusion presets is the v2 default.
  • Preserved run.timeout, run.modules-download-mode, the remaining linters (errcheck, govet, staticcheck), and issues.max-issues-per-linter / max-same-issues.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 3, 2026

CLA assistant check
All committers have signed the CLA.

prdai added 2 commits May 3, 2026 18:47
the previous commit just random golangci-lint migrate which does not
properly migrate things over
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Update .golangci.yml to golangci-lint v2 config format

2 participants