This repository has been archived by the owner on Jan 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.golangci.yml
72 lines (71 loc) · 1.77 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
run:
concurrency: 6
deadline: 1m
issues-exit-code: 1
tests: true
skip-dirs:
- vendor$
- build$
# skip-files:
# -
linters-settings:
govet:
check-shadowing: true
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0
gocyclo:
min-complexity: 20
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 3
min-occurrences: 3
depguard:
list-type: whitelist
include-go-root: false
packages:
- github.com/nymtech/nym-mixnet
- github.com/golang/protobuf/proto
- github.com/jmoiron/sqlx
- github.com/stretchr/testify/assert
- github.com/tav/golly/optparse
- github.com/sirupsen/logrus
- github.com/mattn/go-sqlite3
- golang.org/x/crypto/curve25519
- github.com/nymtech/nym-directory/models
- github.com/BurntSushi/toml
- github.com/pelletier/go-toml
- github.com/AlecAivazis/survey/v2
misspell:
locale: UK
# ignore-words:
# - foo
lll:
line-length: 120
unused:
check-exported: false
unparam:
check-exported: false
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
max-func-lines: 30
prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.
simple: true
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: false # Report preallocation suggestions on for loops, false by default
gocritic:
disabled-checks:
- captLocal
linters:
enable-all: true
disable-all: false
# disable:
# - maligned
# - prealloc
# - gochecknoglobals
fast: false