linters-settings:
  golint:
    min-confidence: 0

  misspell:
    locale: US

  goheader:
    values:
      regexp:
        copyright-holder: Copyright \(c\) (20\d\d\-20\d\d)|2021|({{year}})
    template-path: .license.tmpl

linters:
  disable-all: true
  enable:
    - typecheck
    - goimports
    - misspell
    - govet
    - revive
    - ineffassign
    - gosimple
    - deadcode
    - structcheck
    - gomodguard
    - gofmt
    - unused
    - structcheck
    - unconvert
    - varcheck
    - gocritic
    - gofumpt
    - tenv
    - durationcheck

service:
  golangci-lint-version: 1.43.0 # use the fixed version to not introduce new linters unexpectedly

issues:
  exclude-use-default: false
  exclude:
    - should have a package comment
    # TODO(y4m4): Remove once all exported ident. have comments!
    - comment on exported function
    - comment on exported type
    - should have comment
    - use leading k in Go names
    - comment on exported const
run:
  skip-dirs:
    - pkg/clientgen
    - pkg/apis/networking.gke.io
    - restapi/operations