forgejo-mcp/.golangci.yml
Christoph Görn 59c86b6a40
chore: 🔧 migrate .golangci.yml to v2 config; drop pointless Sprintf
Local linters updated (staticcheck 2026.1/v0.7.0, golangci-lint 2.12.2)
to work with go 1.25+; old binaries crashed on the toolchain. Config
auto-migrated via 'golangci-lint migrate'. Remaining 207-finding lint
backlog triaged in bead forgejo-mcp-hc9.

S1039: attachment.go used fmt.Sprintf on a constant string.
2026-06-10 23:59:08 +02:00

55 lines
933 B
YAML

version: "2"
run:
modules-download-mode: readonly
tests: true
linters:
default: none
enable:
- bodyclose
- errcheck
- errorlint
- govet
- ineffassign
- misspell
- staticcheck
- unused
settings:
errcheck:
check-type-assertions: false
check-blank: false
govet:
disable:
- fieldalignment
- shadow
enable-all: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- bodyclose
- errcheck
path: _test\.go
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt
settings:
gofmt:
simplify: true
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$