You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.0 KiB
69 lines
1.0 KiB
2 years ago
|
run:
|
||
|
timeout: 5m
|
||
|
modules-download-mode: readonly
|
||
|
|
||
|
linters:
|
||
|
disable-all: true
|
||
|
fast: false
|
||
|
enable:
|
||
|
- bodyclose
|
||
|
- deadcode
|
||
|
- dogsled
|
||
|
- durationcheck
|
||
|
- errcheck
|
||
|
- exportloopref
|
||
|
- govet
|
||
|
- gosimple
|
||
|
- gofmt
|
||
|
- gofumpt
|
||
|
- goconst
|
||
|
- goimports
|
||
|
- gomnd
|
||
|
- gocyclo
|
||
|
- ineffassign
|
||
|
- lll
|
||
|
- prealloc
|
||
|
- revive
|
||
|
- staticcheck
|
||
|
- structcheck
|
||
|
- typecheck
|
||
|
- unused
|
||
|
- 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
|
||
|
lll:
|
||
|
line-length: 160
|
||
|
gomnd:
|
||
|
# don't include the "operation", "argument" and "assign"
|
||
|
checks:
|
||
|
- case
|
||
|
- condition
|
||
|
- return
|
||
|
goconst:
|
||
|
ignore-tests: true
|
||
|
gocyclo:
|
||
|
# recommend 10-20
|
||
|
min-complexity: 50
|