version: "2" linters: default: none enable: - bodyclose - depguard - dogsled - dupl - errcheck - exhaustive - gochecknoinits - goconst - gocritic - goprintffuncname - gosec - govet - ineffassign - misspell - mnd - nakedret - noctx - nolintlint - rowserrcheck - staticcheck - unconvert - unparam - unused - whitespace settings: depguard: rules: Test: files: - $test allow: - $gostd - github.com/stretchr/testify dupl: threshold: 100 exhaustive: default-signifies-exhaustive: true goconst: min-len: 2 min-occurrences: 2 gocritic: disabled-checks: - dupImport - ifElseChain - octalLiteral - whyNoLint - wrapperFunc enabled-tags: - diagnostic - experimental - opinionated - performance - style misspell: locale: US nolintlint: require-explanation: true require-specific: false allow-unused: false exclusions: generated: lax presets: - comments - common-false-positives - legacy - std-error-handling paths: - third_party$ - builtin$ - examples$ formatters: enable: - gofmt - goimports settings: gci: sections: - standard - default - prefix(alexejk.io/go-xmlrpc) goimports: local-prefixes: - alexejk.io/go-xmlrpc exclusions: generated: lax paths: - third_party$ - builtin$ - examples$