forked from consensus-shipyard/mir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
46 lines (42 loc) · 846 Bytes
/
.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
linters:
enable:
- asciicheck
- dogsled
- dupl
- errcheck
- errorlint
- exportloopref
- gocognit
- goconst
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- stylecheck
- unconvert
- unused
linters-settings:
goimports:
local-prefixes: github.com/filecoin-project/mir
gocognit:
min-complexity: 50
run:
timeout: 5m
skip-dirs:
- pkg/pb # Skip generated files
issues:
exclude-rules:
- path: .*\.mir\.go
linters: [revive, stylecheck, goimports, gocyclo]
# SA1019 is applicable to aggregate signatures (which are not used here), not threshold signatures
- path: pkg/threshcrypto/tbls.go
linters: [staticcheck]
text: SA1019