2022-07-02 18:45:50 +02:00
|
|
|
run:
|
|
|
|
concurrency: 2
|
2022-08-12 15:05:52 +02:00
|
|
|
timeout: 10m
|
2020-05-04 23:00:21 +02:00
|
|
|
linters:
|
|
|
|
enable-all: false
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
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
|
2022-11-07 20:07:41 +01:00
|
|
|
- gomodguard
|
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
|
|
|
|
- typecheck
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
|
|
|
- unused
|
|
|
|
linters-settings:
|
2022-09-06 23:59:11 +02:00
|
|
|
revive:
|
|
|
|
rules:
|
|
|
|
- name: package-comments
|
|
|
|
disabled: true
|
2022-06-28 03:18:40 +02:00
|
|
|
depguard:
|
2022-08-19 17:18:28 +02:00
|
|
|
list-type: denylist
|
2022-06-28 03:18:40 +02:00
|
|
|
include-go-root: true
|
|
|
|
packages:
|
|
|
|
# The io/ioutil package has been deprecated.
|
|
|
|
# https://go.dev/doc/go1.16#ioutil
|
|
|
|
- io/ioutil
|
2022-11-07 20:07:41 +01:00
|
|
|
gomodguard:
|
|
|
|
blocked:
|
|
|
|
versions:
|
|
|
|
- gotest.tools:
|
|
|
|
version: "< 3.0.0"
|
|
|
|
reason: "deprecated, pre-modules version"
|
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
|