forked from OT-CONTAINER-KIT/redis-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
45 lines (44 loc) · 1.12 KB
/
.golangci.yml
File metadata and controls
45 lines (44 loc) · 1.12 KB
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
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0.8
gofmt:
simplify: true
# linters:
# enable-all: true
# disable:
# - errcheck
# - tagliatelle
# Exclude the files that are causing the errors
issues:
exclude-rules:
- path: _test\.go # Ignore test files for linting
linters:
- gocyclo
- errcheck
- dupl
- gosec
run:
timeout: 5m
go-version: "1.17"
test: false
# Exclude third-party packages and go.mod from the lint checks
exclude: |
'(^vendor/.*|.*_test\.go|go\.mod|.*validatingwebhookconfiguration\.go|.*mutatingwebhookconfiguration\.go)'
skip-files:
- '^.*validatingwebhookconfiguration\.go$'
- controllers/suite_test.go
skip-dirs:
- k8s.io/client-go
- github.com/banzaicloud/k8s-objectmatcher
- github.com/go-logr/logr
- github.com/go-redis/redis
- github.com/onsi/ginkgo
- github.com/onsi/gomega
- github.com/pkg/errors
- k8s.io/api
- k8s.io/apimachinery
- sigs.k8s.io/controller-runtime
- golang.org/x/sys
- vendor$, third_party$, testdata$, examples$, Godeps$, builtin$