2026-01-17 16:08:53 +00:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
|
|
run:
|
|
|
|
|
timeout: 5m
|
|
|
|
|
|
|
|
|
|
linters:
|
|
|
|
|
enable:
|
|
|
|
|
- errcheck
|
|
|
|
|
- govet
|
|
|
|
|
- ineffassign
|
|
|
|
|
- staticcheck
|
|
|
|
|
- unused
|
|
|
|
|
- misspell
|
|
|
|
|
- revive
|
|
|
|
|
- unconvert
|
|
|
|
|
- unparam
|
|
|
|
|
- gosec
|
|
|
|
|
|
|
|
|
|
settings:
|
|
|
|
|
errcheck:
|
|
|
|
|
check-type-assertions: true
|
|
|
|
|
|
2026-04-15 03:28:26 +00:00
|
|
|
staticcheck:
|
|
|
|
|
checks:
|
|
|
|
|
- "-SA5011" # t.Fatal stops via runtime.Goexit; nil deref after guard is safe
|
|
|
|
|
|
2026-01-17 16:08:53 +00:00
|
|
|
govet:
|
|
|
|
|
enable-all: true
|
|
|
|
|
disable:
|
|
|
|
|
- shadow
|
|
|
|
|
- fieldalignment
|
|
|
|
|
|
|
|
|
|
revive:
|
|
|
|
|
rules:
|
|
|
|
|
- name: exported
|
|
|
|
|
disabled: true
|
|
|
|
|
- name: package-comments
|
|
|
|
|
disabled: true
|
|
|
|
|
|
|
|
|
|
gosec:
|
|
|
|
|
excludes:
|
|
|
|
|
- G304
|
|
|
|
|
- G306
|
|
|
|
|
|
|
|
|
|
formatters:
|
|
|
|
|
enable:
|
|
|
|
|
- gofmt
|
|
|
|
|
- goimports
|