version: "2" linters: enable: - asasalint - asciicheck - bidichk - bodyclose - containedctx - contextcheck - copyloopvar - decorder - durationcheck - errchkjson - errname - ginkgolinter - gocheckcompilerdirectives - gochecksumtype - gocritic - goheader - gomoddirectives - gomodguard - goprintffuncname - gosmopolitan - grouper - importas - inamedparam - interfacebloat - loggercheck - makezero - mirror - misspell - musttag - nilerr - noctx - nolintlint - nosprintfhostport - perfsprint - prealloc - predeclared - promlinter - protogetter - reassign - revive - rowserrcheck - sloglint - staticcheck - tagalign - tagliatelle - testableexamples - testifylint - thelper - tparallel - unparam - usestdlibvars - wastedassign - whitespace - zerologlint exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling paths: - third_party$ - builtin$ - examples$ rules: # Exclude specific linters from test files. - path: _test\.go linters: - gosmopolitan formatters: enable: - gofmt - goimports exclusions: generated: lax paths: - third_party$ - builtin$ - examples$