linters-golang/.golangci.yml

36 lines
594 B
YAML
Raw Permalink Normal View History

2024-07-21 14:17:46 +00:00
run:
timeout: 5m
2024-08-29 22:05:49 +00:00
exclude-files:
2024-07-21 14:17:46 +00:00
- \.pb\.go$
- .pb.go
- \.pb\.validate\.go$
- \.pb\.gw\.go$
- .pb.gw.go
- \.gen\.go$
2024-08-29 22:05:49 +00:00
exclude-dirs:
2024-07-21 14:17:46 +00:00
- mocks
2024-11-19 21:23:50 +00:00
- go
2024-08-27 17:38:19 +00:00
tests: false
2024-07-21 14:17:46 +00:00
linters:
disable-all: true
enable:
- errcheck
2024-08-28 18:19:23 +00:00
- govet
- goconst
2024-07-21 14:17:46 +00:00
linters-settings:
goconst:
min-len: 2
min-occurrences: 2
ignore-tests: true
numbers: true
min: 2
max: 1000000
ignore-calls: false
2024-07-21 14:17:46 +00:00
errcheck:
exclude-functions:
- (io.Closer).Close
- (*github.com/gofiber/fiber/v2.Ctx).JSON
- (*github.com/gofiber/fiber/v2.Ctx).Send