woodpecker/vendor/github.com/blizzy78/varnamelen/.golangci.yml
6543 56a854fe14
Update deps (#789)
* update github.com/docker/cli

* update github.com/docker/distribution

* update github.com/docker/docker

* update github.com/gin-gonic/gin

* update github.com/golang-jwt/jwt/v4

* update github.com/golangci/golangci-lint

* update github.com/gorilla/securecookie

* update github.com/mattn/go-sqlite3

* update github.com/moby/moby

* update github.com/prometheus/client_golang

* update github.com/xanzy/go-gitlab
2022-02-24 17:33:24 +01:00

55 lines
940 B
YAML

linters:
enable:
- asciicheck
- bodyclose
- cyclop
- durationcheck
- errname
- errorlint
- exportloopref
- forcetypeassert
- gocognit
- gocritic
- goerr113
- gofmt
- goprintffuncname
- gosec
- ifshort
- nakedret
- nestif
- nilerr
- noctx
- nolintlint
- prealloc
- predeclared
- promlinter
- revive
- rowserrcheck
- sqlclosecheck
- stylecheck
- thelper
- tparallel
- unconvert
- unparam
- varnamelen
- wastedassign
- wrapcheck
- wsl
linters-settings:
gocognit:
min-complexity: 15
nakedret:
max-func-lines: 0
nolintlint:
allow-unused: false
allow-leading-space: false
require-explanation: true
require-specific: true
unused:
go: 1.16
varnamelen:
check-return: true
ignore-type-assert-ok: true
ignore-map-index-ok: true
ignore-chan-recv-ok: true