linters-golang/.golangci.yml

36 lines
594 B
YAML

run:
timeout: 5m
exclude-files:
- \.pb\.go$
- .pb.go
- \.pb\.validate\.go$
- \.pb\.gw\.go$
- .pb.gw.go
- \.gen\.go$
exclude-dirs:
- mocks
- go
tests: false
linters:
disable-all: true
enable:
- errcheck
- govet
- goconst
linters-settings:
goconst:
min-len: 2
min-occurrences: 2
ignore-tests: true
numbers: true
min: 2
max: 1000000
ignore-calls: false
errcheck:
exclude-functions:
- (io.Closer).Close
- (*github.com/gofiber/fiber/v2.Ctx).JSON
- (*github.com/gofiber/fiber/v2.Ctx).Send