linters: enable-all: true disable: - exportloopref # deprecated - cyclop # duplicate of gocyclo - lll - dupl - wsl - nlreturn - mnd - err113 - wrapcheck - exhaustive - exhaustruct - testpackage - tparallel - paralleltest - prealloc - forcetypeassert - bodyclose # Too many false positives: https://github.com/timakin/bodyclose/issues/30 - varnamelen linters-settings: govet: enable-all: true disable: - fieldalignment gocyclo: min-complexity: 15 goconst: min-len: 5 min-occurrences: 3 misspell: locale: US funlen: lines: -1 statements: 50 godox: keywords: - FIXME gofumpt: extra-rules: true depguard: rules: main: deny: - pkg: "github.com/instana/testify" desc: not allowed - pkg: "github.com/pkg/errors" desc: Should be replaced by standard lib errors package gocritic: enabled-tags: - diagnostic - style - performance disabled-checks: - sloppyReassign - rangeValCopy - octalLiteral - hugeParam - paramTypeCombine # already handled by gofumpt.extra-rules issues: exclude-use-default: false max-issues-per-linter: 0 max-same-issues: 0 exclude: - 'ST1000: at least one file in a package should have a package comment' - 'fmt.Sprintf can be replaced with string' exclude-rules: - path: .*_test.go linters: - funlen output: show-stats: true sort-results: true run: timeout: 5m