mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 07:26:20 +00:00
40 lines
767 B
YAML
40 lines
767 B
YAML
linters:
|
|
default: standard
|
|
enable:
|
|
- bodyclose
|
|
- misspell
|
|
- nilnil
|
|
- sloglint
|
|
- depguard
|
|
- iface
|
|
- unparam
|
|
- forbidigo
|
|
|
|
linters-settings:
|
|
sloglint:
|
|
no-mixed-args: true
|
|
kv-only: true
|
|
no-global: all
|
|
context: all
|
|
static-msg: true
|
|
msg-style: lowercased
|
|
key-naming-case: snake
|
|
depguard:
|
|
rules:
|
|
nozap:
|
|
deny:
|
|
- pkg: "go.uber.org/zap"
|
|
desc: "Do not use zap logger. Use slog instead."
|
|
noerrors:
|
|
deny:
|
|
- pkg: "errors"
|
|
desc: "Do not use errors package. Use github.com/SigNoz/signoz/pkg/errors instead."
|
|
iface:
|
|
enable:
|
|
- identical
|
|
issues:
|
|
exclude-dirs:
|
|
- "pkg/query-service"
|
|
- "ee/query-service"
|
|
- "scripts/"
|