-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.golangci.yaml
44 lines (41 loc) · 1.03 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
run:
timeout: 2m
issues-exit-code: 1
tests: true
issues:
exclude:
- "Error return value of `render.Render` is not checked"
- "Error return value of `viper.BindPFlag` is not checked"
- "Error return value of `.+Command.RegisterFlagCompletionFunc` is not checked"
- "Error return value of `.+.Write` is not checked"
exclude-rules:
- path: ".*_test\\.go"
linters:
- revive
output:
# 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
# make issues output unique by line, default is true
uniq-by-line: true
# add a prefix to the output file references; default is no prefix
path-prefix: ""
# sorts results by: filepath, line and column
sort-results: true
linters:
enable:
- bodyclose
- errcheck
- gofmt
- gofumpt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
- unused