46 lines
808 B
YAML
46 lines
808 B
YAML
run:
|
|
timeout: 5m
|
|
tests: true
|
|
|
|
linters:
|
|
enable:
|
|
- gofmt
|
|
- revive
|
|
- govet
|
|
- errcheck
|
|
- staticcheck
|
|
- unused
|
|
- gosimple
|
|
- ineffassign
|
|
- typecheck
|
|
- gosec
|
|
- misspell
|
|
- unparam
|
|
- prealloc
|
|
- copyloopvar
|
|
- gocritic
|
|
- gochecknoinits
|
|
- gochecknoglobals
|
|
|
|
linters-settings:
|
|
gofmt:
|
|
simplify: true
|
|
revive:
|
|
confidence: 0.8
|
|
govet:
|
|
enable:
|
|
- shadow
|
|
errcheck:
|
|
check-type-assertions: true
|
|
check-blank: true
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# Exclude globals check for version variables in main
|
|
- path: cmd/webhooker/main.go
|
|
linters:
|
|
- gochecknoglobals
|
|
# Exclude globals check for version variables in globals package
|
|
- path: internal/globals/globals.go
|
|
linters:
|
|
- gochecknoglobals |