-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
55 lines (50 loc) · 1.09 KB
/
.golangci.yml
File metadata and controls
55 lines (50 loc) · 1.09 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
46
47
48
49
50
51
52
53
54
55
linters:
enable:
# golangci-lint curated list of linters (as of 1.42.1)
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
# Our own extra sauce
# Temporarily disable this linter until underlying issues for the 1.18 support
# are fixed:
# * https://github.com/go-critic/go-critic/issues/1193
#- gocritic
- goimports
- revive
- exportloopref
- unparam
- ifshort
- gosec
disable-all: true
issues:
exclude-use-default: false
exclude:
# Ignore err, ctx and ok variables shadowing, which are quite common and in principle, uncritical cases.
- 'declaration of "err|ctx|ok" shadows declaration at'
linters-settings:
#errcheck:
# exclude: .errcheck.exclude
gocritic:
enabled-tags:
- diagnostic
- style
- performance
disabled-checks:
- unnamedResult
govet:
check-shadowing: true
gosec:
excludes:
- G101 # this is causing false positives
run:
build-tags:
- integration
- unit
- e2e