| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- version: "2"
- linters:
- default: all
- disable:
- - copyloopvar
- - cyclop
- - depguard
- - dupl
- - err113
- - errname
- - errorlint
- - exhaustive
- - exhaustruct
- - forbidigo
- - forcetypeassert
- - funcorder
- - funlen
- - gochecknoglobals
- - gocognit
- - goconst
- - gocyclo
- - godox
- - gosec
- - gosmopolitan
- - inamedparam
- - intrange
- - ireturn
- - maintidx
- - mnd
- - nakedret
- - nestif
- - nlreturn
- - noctx
- - noinlineerr
- - nonamedreturns
- - paralleltest
- - testableexamples
- - testpackage
- - thelper
- - tparallel
- - unparam
- - usestdlibvars
- - varnamelen
- - wrapcheck
- - wsl
- - wsl_v5
- settings:
- gocritic:
- disabled-checks:
- - deferInLoop
- - importShadow
- - sloppyReassign
- - unnamedResult
- - whyNoLint
- enabled-tags:
- - diagnostic
- - experimental
- - opinionated
- - performance
- - style
- govet:
- disable:
- - fieldalignment
- - shadow
- enable-all: true
- lll:
- line-length: 130
- revive:
- rules:
- - name: indent-error-flow
- - name: use-any
- staticcheck:
- checks:
- - -ST1000
- - all
- exclusions:
- generated: lax
- presets:
- - common-false-positives
- - legacy
- - std-error-handling
- rules:
- - linters:
- - lll
- path: _test\.go
- paths:
- - third_party$
- - builtin$
- - examples$
- issues:
- max-issues-per-linter: 0
- max-same-issues: 0
- formatters:
- enable:
- - gci
- - gofmt
- - gofumpt
- - goimports
- exclusions:
- generated: lax
- paths:
- - third_party$
- - builtin$
- - examples$
|