linters-settings:
  govet:
    shadow: true
  dupl:
    threshold: 200
  goconst:
    min-len: 3
    min-occurrences: 2
  gocognit:
    min-complexity: 65

linters:
  enable:
    - gosec
    - staticcheck
    - nolintlint
    - gofmt
    - unused
    - govet
    - bodyclose
    - typecheck
    - goimports
    - ineffassign
    - gosimple
  disable:
    # temporarily disabled
    - errcheck
    - dupl
    - gocritic
    - gocognit
    - nakedret
    - revive
    - stylecheck
    - unconvert
    - unparam
    #- forbidigo # <- see later
    # should remain disabled
    - lll
    - gochecknoinits
    - gochecknoglobals
issues:
  exclude-rules:
    - linters:
      - revive
      text: "var-naming"
    - linters:
      - revive
      text: "type name will be used as (.+?) by other packages, and that stutters"
    - linters:
      - stylecheck
      text: "ST1003"
