# https://golangci-lint.run/usage/configuration/

linters:
  disable:
    - gofumpt
    - scopelint
  enable:
    - gosimple
    - misspell
  presets:
    - bugs
    - format
    - unused

linters-settings:
  exhaustive:
    default-signifies-exhaustive: true

run:
  skip-dirs:
    - pkg/generated

# https://golangci-lint.run/usage/configuration/

linters:
  disable:
    - gofumpt
    - scopelint
  enable:
    - gomodguard
    - gosimple
    - misspell
  presets:
    - bugs
    - format
    - unused

linters-settings:
  exhaustive:
    default-signifies-exhaustive: true
  gomodguard:
    blocked:
      modules:
        - gopkg.in/yaml.v2: { recommendations: [sigs.k8s.io/yaml] }
        - gopkg.in/yaml.v3: { recommendations: [sigs.k8s.io/yaml] }
        - gotest.tools: { recommendations: [gotest.tools/v3] }

run:
  skip-dirs:
    - pkg/generated

Check for modules that accidentally import
Check for modules that accidentally import

My editor sometimes adds these modules to my imports during
autocomplete. We want to use the Kubernetes YAML package and the latest
version of "gotest.tools".
