linters:
  enable:
    - bodyclose
    - decorder
    - dogsled
    - errorlint
    - exportloopref
    #- gocognit - disabled till better times
    - goconst
    - gocyclo
    - gosec
    - ifshort
    - makezero
    #- nestif - disabled till better times
    - nilerr
    - prealloc
    - unconvert
    - unparam

linters-settings:
  errcheck:
    exclude-functions:
      - (*github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.ResourceData).Set
  staticcheck:
    go: "1.18"
    checks:
      - all
      - -SA1019
  nestif:
    min-complexity: 7
  gocyclo:
    min-complexity: 40

issues:
  max-same-issues: 0
