version: "2" run: modules-download-mode: readonly linters: enable: - asasalint - asciicheck - bidichk - bodyclose - containedctx - contextcheck - cyclop - dupl - durationcheck - errname - errorlint - exhaustive - forbidigo - gocognit - goconst - gocritic - gocyclo - godox - gomoddirectives - gomodguard - goprintffuncname - gosec - grouper - importas - ireturn - makezero - misspell - nakedret - nestif - nilerr - nilnil - noctx - nolintlint - nosprintfhostport - predeclared - promlinter - reassign - revive - rowserrcheck - sqlclosecheck - testpackage - thelper - tparallel - unconvert - unparam - usestdlibvars - wastedassign - whitespace settings: cyclop: max-complexity: 20 dupl: threshold: 300 gocognit: min-complexity: 51 nestif: min-complexity: 10 exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling paths: - third_party$ - builtin$ - examples$ formatters: exclusions: generated: lax paths: - third_party$ - builtin$ - examples$