-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgolangci.yml
More file actions
65 lines (54 loc) · 1 KB
/
golangci.yml
File metadata and controls
65 lines (54 loc) · 1 KB
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
run:
# Timeout for analysis
timeout: 5m
# Exit code when at least one issue was found
issues-exit-code: 1
# Include test files
tests: true
# Which dirs to skip
skip-dirs:
- vendor
- third_party
- testdata
- examples
- pb
- ci
- .git
- bin
# Skip generated files
skip-files:
- ".*\\.pb\\.go$"
- ".*\\.gen\\.go$"
# Allowed concurrency
concurrency: 4
linters:
enable:
- gofmt
- govet
- errcheck
- staticcheck
- gosimple
- ineffassign
- typecheck
- unused
- gosec
- gocritic
linters-settings:
errcheck:
# Don't check error return of these functions
exclude-functions:
- io.Copy
- fmt.Fprintf
- fmt.Fprintln
issues:
# Maximum issues to report
max-issues-per-linter: 50
max-same-issues: 3
# Exclude patterns for generated code
exclude-dirs:
- vendor
- node_modules
# Don't report on code outside the module
new: false
# Fix found issues (if possible)
fix: false