forked from FoundationDB/fdb-kubernetes-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
54 lines (52 loc) · 1.13 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
53
54
issues:
# don't skip warning about doc comments
# don't exclude the default set of lint
exclude-use-default: false
exclude-rules:
# exclude deprecation warning otherwise we get an error for our own deprecations
- linters: [staticcheck]
text: "SA1019:"
- linters: [ govet ]
text: 'declaration of "(err|ctx)" shadows declaration at'
linters:
disable-all: true
# TODO(johscheuer): activate linters again and fix issues
enable:
- deadcode
#- dupl
- errcheck
#- goconst
#- gocyclo
- gofmt
- goimports
- golint
#- gosec
- gosimple
- govet
- ineffassign
- interfacer
#- lll
#- maligned
- misspell
- nakedret
- prealloc
- exportloopref
- staticcheck
- structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
linters-settings:
errcheck:
# path to a file containing a list of functions to exclude from checking
# see https://github.com/kisielk/errcheck#excluding-functions for details
exclude: errcheck_excludes.txt
govet:
enable:
- shadow
run:
deadline: 5m
skip-files:
- ".*_generated.*.go$"