-
Notifications
You must be signed in to change notification settings - Fork 146
/
.golangci.yaml
73 lines (71 loc) · 1.47 KB
/
.golangci.yaml
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
---
linters:
disable-all: true
enable:
# - lll
# - gocritic
# - gocognit
# - gci (deprecated since v1.30.0)
# - interfacer (deprecated since v1.38.0)
# - scopelint (deprecated since v1.39.0)
# - golint (deprecated since v1.41.0)
# - structcheck (deprecated since v1.49.0)
# - varcheck (deprecated since v1.49.0)
# - deadcode (deprecated since v1.49.0)
# - exportloopref (deprecated since v1.60.2)
- bodyclose
- copyloopvar
- depguard
- dogsled
- errcheck
- forbidigo
- funlen
- goconst
- gocyclo
- gofmt
- gofumpt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
linters-settings:
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- github.com/bwesterb/go-ristretto
- github.com/cloudflare/circl
funlen:
lines: 120
statements: 80
nestif:
min-complexity: 6
goconst:
min-occurrences: 4
govet:
enable-all: true
disable:
- fieldalignment
staticcheck:
# TODO: replace deprecated elliptic.Marshal, elliptic.GenerateKey,
# elliptic.Unmarshal, params.ScalarBaseMult before re-enabling SA1019.
checks: ["*", "-SA1019"]
gosec:
excludes:
- G115
issues:
max-issues-per-linter: 0
max-same-issues: 0