Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

1.2 KB
Raw Blame
version: "2"
linters:
  default: none
  enable:
    - bodyclose
    - depguard
    - errcheck
    - forbidigo
    - godot
    - govet
    - iface
    - ineffassign
    - misspell
    - nilnil
    - sloglint
    - staticcheck
    - wastedassign
    - unparam
    - unused
  settings:
    depguard:
      rules:
        noerrors:
          deny:
            - pkg: errors
              desc: Do not use errors package. Use github.com/SigNoz/signoz/pkg/errors instead.
        nozap:
          deny:
            - pkg: go.uber.org/zap
              desc: Do not use zap logger. Use slog instead.
    forbidigo:
      forbid:
        - pattern: fmt.Errorf
        - pattern: ^(fmt\.Print.*|print|println)$
    iface:
      enable:
        - identical
    sloglint:
      no-mixed-args: true
      attr-only: true
      no-global: all
      context: all
      static-msg: true
  exclusions:
    generated: lax
    presets:
      - comments
      - common-false-positives
      - legacy
      - std-error-handling
    paths:
      - pkg/query-service
      - ee/query-service
      - scripts/
      - tmp/
      - third_party$
      - builtin$
      - examples$
formatters:
  exclusions:
    generated: lax
    paths:
      - third_party$
      - builtin$
      - examples$