forked from FoundationDB/fdb-kubernetes-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
80 lines (77 loc) · 1.78 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
issues:
# don't skip warning about doc comments
# don't exclude the default set of lint
exclude-use-default: false
exclude:
- "ST1000: at least one file in a package should have a package comment"
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:
- revive
text: "package-comments: should have a package comment"
# TODO (johscheuer): Ignore those linting issues for now and change it once we cut a new major release.
- linters:
- stylecheck
text: "ST1003: const StorageEngineRocksDbExperimental"
- linters:
- stylecheck
text: "ST1003: const StorageEngineRocksDbV1"
linters:
disable-all: true
# TODO(johscheuer): activate linters again and fix issues
enable:
- asciicheck
- bodyclose
- depguard
- dogsled
- errcheck
- errorlint
- exportloopref
# - goconst
# - gocritic
# - gocyclo
- gofmt
#- goimports
- goprintffuncname
# - gosec
- gosimple
- govet
- importas
- ineffassign
- misspell
- nakedret
- nilerr
# - nolintlint
- prealloc
- revive
- rowserrcheck
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
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
staticcheck:
go: "1.19"
stylecheck:
go: "1.19"
run:
timeout: 10m
skip-files:
- "zz_generated.*\\.go$"
allow-parallel-runners: true