forked from lightninglabs/aperture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
49 lines (44 loc) · 935 Bytes
/
.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
run:
# timeout for analysis
deadline: 4m
# Linting uses a lot of memory. Keep it under control by only running a single
# worker.
concurrency: 1
linters-settings:
govet:
# Don't report about shadowed variables
check-shadowing: false
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
linters:
# Specify an enabled list of linters rather than a disabled list because
# the latest linter includes many sub-linters which do not pass the codebase.
enable:
- bodyclose
- dupl
- errcheck
- exportloopref
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- golint
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- staticcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
issues:
exclude-rules:
- path: internal/test
linters:
- goconst