-
Notifications
You must be signed in to change notification settings - Fork 175
/
.golangci.yaml
52 lines (43 loc) · 1.27 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
# options for analysis running
run:
# default concurrency is a available CPU number
concurrency: 4
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 15m
timeout: 30m
skip-files:
- "^zz_generated.*"
# build-tags:
# - containers_image_openpgp
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true
# check available linters @ https://golangci-lint.run/usage/linters/
linters:
disable-all: true
enable: # please keep this alphabetized
# Don't use soon to deprecated[1] linters that lead to false
# https://github.com/golangci/golangci-lint/issues/1841
# - deadcode
# - gocyclo
# - loggercheck # requires [email protected]
# - structcheck
# - varcheck
- errcheck
- gocritic
# - goconst
- goimports
- gofmt # We enable this as well as goimports for its simplify mode.
- govet
- ineffassign
- typecheck
- misspell
- nakedret
- unconvert
linters-settings:
errcheck:
check-blank: false # to keep `_ = viper.BindPFlag(...)` from throwing errors