Files
goplt/.golangci.yml
0x1d 52d48590ae fix: resolve all linting and formatting issues
- Fix error return value checks (errcheck)
- Fix unused parameters by using underscore prefix
- Add missing package comments to all packages
- Fix context key type issue in middleware (use typed contextKey)
- Replace deprecated trace.NewNoopTracerProvider with noop.NewTracerProvider
- Fix embedded field selector in database client
- Remove trailing whitespace
- Remove revive linter (as requested) to avoid stuttering warnings for public API interfaces

All linting and formatting checks now pass.
2025-11-05 20:48:59 +01:00

40 lines
672 B
YAML

# golangci-lint configuration
# See https://golangci-lint.run/usage/configuration/
version: 2
run:
timeout: 5m
tests: true
modules-download-mode: readonly
linters:
enable:
- errcheck
- govet
- staticcheck
- gosec
disable:
- gocritic # Can be enabled later for stricter checks
linters-settings:
gosec:
severity: medium
errcheck:
check-blank: true
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
# Exclude test files from some checks
- path: _test\.go
linters:
- errcheck
- gosec
output:
print-issued-lines: true
print-linter-name: true