d02d413c5e
Use sentry echo integration to send errors Only capture errors not already handled by echo Add sentry panic handler Add sentry library Add sentry init Add sentry config Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/591
50 lines
789 B
YAML
50 lines
789 B
YAML
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- interfacer
|
|
- lll
|
|
- maligned
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- scopelint
|
|
- staticcheck
|
|
- structcheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- varcheck
|
|
run:
|
|
skip-dirs:
|
|
- echo
|
|
- example/echo
|
|
issues:
|
|
exclude:
|
|
- "not declared by package utf8"
|
|
- "unicode/utf8/utf8.go"
|
|
exclude-rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- prealloc
|
|
- path: errors_test\.go
|
|
linters:
|
|
- unused
|