-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.golangci.yml
46 lines (40 loc) · 993 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
linters:
# Disable all linters.
# Default: false
disable-all: true
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- gofmt
- lll
- gci
# Enable only fast linters from enabled linters set (first run won't be fast)
# Default: false
fast: true
linters-settings:
lll:
# Max line length, lines longer will be reported.
line-length: 88
# Tab width in spaces.
tab-width: 4
issues:
new-from-rev: HEAD~1
# Options for analysis running.
run:
# Timeout for analysis, e.g. 30s, 5m.
# If the value is lower or equal to 0, the timeout is disabled.
# Default: 1m
timeout: 1m
# Include test files or not.
# Default: true
tests: true
# Allow multiple parallel golangci-lint instances running.
# If false, golangci-lint acquires file lock on start.
# Default: false
allow-parallel-runners: true