run: go: '1.22' linters: enable: - asasalint - asciicheck - bidichk - bodyclose - canonicalheader - containedctx - contextcheck - copyloopvar - decorder - dogsled - dupword - durationcheck - err113 - errcheck - errchkjson - errname - errorlint - exhaustive - fatcontext - forbidigo - forcetypeassert - gci - ginkgolinter - gocheckcompilerdirectives - gochecknoinits - gochecksumtype - gocognit - gocritic - gocyclo - godot - godox - gofmt - gofumpt - goheader - goimports - gomoddirectives - gomodguard - goprintffuncname - gosec - gosimple - gosmopolitan - govet - grouper - iface - importas - inamedparam - ineffassign - interfacebloat - intrange - ireturn - loggercheck - maintidx - makezero - mirror - misspell - musttag - nakedret - nestif - nilerr - nilnil - noctx - nolintlint - nonamedreturns - nosprintfhostport - perfsprint - prealloc - predeclared - promlinter - protogetter - reassign - recvcheck - revive - rowserrcheck - sloglint - spancheck - sqlclosecheck - staticcheck - stylecheck - tagalign - tagliatelle - tenv - testifylint - testpackage - thelper - typecheck - unconvert - unparam - unused - usestdlibvars - wastedassign - whitespace - zerologlint disable: - cyclop - depguard - dupl - exhaustruct - funlen - gochecknoglobals - goconst - lll - nlreturn - paralleltest - testableexamples - tparallel - varnamelen - wrapcheck - wsl linters-settings: gci: sections: - standard - default - prefix(github.com/twpayne/go-gpx) gofumpt: extra-rules: true module-path: github.com/twpayne/go-gpx goimports: local-prefixes: github.com/twpayne/go-gpx misspell: locale: US issues: exclude-rules: - linters: - err113 text: "do not define dynamic errors, use wrapped static errors instead"