version: "2" run: go: "1.25" concurrency: 8 timeout: 10m linters: default: none enable: - asasalint - asciicheck - errcheck - gomodguard - goprintffuncname - govet - ineffassign - misspell - nakedret - nolintlint - prealloc - reassign - staticcheck - unconvert - unused - whitespace - bidichk - bodyclose - containedctx - contextcheck - copyloopvar - decorder - dogsled - dupword - durationcheck - embeddedstructfieldcheck - errchkjson - errorlint - exhaustive - exptostd - fatcontext - forcetypeassert - funcorder - ginkgolinter - gocheckcompilerdirectives - gochecknoinits - gochecksumtype - goconst - gocritic - gocyclo - godox - goheader - gomoddirectives - gosec - gosmopolitan - grouper - iface - importas - inamedparam - interfacebloat - intrange - loggercheck - makezero - mirror - musttag - nilerr - nilnesserr - nilnil - noctx - nonamedreturns - nosprintfhostport - perfsprint - predeclared - promlinter - protogetter - sloglint - spancheck - sqlclosecheck - tagalign - tagliatelle - testableexamples - testifylint - thelper - tparallel - unparam - usestdlibvars - usetesting - varnamelen - wastedassign - wrapcheck - zerologlint settings: staticcheck: checks: - "all" - "-S1002" - "-ST1000" varnamelen: ignore-decls: - i int exclusions: rules: - path: _test\.go$ linters: - errorlint - forcetypeassert - perfsprint - errcheck - gosec - gocyclo - path: _test\.go$ linters: - staticcheck text: "SA5011" formatters: enable: - gofmt settings: gofmt: # Simplify code: gofmt with `-s` option. # Default: true simplify: false # Apply the rewrite rules to the source before reformatting. # https://pkg.go.dev/cmd/gofmt # Default: [] rewrite-rules: - pattern: "interface{}" replacement: "any" - pattern: "a[b:len(a)]" replacement: "a[b:]"