mirror of
https://github.com/guggero/chantools
synced 2024-11-01 15:40:11 +00:00
72 lines
1.2 KiB
YAML
72 lines
1.2 KiB
YAML
run:
|
|
# timeout for analysis
|
|
deadline: 4m
|
|
|
|
linters-settings:
|
|
govet:
|
|
# Don't report about shadowed variables
|
|
check-shadowing: false
|
|
gofmt:
|
|
# simplify code: gofmt with `-s` option, true by default
|
|
simplify: true
|
|
whitespace:
|
|
multi-func: true
|
|
multi-if: true
|
|
tagliatelle:
|
|
case:
|
|
rules:
|
|
json: snake
|
|
staticcheck:
|
|
go: "1.18"
|
|
checks: ["-SA1019"]
|
|
gomoddirectives:
|
|
replace-allow-list:
|
|
# See go.mod for the explanation why these are needed.
|
|
- google.golang.org/protobuf
|
|
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
- gochecknoglobals
|
|
- gosec
|
|
- funlen
|
|
- maligned
|
|
- varnamelen
|
|
- wrapcheck
|
|
- testpackage
|
|
- gomnd
|
|
- goerr113
|
|
- exhaustruct
|
|
- forbidigo
|
|
- gocognit
|
|
- nestif
|
|
- ifshort
|
|
- wsl
|
|
- cyclop
|
|
- gocyclo
|
|
- nlreturn
|
|
- stylecheck
|
|
- paralleltest
|
|
- ireturn
|
|
- maintidx
|
|
- noctx
|
|
- gofumpt
|
|
- exhaustive
|
|
|
|
# deprecated
|
|
- interfacer
|
|
- scopelint
|
|
- golint
|
|
- exhaustivestruct
|
|
- nosnakecase
|
|
- deadcode
|
|
- structcheck
|
|
- varcheck
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: cmd/chantools
|
|
linters:
|
|
- lll
|