# GolangCI-Lint configuration # See: https://golangci-lint.run/usage/configuration/ version: "2" run: modules-download-mode: readonly linters: enable: - asasalint - asciicheck - bidichk - bodyclose - containedctx - contextcheck - cyclop - dupl - durationcheck - errname - errorlint - exhaustive - forbidigo - funlen - gocognit - goconst - gocritic - gocyclo - godox - gomoddirectives - gomodguard - goprintffuncname - gosec - grouper - importas - ireturn - lll - makezero - misspell - nakedret - nestif - nilerr - nilnil - noctx - nolintlint - nosprintfhostport - predeclared - promlinter - reassign - revive - rowserrcheck - sqlclosecheck - staticcheck - testpackage - thelper - tparallel - unconvert - unparam - usestdlibvars - wastedassign - whitespace settings: cyclop: max-complexity: 50 funlen: lines: 150 statements: 150 gocognit: min-complexity: 50 goconst: min-len: 3 min-occurrences: 3 gocyclo: min-complexity: 25 lll: line-length: 150 misspell: locale: US mnd: checks: - argument - case - condition - operation - return nestif: min-complexity: 8 revive: rules: - name: use-any severity: error disabled: false exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling rules: - linters: - dupl - errcheck - funlen - gocyclo - gosec - mnd path: _test\.go - linters: - lll path: docs/ - linters: - mnd path: integrationtests/ - linters: - gomoddirectives path: go\.mod paths: - third_party$ - builtin$ - examples$ formatters: enable: - gci - gofmt - goimports exclusions: generated: lax paths: - third_party$ - builtin$ - examples$