-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.yaml
53 lines (53 loc) · 1.01 KB
/
.golangci.yaml
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
# Options for analysis running.
run:
# The default concurrency value is the number of available CPU.
concurrency: 4
# Timeout for analysis, e.g. 30s, 5m.
# Default: 1m
timeout: 5m
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# Include test files or not.
# Default: true
tests: false
allow-parallel-runners: false
go: '1.18'
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dupl
- errcheck
- exportloopref
# - exhaustive
# - funlen
# - goconst
# - gocritic
# - gocyclo
- gofmt
- goimports
# - gomnd
# - goprintffuncname
# - gosec
- gosimple
- govet
- ineffassign
- revive
# - lll
# - misspell
- nakedret
# - noctx
- nolintlint
# - rowserrcheck
- staticcheck
# - structcheck
# - stylecheck
- typecheck
- unconvert
# - unparam
- unused
- varcheck
- nilerr
# - whitespace