2022-07-02 18:45:50 +02:00
|
|
|
run:
|
|
|
|
concurrency: 2
|
2020-05-04 23:00:21 +02:00
|
|
|
linters:
|
|
|
|
enable-all: false
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- deadcode
|
2022-06-28 03:18:40 +02:00
|
|
|
- depguard
|
2020-05-04 23:00:21 +02:00
|
|
|
- errcheck
|
2022-07-13 01:00:36 +02:00
|
|
|
- gocritic
|
2020-05-04 23:00:21 +02:00
|
|
|
- gocyclo
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
2021-05-19 17:00:13 +02:00
|
|
|
- revive
|
2020-05-04 23:00:21 +02:00
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- lll
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
2022-08-09 22:43:58 +02:00
|
|
|
- nolintlint
|
2020-05-04 23:00:21 +02:00
|
|
|
- staticcheck
|
|
|
|
- structcheck
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
|
|
|
- varcheck
|
|
|
|
linters-settings:
|
2022-06-28 03:18:40 +02:00
|
|
|
depguard:
|
|
|
|
list-type: blacklist
|
|
|
|
include-go-root: true
|
|
|
|
packages:
|
|
|
|
# The io/ioutil package has been deprecated.
|
|
|
|
# https://go.dev/doc/go1.16#ioutil
|
|
|
|
- io/ioutil
|
2022-07-13 02:23:33 +02:00
|
|
|
gocritic:
|
|
|
|
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
|
|
|
|
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
|
|
|
|
enabled-tags:
|
|
|
|
- diagnostic
|
2022-07-13 02:53:08 +02:00
|
|
|
- opinionated
|
2022-07-13 03:10:48 +02:00
|
|
|
- style
|
2022-07-13 02:53:08 +02:00
|
|
|
disabled-checks:
|
|
|
|
- paramTypeCombine
|
|
|
|
- unnamedResult
|
2022-07-13 03:10:48 +02:00
|
|
|
- whyNoLint
|
2020-05-04 23:00:21 +02:00
|
|
|
gocyclo:
|
|
|
|
min-complexity: 16
|
|
|
|
lll:
|
|
|
|
line-length: 200
|
|
|
|
issues:
|
2020-05-04 23:50:00 +02:00
|
|
|
# golangci hides some golint warnings (the warning about exported things
|
|
|
|
# withtout documentation for example), this will make it show them anyway.
|
|
|
|
exclude-use-default: false
|
2020-05-05 17:55:53 +02:00
|
|
|
exclude:
|
|
|
|
- should not use dot imports
|