1
bot/.golangci.yml
Renato Saksanni 9b4caace93
Add golangci-lint configuration and fix linting issues (#97)
Add golangci-lint using official golangci action and fix linting issues
2024-07-08 17:57:08 +03:00

38 lines
519 B
YAML

linters:
enable:
- govet
- errcheck
- staticcheck
- unused
- gofmt
- goimports
- gocritic
linters-settings:
govet:
check-shadowing: true
gocritic:
check:
- range-loop-ref
- ifElseChain
- typeSwitchVar
- wrapperFunc
run:
timeout: 5m
tests: true
skip-dirs:
- vendor
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-use-default: false
include:
- EXC0001
exclude-rules:
- path: _test\.go
linters:
- errcheck