version: "2" run: timeout: 5m tests: true linters: default: standard enable: - bodyclose # unclosed HTTP response bodies: this app makes a lot of requests - errorlint # == on errors instead of errors.Is; the download code had several - copyloopvar - misspell - nilerr - unconvert - usestdlibvars - whitespace settings: govet: enable: - copylocks # config.Config carries a mutex and must not be copied - nilness staticcheck: checks: - all exclusions: presets: - std-error-handling rules: # Test helpers legitimately ignore errors on cleanup paths. - path: _test\.go linters: - errcheck formatters: enable: - gofmt