2019-11-09 14:41:31 +00:00
|
|
|
run:
|
|
|
|
# timeout for analysis
|
2024-06-02 21:47:17 +00:00
|
|
|
timeout: 4m
|
2019-11-09 14:41:31 +00:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
# Don't report about shadowed variables
|
|
|
|
check-shadowing: false
|
|
|
|
gofmt:
|
|
|
|
# simplify code: gofmt with `-s` option, true by default
|
|
|
|
simplify: true
|
2022-07-18 07:24:17 +00:00
|
|
|
whitespace:
|
|
|
|
multi-func: true
|
|
|
|
multi-if: true
|
2024-06-02 21:47:17 +00:00
|
|
|
tagliatelle:
|
2022-07-18 07:24:17 +00:00
|
|
|
case:
|
|
|
|
rules:
|
|
|
|
json: snake
|
2022-07-18 07:50:27 +00:00
|
|
|
staticcheck:
|
|
|
|
go: "1.18"
|
|
|
|
checks: ["-SA1019"]
|
2023-09-18 16:35:01 +00:00
|
|
|
gomoddirectives:
|
|
|
|
replace-allow-list:
|
|
|
|
# See go.mod for the explanation why these are needed.
|
|
|
|
- google.golang.org/protobuf
|
|
|
|
|
2019-11-09 14:41:31 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
- gochecknoglobals
|
2020-01-04 22:58:10 +00:00
|
|
|
- gosec
|
|
|
|
- funlen
|
2022-07-18 07:24:17 +00:00
|
|
|
- varnamelen
|
|
|
|
- wrapcheck
|
|
|
|
- testpackage
|
|
|
|
- gomnd
|
2024-06-02 21:47:17 +00:00
|
|
|
- err113
|
2022-07-18 07:24:17 +00:00
|
|
|
- exhaustruct
|
2022-07-18 07:50:27 +00:00
|
|
|
- forbidigo
|
|
|
|
- gocognit
|
|
|
|
- nestif
|
|
|
|
- wsl
|
|
|
|
- cyclop
|
|
|
|
- gocyclo
|
|
|
|
- nlreturn
|
|
|
|
- stylecheck
|
|
|
|
- paralleltest
|
|
|
|
- ireturn
|
|
|
|
- maintidx
|
|
|
|
- noctx
|
|
|
|
- gofumpt
|
2023-04-01 13:21:03 +00:00
|
|
|
- exhaustive
|
2024-06-02 21:47:17 +00:00
|
|
|
- protogetter
|
|
|
|
- depguard
|
|
|
|
- mnd
|
2020-01-04 22:58:10 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: cmd/chantools
|
|
|
|
linters:
|
2023-09-18 16:35:01 +00:00
|
|
|
- lll
|