run: timeout: 5m skip-files: [] linters-settings: govet: enable-all: true disable: - fieldalignment gocyclo: min-complexity: 12 goconst: min-len: 3 min-occurrences: 3 misspell: locale: US gofumpt: extra-rules: true depguard: list-type: denylist include-go-root: false packages: - github.com/pkg/errors funlen: lines: -1 statements: 40 godox: keywords: - FIXME gocritic: enabled-tags: - diagnostic - style - performance disabled-checks: - sloppyReassign - rangeValCopy - octalLiteral - paramTypeCombine # already handle by gofumpt.extra-rules settings: hugeParam: sizeThreshold: 100 forbidigo: forbid: - '^print(ln)?$' - '^spew\.Print(f|ln)?$' - '^spew\.Dump$' gomoddirectives: replace-allow-list: - github.com/abbot/go-http-auth - github.com/go-check/check - github.com/gorilla/mux - github.com/mailgun/minheap - github.com/mailgun/multibuf - github.com/jaguilar/vt100 linters: enable-all: true disable: - golint # deprecated - interfacer # deprecated - maligned # deprecated - scopelint # deprecated - exhaustivestruct # deprecated - sqlclosecheck # not relevant (SQL) - rowserrcheck # not relevant (SQL) - cyclop # duplicate of gocyclo - lll - gas - dupl - prealloc - scopelint - wsl - nlreturn - gomnd - testpackage - paralleltest - tparallel - goerr113 - wrapcheck - exhaustive - exhaustruct - ifshort - varnamelen - nilnil issues: exclude-use-default: false max-per-linter: 0 max-same-issues: 0 exclude: - 'ST1000: at least one file in a package should have a package comment' exclude-rules: - path: cmd/ linters: - gochecknoglobals - gochecknoinits - path: "(.+)_test.go" linters: - nosnakecase