run: tests: true timeout: 5m linters: disable-all: true enable: - bodyclose - depguard - errcheck - gocritic - gofmt - goimports - gosimple - govet - ineffassign - misspell - nakedret - prealloc - staticcheck - typecheck - unconvert - unused - lll - nestif - thelper - nonamedreturns - gocyclo - tenv - testpackage - noctx - tparallel - usestdlibvars - unconvert - makezero - grouper - errname - exhaustive - tagliatelle linters-settings: lll: line-length: 150 gocyclo: min-complexity: 10 govet: enable: - asmdecl - assign - atomic - atomicalign - bools - buildtag - cgocall - composites - copylocks - deepequalerrors - errorsas - findcall - framepointer - httpresponse - ifaceassert - loopclosure - lostcancel - nilfunc - nilness - printf - reflectvaluecompare - shadow - shift - sigchanyzer - sortslice - stdmethods - stringintconv - structtag - testinggoroutine - tests - unmarshal - unreachable - unsafeptr - unusedresult - unusedwrite issues: exclude-rules: # Exclude some linters from running on tests files. - path: _test\.go linters: - dupl - gocyclo - linters: - lll source: "^//go:generate "