mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-10 21:03:12 +01:00
* chore(deps): update golangci/golangci-lint docker tag to v2.2.1 | datasource | package | from | to | | ---------- | ---------------------- | ------ | ------ | | docker | golangci/golangci-lint | v2.1.6 | v2.2.1 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * ci: configure revive new varname check Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
97 lines
1.7 KiB
YAML
97 lines
1.7 KiB
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- asciicheck
|
|
- bodyclose
|
|
- copyloopvar
|
|
- dogsled
|
|
- dupl
|
|
- durationcheck
|
|
- errcheck
|
|
- ginkgolinter
|
|
- gocognit
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- goheader
|
|
- gomoddirectives
|
|
- gomodguard
|
|
- goprintffuncname
|
|
- gosec
|
|
- govet
|
|
- importas
|
|
- ineffassign
|
|
- lll
|
|
- makezero
|
|
- misspell
|
|
- nakedret
|
|
- nestif
|
|
- prealloc
|
|
- predeclared
|
|
- revive
|
|
- rowserrcheck
|
|
- sqlclosecheck
|
|
- staticcheck
|
|
- thelper
|
|
- tparallel
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- wastedassign
|
|
- whitespace
|
|
settings:
|
|
lll:
|
|
line-length: 120
|
|
exclusions:
|
|
generated: lax
|
|
rules:
|
|
- linters:
|
|
- revive
|
|
text: should not use dot imports
|
|
source: ginkgo|gomega
|
|
- linters:
|
|
- goconst
|
|
path: _test\.go
|
|
- linters:
|
|
- lll
|
|
source: //\s*\+
|
|
- linters:
|
|
- staticcheck
|
|
path: api/
|
|
text: 'ST1016:'
|
|
- linters:
|
|
- revive
|
|
path: internal/cnpgi/common/
|
|
text: avoid meaningless package names
|
|
paths:
|
|
- zz_generated.*
|
|
- internal/operator/controller/suite_test.go
|
|
- test
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/cloudnative-pg/plugin-barman-cloud)
|
|
- blank
|
|
- dot
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- zz_generated.*
|
|
- internal/operator/controller/suite_test.go
|
|
- test
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|