tdl/.golangci.yaml
2023-11-11 21:50:11 +08:00

33 lines
547 B
YAML

run:
timeout: 10m
output:
sort-results: true
linters:
disable-all: true
enable:
- gofumpt
- gosimple
- govet
- goconst
- ineffassign
- misspell
- staticcheck
- nakedret
- unconvert
- unused
- usestdlibvars
- exhaustive
- gci
linters-settings:
exhaustive:
default-signifies-exhaustive: true
gci:
sections:
- standard
- default
- prefix(github.com/iyear/tdl)
- dot
custom-order: true
nakedret:
max-func-lines: 0 # force to use explicit return