version: "2" run: concurrency: 4 modules-download-mode: readonly issues-exit-code: 1 tests: true output: formats: text: path: stdout print-linter-name: true print-issued-lines: true linters: enable: - asasalint - asciicheck - bidichk - bodyclose - containedctx - copyloopvar - decorder - dogsled - dupl - dupword - durationcheck - errchkjson - errname - errorlint - exhaustive - forcetypeassert - gocognit - gocritic - gocyclo - gosec - gosmopolitan - makezero - mirror - misspell - nestif - nolintlint - prealloc - predeclared - revive - sqlclosecheck - unconvert - unparam - usestdlibvars - wastedassign settings: decorder: dec-order: - const - var - type - func dogsled: max-blank-identifiers: 3 errcheck: check-type-assertions: true check-blank: true errchkjson: report-no-exported: true exhaustive: check: - switch - map default-signifies-exhaustive: true gocognit: min-complexity: 15 gocritic: enabled-tags: - diagnostic - style - performance grouper: const-require-single-const: true import-require-single-import: true var-require-single-var: true misspell: locale: US nestif: min-complexity: 5 unparam: check-exported: true usestdlibvars: time-month: true time-layout: true crypto-hash: true default-rpc-path: true sql-isolation-level: true tls-signature-scheme: true constant-kind: true exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling rules: - linters: - dupl - errcheck - gocognit - gocyclo - gosec path: _test\.go - linters: - staticcheck text: 'SA9003:' - linters: - lll source: '^//go:generate ' - linters: - revive text: returns unexported type - linters: - revive text: 'var-naming: avoid meaningless package names' paths: - mocks - third_party$ - builtin$ - examples$ issues: max-issues-per-linter: 0 max-same-issues: 0 new: false formatters: enable: - gofmt - gofumpt - goimports settings: gofmt: simplify: true rewrite-rules: - pattern: interface{} replacement: any - pattern: a[b:len(a)] replacement: a[b:] gofumpt: extra-rules: true exclusions: generated: lax paths: - mocks - third_party$ - builtin$ - examples$