mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-29 18:55:13 +08:00

* chore(linter): add more linters and deprecate zap * chore(linter): add more linters and deprecate zap * chore(linter): add more linters and deprecate zap * chore(linter): add more linters and deprecate zap
34 lines
585 B
YAML
34 lines
585 B
YAML
linters:
|
|
default: standard
|
|
enable:
|
|
- bodyclose
|
|
- misspell
|
|
- nilnil
|
|
- sloglint
|
|
- depguard
|
|
- iface
|
|
|
|
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."
|
|
iface:
|
|
enable:
|
|
- identical
|
|
issues:
|
|
exclude-dirs:
|
|
- "pkg/query-service"
|
|
- "ee/query-service"
|
|
- "scripts/"
|