.golangci.yml
linters:
fast: true
fetch: >
curl -s https://golangci-lint.run/usage/linters/ \
| pup ':parent-of(#enabled-by-default-linters)' \
| pup 'table td a json{}' \
| jq -r '.[] | (.text + " " + .href)' \
| column -t
enable:
- deadcode # https://github.com/remyoudompheng/go-misc/tree/master/deadcode
- errcheck # https://github.com/kisielk/errcheck
- gosimple # https://github.com/dominikh/go-tools/tree/master/simple
- govet # https://golang.org/cmd/vet/
- ineffassign # https://github.com/gordonklaus/ineffassign
- staticcheck # https://staticcheck.io/
- structcheck # https://github.com/opennota/check
- typecheck # -
- unused # https://github.com/dominikh/go-tools/tree/master/unused
- varcheck # https://github.com/opennota/check
- bodyclose # https://github.com/timakin/bodyclose
- exhaustive # https://github.com/nishanths/exhaustive
- exportloopref # https://github.com/kyoh86/exportloopref
- gocritic # https://github.com/go-critic/go-critic
- looppointer # https://github.com/kyoh86/looppointer
- noctx # https://github.com/sonatard/noctx
# - asciicheck # https://github.com/tdakkota/asciicheck
# - cyclop # https://github.com/bkielbasa/cyclop
# - depguard # https://github.com/OpenPeeDeeP/depguard
# - dogsled # https://github.com/alexkohler/dogsled
# - dupl # https://github.com/mibk/dupl
# - durationcheck # https://github.com/charithe/durationcheck
# - errorlint # https://github.com/polyfloyd/go-errorlint
# - exhaustivestruct # https://github.com/mbilski/exhaustivestruct
# - forbidigo # https://github.com/ashanbrown/forbidigo
# - forcetypeassert # https://github.com/gostaticanalysis/forcetypeassert
# - funlen # https://github.com/ultraware/funlen
# - gci # https://github.com/daixiang0/gci
# - gochecknoglobals # https://github.com/leighmcculloch/gochecknoglobals
# - gochecknoinits # https://github.com/leighmcculloch/gochecknoinits
# - gocognit # https://github.com/uudashr/gocognit
# - goconst # https://github.com/jgautheron/goconst
# - gocyclo # https://github.com/fzipp/gocyclo
# - godot # https://github.com/tetafro/godot
# - godox # https://github.com/matoous/godox
# - goerr113 # https://github.com/Djarvur/go-err113
# - gofmt # https://golang.org/cmd/gofmt/
# - gofumpt # https://github.com/mvdan/gofumpt
# - goheader # https://github.com/denis-tingajkin/go-header
# - goimports # https://godoc.org/golang.org/x/tools/cmd/goimports
# - golint # https://github.com/golang/lint
# - gomnd # https://github.com/tommy-muehle/go-mnd
# - gomoddirectives # https://github.com/ldez/gomoddirectives
# - gomodguard # https://github.com/ryancurrah/gomodguard
# - goprintffuncname # https://github.com/jirfag/go-printf-func-name
# - gosec # https://github.com/securego/gosec
# - ifshort # https://github.com/esimonov/ifshort
# - importas # https://github.com/julz/importas
# - interfacer # https://github.com/mvdan/interfacer (deprecated)
# - lll # https://github.com/walle/lll
# - makezero # https://github.com/ashanbrown/makezero
# - maligned # https://github.com/mdempsky/maligned (deprecated)
# - misspell # https://github.com/client9/misspell
# - nakedret # https://github.com/alexkohler/nakedret
# - nestif # https://github.com/nakabonne/nestif
# - nilerr # https://github.com/gostaticanalysis/nilerr
# - nlreturn # https://github.com/ssgreg/nlreturn
# - nolintlint # https://github.com/golangci/golangci-lint/blob/master/pkg/golinters/nolintlint/README.md
# - paralleltest # https://github.com/kunwardeep/paralleltest
# - prealloc # https://github.com/alexkohler/prealloc
# - predeclared # https://github.com/nishanths/predeclared
# - promlinter # https://github.com/yeya24/promlinter
# - revive # https://github.com/mgechev/revive
# - rowserrcheck # https://github.com/jingyugao/rowserrcheck
# - scopelint # https://github.com/kyoh86/scopelint (deprecated)
# - sqlclosecheck # https://github.com/ryanrolds/sqlclosecheck
# - stylecheck # https://github.com/dominikh/go-tools/tree/master/stylecheck
# - tagliatelle # https://github.com/ldez/tagliatelle
# - testpackage # https://github.com/maratori/testpackage
# - thelper # https://github.com/kulti/thelper
# - tparallel # https://github.com/moricho/tparallel
# - unconvert # https://github.com/mdempsky/unconvert
# - unparam # https://github.com/mvdan/unparam
# - wastedassign # https://github.com/sanposhiho/wastedassign
# - whitespace # https://github.com/ultraware/whitespace
# - wrapcheck # https://github.com/tomarrell/wrapcheck
# - wsl # https://github.com/bombsimon/wsl