forked from kube-logging/logging-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
45 lines (41 loc) · 986 Bytes
/
.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
run:
skip-dirs:
- .gen
- client
linters-settings:
golint:
min-confidence: 0.9
gocyclo:
min-complexity: 15
# goimports:
# local-prefixes: github.com/banzaicloud/logging-operator
linters:
enable-all: true
disable:
- funlen
- dupl
- maligned
- wsl
# TODO: fix these
- deadcode
- unused
- goconst
- unparam
- nakedret
- prealloc
- errcheck
- gochecknoinits
- gochecknoglobals
- lll
- gosec
- stylecheck
- staticcheck
- gosimple
- gocritic
- godox
- gocyclo
- gocognit
issues:
exclude:
- if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)
- "`if` block ends with a `return` statement, so drop this `else` and outdent its block"