-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
52 lines (50 loc) · 1.19 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
linters-settings:
cyclop:
max-complexity: 27
depguard:
rules:
main:
list-mode: lax
allow:
- $gostd
- k8s.io/api
- k8s.io/apimachinery
- k8s.io/client-go
- github.com/projectcapsule
- github.com/go-logr/logr
- github.com/pkg/errors
- github.com/spf13/cobra
- sigs.k8s.io/controller-runtime
funlen:
lines: 110
statements: 50
gci:
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- prefix(github.com/projectcapsule/capsule-addon-flux) # Groups all imports with the specified Prefix.
goconst:
min-len: 2
min-occurrences: 3
goheader:
template: |-
Copyright 2020-2024 Project Capsule Authors.
SPDX-License-Identifier: Apache-2.0
linters:
enable-all: true
disable:
- exportloopref
- godox
- gochecknoglobals
- gochecknoinits
- exhaustruct
- ireturn
- lll
- nonamedreturns
- wrapcheck
- varnamelen
issues:
exclude-rules:
- path: /
linters:
- typecheck