-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.golangci.yml
59 lines (54 loc) · 1.45 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
run:
# Concurrency is reduced in order to reduce RAM consumption
concurrency: 2
deadline: 20m
skip-files:
# Entries below is a workaround for "typecheck" linter. TODO(Daniel): remove when linter fixed/updated
- .*/go[0-9\.]*/src/crypto/.*
- .*/go[0-9\.]*/src/internal/syscall/unix/.*
- .*/go[0-9\.]*/src/net/.*
- .*/go[0-9\.]*/src/os/.*
- .*/go[0-9\.]*/src/runtime/.*
- .*/go[0-9\.]*/src/syscall/.*
- .*/usr/local/go[0-9\.]*/src/.*
- (.*/)?vendor/.*
modules-download-mode: readonly
skip-dirs-use-default: true
issues:
exclude:
- .* is always .* # unparam issue
- ^should have a package comment, unless it's in another file for this package$ # golint issue
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
# Intentionally disabled linters:
# - dupl consumes too much RAM and CPU cycles
# - gosec consumes too much RAM and CPU cycles
# - megacheck uses staticcheck which consumes too much RAM and CPU cycles
# - prealloc issues are considered premature optimization
# - staticcheck consumes too much RAM and CPU cycles
linters:
enable-all: true
disable:
- dupl
- gosec
- megacheck
- prealloc
- staticcheck
- unparam
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
gocyclo:
min-complexity: 10
golint:
min-confidence: 0
govet:
check-shadowing: true
maligned:
suggest-new: true
unused:
check-exported: true
nakedret:
max-func-lines: 5