version: "2" linters: default: all disable: - cyclop - depguard - dupl - err113 - errorlint - exhaustive - funcorder - funlen - gochecknoglobals - gochecknoinits - gocognit - gocritic - gocyclo - godot - godox - gosec - gosmopolitan - govet - inamedparam - ireturn - lll - maintidx - makezero - mnd - nakedret - nestif - nlreturn - noinlineerr - nonamedreturns - paralleltest - perfsprint - staticcheck - recvcheck - tagliatelle - testifylint - testpackage - thelper - varnamelen - wrapcheck - wsl - wsl_v5 settings: govet: disable: - shadow - fieldalignment enable-all: true exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling rules: - linters: - contextcheck - exhaustruct path: /*.go - linters: - errcheck - errchkjson - forcetypeassert - goconst path: _test\.go paths: - third_party$ - builtin$ - examples$ issues: max-issues-per-linter: 0 max-same-issues: 0 formatters: enable: - gofmt - goimports exclusions: generated: lax paths: - third_party$ - builtin$ - examples$