tdl/.golangci.yaml

33 lines
547 B
YAML
Raw Normal View History

2023-09-02 20:46:42 +08:00
run:
timeout: 10m
2023-08-21 13:19:40 +08:00
output:
sort-results: true
linters:
disable-all: true
enable:
- gofumpt
- gosimple
- govet
- goconst
- ineffassign
- misspell
- staticcheck
- nakedret
- unconvert
- unused
- usestdlibvars
- exhaustive
2023-11-11 21:50:11 +08:00
- gci
2023-08-21 13:19:40 +08:00
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