Files
upstream-centrifugo/.golangci.yml
upstream-mirror b352a9a30d
Some checks failed
test / Lint (push) Failing after 3s
test / Test with Go 1.26.8 (push) Failing after 2s
snapshot of https://github.com/centrifugal/centrifugo.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 01:17:21 +05:00

36 lines
1.1 KiB
YAML

version: "2"
linters:
default: none
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- bodyclose
- gosec
settings:
staticcheck:
checks:
- "all"
- "-ST1001" # Excludes dot imports check
- "-ST1003" # Excludes bad variable names check, sth to refactor.
- "-QF1008" # Prefer explicit access to fields.
- "-ST1000" # No need in package comment check.
- "-QF1003" # Tagged switch cases.
- "-QF1012" # Use fmt.Fprintf(...) instead of Write([]byte.
- "-S1000" # should use for range instead of for { select {} }.
- "-S1037" # should use time.Sleep instead of elaborate way of sleeping.
- "-ST1020" # comment on exported method - sth to fix.
- "-ST1016" # stable receivers names - sth to fix.
gosec:
excludes:
- "G115" # Integer overflow check - sth to fix.
exclusions:
rules:
- path: "_test\\.go"
linters:
- bodyclose # Disable in tests, sth to fix.
- gosec # Disable in tests, sth to fix.