2
0
mirror of https://github.com/guggero/chantools synced 2024-11-18 21:26:23 +00:00
chantools/.golangci.yml

63 lines
1.0 KiB
YAML
Raw Normal View History

2019-11-09 14:41:31 +00:00
run:
# timeout for analysis
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
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"]
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
- 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
- protogetter
- depguard
- mnd
2020-01-04 22:58:10 +00:00
issues:
exclude-rules:
- path: cmd/chantools
linters:
- lll