-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy path.golangci.yaml
More file actions
63 lines (63 loc) · 1.12 KB
/
.golangci.yaml
File metadata and controls
63 lines (63 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "2"
linters:
default: none
enable:
- bodyclose
- copyloopvar
- depguard
- dogsled
- errcheck
- forbidigo
- funlen
- goconst
- gocyclo
- gosec
- govet
- ineffassign
- misspell
- nakedret
- staticcheck
- unconvert
- unparam
- unused
- whitespace
settings:
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- golang.org/x
- github.com/bwesterb/go-ristretto
- github.com/cloudflare/circl
funlen:
lines: 120
statements: 80
goconst:
min-occurrences: 4
gosec:
excludes:
- G115
govet:
disable:
- fieldalignment
enable-all: true
nestif:
min-complexity: 6
staticcheck:
checks:
# Don't bother omitting embedded fields from selector expressions
# https://staticcheck.dev/docs/checks/#QF1008
- -QF1008
exclusions:
generated: lax
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt
- gofumpt
- goimports