version: "2" linters: default: none enable: - dogsled - dupl - errcheck - funlen - gochecknoinits - goconst - gocritic - gocyclo - goprintffuncname - gosec - govet - ineffassign - lll - misspell - mnd - nakedret - noctx - nolintlint - revive - staticcheck - unconvert - unparam - unused - whitespace settings: dupl: threshold: 100 funlen: lines: -1 statements: 50 goconst: min-len: 2 min-occurrences: 3 gocritic: disabled-checks: - dupImport - ifElseChain - octalLiteral - whyNoLint enabled-tags: - diagnostic - experimental - opinionated - performance - style gocyclo: min-complexity: 15 govet: disable: - fieldalignment enable-all: true settings: printf: funcs: - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf lll: line-length: 140 misspell: locale: US mnd: checks: - argument - case - condition - return ignored-numbers: - "0" - "1" - "2" - "3" ignored-functions: - strings.SplitN nolintlint: require-explanation: false require-specific: false allow-unused: false revive: rules: - name: unexported-return disabled: true exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling rules: - linters: - dogsled - dupl - errcheck - goconst - gocyclo - gosec - lll path: _test\.go - path: (.+)\.go$ text: abcdef paths: - third_party$ - builtin$ - examples$ formatters: enable: - gofmt - goimports settings: goimports: local-prefixes: - github.com/golangci/golangci-lint exclusions: generated: lax paths: - third_party$ - builtin$ - examples$