2021-07-12 12:09:38 +02:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
modules-download-mode: readonly
|
|
|
|
|
|
|
|
linters:
|
2021-08-30 13:36:30 +02:00
|
|
|
disable-all: true
|
|
|
|
fast: false
|
2021-07-12 12:09:38 +02:00
|
|
|
enable:
|
2021-08-30 13:36:30 +02:00
|
|
|
- bodyclose
|
|
|
|
- deadcode
|
|
|
|
- dogsled
|
|
|
|
- durationcheck
|
|
|
|
- errcheck
|
|
|
|
- exportloopref
|
2021-07-25 06:09:38 +02:00
|
|
|
- govet
|
|
|
|
- gosimple
|
2021-08-16 04:35:08 +02:00
|
|
|
- gofmt
|
2021-08-30 13:36:30 +02:00
|
|
|
- gofumpt
|
|
|
|
- goconst
|
|
|
|
- goimports
|
|
|
|
- gomnd
|
2021-08-31 04:14:57 +02:00
|
|
|
- gocyclo
|
2021-08-30 13:36:30 +02:00
|
|
|
- ineffassign
|
|
|
|
- lll
|
|
|
|
- prealloc
|
|
|
|
- revive
|
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
- unconvert
|
|
|
|
- varcheck
|
|
|
|
- whitespace
|
|
|
|
- wastedassign
|
|
|
|
|
|
|
|
# don't enable:
|
|
|
|
# - asciicheck
|
|
|
|
# - scopelint
|
|
|
|
# - gochecknoglobals
|
|
|
|
# - gocognit
|
|
|
|
# - godot
|
|
|
|
# - godox
|
|
|
|
# - goerr113
|
|
|
|
# - interfacer
|
|
|
|
# - maligned
|
|
|
|
# - nestif
|
|
|
|
# - prealloc
|
|
|
|
# - testpackage
|
|
|
|
# - stylrcheck
|
|
|
|
# - wsl
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
check-shadowing: true
|
|
|
|
whitespace:
|
|
|
|
multi-func: true
|
2021-08-31 04:14:57 +02:00
|
|
|
lll:
|
|
|
|
line-length: 160
|
|
|
|
gomnd:
|
2022-01-31 02:50:31 +02:00
|
|
|
# don't include the "operation", "argument" and "assign"
|
|
|
|
checks:
|
|
|
|
- case
|
|
|
|
- condition
|
|
|
|
- return
|
2021-08-31 04:14:57 +02:00
|
|
|
goconst:
|
|
|
|
ignore-tests: true
|
|
|
|
gocyclo:
|
|
|
|
# recommend 10-20
|
|
|
|
min-complexity: 30
|