mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 18:09:58 +00:00
* chore(deps): update dependency golangci/golangci-lint to v2.5.0 * chore(deps): update dependency golangci/golangci-lint to v2.5.0 Signed-off-by: Hristo Hristov <me@hhristov.info> * chore(deps): update dependency golangci/golangci-lint to v2.5.0 Signed-off-by: Hristo Hristov <me@hhristov.info> --------- Signed-off-by: Hristo Hristov <me@hhristov.info> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hristo Hristov <me@hhristov.info>
92 lines
1.6 KiB
YAML
92 lines
1.6 KiB
YAML
version: "2"
|
|
run:
|
|
tests: false
|
|
allow-parallel-runners: true
|
|
linters:
|
|
default: all
|
|
disable:
|
|
- godoclint
|
|
- depguard
|
|
- err113
|
|
- exhaustruct
|
|
- funlen
|
|
- gochecknoglobals
|
|
- gochecknoinits
|
|
- ireturn
|
|
- lll
|
|
- mnd
|
|
- nilnil
|
|
- nonamedreturns
|
|
- paralleltest
|
|
- perfsprint
|
|
- recvcheck
|
|
- testpackage
|
|
- unparam
|
|
- varnamelen
|
|
- wrapcheck
|
|
- interfacebloat
|
|
- noinlineerr
|
|
- revive
|
|
settings:
|
|
cyclop:
|
|
max-complexity: 27
|
|
dupl:
|
|
threshold: 100
|
|
gocognit:
|
|
min-complexity: 50
|
|
goconst:
|
|
min-len: 2
|
|
min-occurrences: 2
|
|
goheader:
|
|
template: |-
|
|
Copyright 2020-2025 Project Capsule Authors
|
|
SPDX-License-Identifier: Apache-2.0
|
|
inamedparam:
|
|
skip-single-param: true
|
|
nakedret:
|
|
max-func-lines: 50
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
paths:
|
|
- zz_.*\.go$
|
|
- .+\.generated.go
|
|
- .+_test.go
|
|
- .+_test_.+.go
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
rules:
|
|
- path: pkg/meta/
|
|
linters:
|
|
- dupl
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/projectcapsule/capsule)
|
|
gofumpt:
|
|
module-path: github.com/projectcapsule/capsule
|
|
extra-rules: false
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- zz_.*\.go$
|
|
- .+\.generated.go
|
|
- .+_test.go
|
|
- .+_test_.+.go
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|