Enable golang linters by default
Instead of disable all and explicitly enable linters, we decided to flip
the polarity - enable all and explicitly disable linters.
linters:
- disable-all: true
- enable:
- - asciicheck
- - bodyclose
- - deadcode
- - depguard
- - dogsled
- - errcheck
- - exportloopref
- - gci
- - goconst
- - gocritic
- - gocyclo
- - godot
- - gofmt
- - goheader
- - goimports
- - goprintffuncname
- - gosec
- - gosimple
- - govet
- - ifshort
- - importas
- - ineffassign
- - misspell
- - nakedret
- - nilerr
- - noctx
- - nolintlint
- - prealloc
- - predeclared
- - revive
- - rowserrcheck
- - staticcheck
- - structcheck
- - stylecheck
- - thelper
- - typecheck
- - unconvert
- - unparam
- - unused
- - varcheck
- - whitespace
+ enable-all: true
+ disable:
+ - bidichk
+ - contextcheck
+ - cyclop
+ - dupl
+ - durationcheck
+ - errname
+ - errorlint
+ - exhaustive
+ - exhaustivestruct
+ - forcetypeassert
+ - forbidigo
+ - funlen
+ - gochecknoglobals
+ - gochecknoinits
+ - gocognit
+ - godox
+ - goerr113
+ - gofumpt
+ - golint
+ - gomnd
+ - gomoddirectives
+ - gomodguard
+ - interfacer
+ - ireturn
+ - lll
+ - makezero
+ - maligned
+ - nestif
+ - nilnil
+ - nlreturn
+ - paralleltest
+ - promlinter
+ - scopelint
+ - sqlclosecheck
+ - tagliatelle
+ - tenv
+ - testpackage
+ - tparallel
+ - varnamelen
+ - wastedassign
+ - wrapcheck
+ - wsl
linters-settings:
# Restrict revive to exported.
