2
0
mirror of https://github.com/guggero/chantools synced 2024-11-18 21:26:23 +00:00
chantools/.golangci.yml
Boris Nagaev 551e2a056a
lint: update configs, golangci-lint to v1.59.0
Remove deprecated and deactivated linters from .golangci.yml.

Ignore too noisy linters: protogetter, depguard, mnd.

Fix linter warnings.

Use timeout instead of deadline in .golangci.yml.
2024-06-18 11:08:10 -03:00

63 lines
1.0 KiB
YAML

run:
# timeout for analysis
timeout: 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
- varnamelen
- wrapcheck
- testpackage
- gomnd
- err113
- exhaustruct
- forbidigo
- gocognit
- nestif
- wsl
- cyclop
- gocyclo
- nlreturn
- stylecheck
- paralleltest
- ireturn
- maintidx
- noctx
- gofumpt
- exhaustive
- protogetter
- depguard
- mnd
issues:
exclude-rules:
- path: cmd/chantools
linters:
- lll